LocalisationListener Calendar component.
Example :
var calendar : FvCalendar = new FvCalendar(); calendar.setMultipleSelection( true ); calendar.setMinimumYear( 2000 ); calendar.setMaximumYear( 2010 ); var panel : JPanel = new JPane( new BorderLayout( 5, 5 ) ); panel.append( calendar, BorderLayout.CENTER );
new FvCalendar()static public onCalendarSelectionEVENT:EventTypeDepending of isMultiSelectionEnabled() result, use getSelectedDate() or getSelectedDates() method to retreive selected date(s).
static public onCalendarClickEVENT:EventTypepublic function setShowTodayEnabled(b:Boolean):Void
Indicates if component highlight 'today' cell.
Default is true
public function isShowTodayEnabled():Boolean
Returns true if calendar highlight the 'today' cell.
public function setFirstDayOfTheWeek(n:Number):Void
Sets the first day ( index ) of a week.
Default is
public function setMultiSelectionEnabled(b:Boolean):Void
Sets if multiple date selection is enabled or not.
Default is false.
Use getSelectedDates() to retrieves all selected date if
multiple selection is allowed.
Otherwise use getSelectedDate() method for single selection.
public function isMultiSelectionEnabled():Boolean
Returns true if multiple date selection is enabled.
Use getSelectedDates() to retrieves all selected date if
multiple selection is allowed.
Otherwise use getSelectedDate() method for single selection.
public function getSelectedDate():DateReturns selected date.
If isMultiSelectionEnabled() is true return null.
public function getSelectedDates():ArrayReturns selected dates.
If isMultiSelectionEnabled() is false return null.
public function onLocalisationUpdate(event:LocalisationEvent):VoidTriggered when Localisation language change.
onLocalisationUpdate() in fever.app.local.LocalisationListener