com.jp.comp.calendar
Class MultipleMonthCalendarController
java.lang.Object
com.jp.comp.calendar.CalendarControllerAdapter
com.jp.comp.calendar.MultipleMonthCalendarController
- All Implemented Interfaces:
- CalendarController
- public class MultipleMonthCalendarController
- extends CalendarControllerAdapter
MultipleMonthCalendarController
performs navigation for
the MultipleMonthCalendarPanel
- See Also:
MultipleMonthCalendarPanel
Fields inherited from interface com.jp.comp.calendar.CalendarController |
NAVIGATION_MONTH, NAVIGATION_WEEK, NAVIGATION_YEAR, SELECTION_COLUMN_CHANGED, SELECTION_DOWN_ARROW_PRESSED, SELECTION_LEFT_ARROW_PRESSED, SELECTION_RIGHT_ARROW_PRESSED, SELECTION_ROW_CHANGED, SELECTION_ROW_COLUMN_CHANGED, SELECTION_SHIFT_TAB_PRESSED, SELECTION_TAB_PRESSED, SELECTION_UP_ARROW_PRESSED |
Method Summary |
protected void |
currentMonthSelection(CalendarPanel aCalendarPanel,
int aSelection)
Does selection for current month |
void |
next(CalendarPanel aCalendarPanel,
int aNavigationType)
Performs different types of next navigation in the MultipleMonthCalendarController |
protected void |
nextMonthSelection(CalendarPanel aCalendarPanel,
int aSelection)
Does selection for previous month |
void |
previous(CalendarPanel aCalendarPanel,
int aNavigationType)
Performs different types of previous navigation in the MultipleMonthCalendarController |
protected void |
previousMonthSelection(CalendarPanel aCalendarPanel,
int aSelection)
Does selection for previous month |
void |
selectionChanged(CalendarPanel aCalendarPanel,
int aRow,
int aColumn,
int aSelection)
Invoked by the CalendarPanel when selection is changed by mouse or keyboard
to perform navigation in the MultipleMonthCalendarController |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fCalendarPanel
protected MultipleMonthCalendarPanel fCalendarPanel
MultipleMonthCalendarController
public MultipleMonthCalendarController(MultipleMonthCalendarPanel aCalendarPanel)
- Constructs the class
- Parameters:
aCalendarPanel
- the source
selectionChanged
public void selectionChanged(CalendarPanel aCalendarPanel,
int aRow,
int aColumn,
int aSelection)
- Invoked by the
CalendarPanel
when selection is changed by mouse or keyboard
to perform navigation in the MultipleMonthCalendarController
- Specified by:
selectionChanged
in interface CalendarController
- Overrides:
selectionChanged
in class CalendarControllerAdapter
- Parameters:
aCalendarPanel
- the instance of the CalendarPanel
aRow
- current or selected row (depending on the type of selection)aColumn
- current or selected column (depending on the type of selection)aSelection
- selection key- See Also:
#evaluateSelection
,
#currentMonth
,
#previousMonth
,
#nextMonth
currentMonthSelection
protected void currentMonthSelection(CalendarPanel aCalendarPanel,
int aSelection)
- Does selection for current month
- Overrides:
currentMonthSelection
in class CalendarControllerAdapter
- Parameters:
aCalendarPanel
- the instance of the CalendarPanel
aSelection
- selection key
previousMonthSelection
protected void previousMonthSelection(CalendarPanel aCalendarPanel,
int aSelection)
- Does selection for previous month
- Specified by:
previousMonthSelection
in class CalendarControllerAdapter
- Parameters:
aCalendarPanel
- the instance of the CalendarPanel
aSelection
- selection key
nextMonthSelection
protected void nextMonthSelection(CalendarPanel aCalendarPanel,
int aSelection)
- Does selection for previous month
- Specified by:
nextMonthSelection
in class CalendarControllerAdapter
- Parameters:
aCalendarPanel
- the instance of the CalendarPanel
aSelection
- selection key
previous
public void previous(CalendarPanel aCalendarPanel,
int aNavigationType)
- Performs different types of previous navigation in the
MultipleMonthCalendarController
- Parameters:
aCalendarPanel
- the instance of the CalendarPanel
aNavigationType
- navigation type
next
public void next(CalendarPanel aCalendarPanel,
int aNavigationType)
- Performs different types of next navigation in the
MultipleMonthCalendarController
- Parameters:
aCalendarPanel
- the instance of the CalendarPanel
aNavigationType
- navigation type