|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CalendarController
is an interface to be implemented to perform navigation through
the Calendar. A particular instance of this interface is assigned to the Calendar by the method
CalendarInterface.setCalendarController(com.jp.comp.calendar.CalendarController)
. By default each Calendar has its own Controler
and can be reassigned
CalendarInterface
,
CalendarPanel
,
MonthCalendarPanel
,
MultipleMonthCalendarPanel
,
DateField
Field Summary | |
static int |
NAVIGATION_MONTH
Passed to next and previous methods to request month navigation |
static int |
NAVIGATION_WEEK
Passed to next and previous methods to request week navigation |
static int |
NAVIGATION_YEAR
Passed to next and previous methods to request year navigation |
static int |
SELECTION_COLUMN_CHANGED
Passed to selectionChanged method to show that column is changed when selected by mouse |
static int |
SELECTION_DOWN_ARROW_PRESSED
Passed to selectionChanged method to show that Down Arrow button is pressed |
static int |
SELECTION_LEFT_ARROW_PRESSED
Passed to selectionChanged method to show that Left Arrow button is pressed. |
static int |
SELECTION_RIGHT_ARROW_PRESSED
Passed to selectionChanged method to show that Right Arrow button is pressed. |
static int |
SELECTION_ROW_CHANGED
Passed to selectionChanged method to show that row is changed when selected by mouse
or Up/Down key is pressed |
static int |
SELECTION_ROW_COLUMN_CHANGED
Passed to selectionChanged method to show that row and column are changed when
selected by mouse or Up/Down key is pressed |
static int |
SELECTION_SHIFT_TAB_PRESSED
Passed to selectionChanged method to show that Shift+Tab buttons are pressed. |
static int |
SELECTION_TAB_PRESSED
Passed to selectionChanged method to show that Tab button is pressed. |
static int |
SELECTION_UP_ARROW_PRESSED
Passed to selectionChanged method to show that Up Arrow button is pressed |
Method Summary | |
void |
next(CalendarPanel aCalendarPanel,
int aNavigationType)
Invoked by user to perform different types of next navigation. |
void |
previous(CalendarPanel aCalendarPanel,
int aNavigationType)
Invoked by user to perform different types of previous navigation. |
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. |
Field Detail |
public static final int SELECTION_ROW_CHANGED
selectionChanged
method to show that row is changed when selected by mouse
or Up/Down key is pressed
public static final int SELECTION_COLUMN_CHANGED
selectionChanged
method to show that column is changed when selected by mouse
public static final int SELECTION_ROW_COLUMN_CHANGED
selectionChanged
method to show that row and column are changed when
selected by mouse or Up/Down key is pressed
public static final int SELECTION_TAB_PRESSED
selectionChanged
method to show that Tab button is pressed.
Used to perform row or month change when right side of the Calendar or next month is reached
public static final int SELECTION_SHIFT_TAB_PRESSED
selectionChanged
method to show that Shift+Tab buttons are pressed.
Used to perform row or month change when left side of the Calendar or previous month is reached
public static final int SELECTION_RIGHT_ARROW_PRESSED
selectionChanged
method to show that Right Arrow button is pressed.
Used to perform row or month change when right side of the Calendar or next month is reached
public static final int SELECTION_LEFT_ARROW_PRESSED
selectionChanged
method to show that Left Arrow button is pressed.
Used to perform row or month change when left side of the Calendar or previous month is reached
public static final int SELECTION_UP_ARROW_PRESSED
selectionChanged
method to show that Up Arrow button is pressed
public static final int SELECTION_DOWN_ARROW_PRESSED
selectionChanged
method to show that Down Arrow button is pressed
public static final int NAVIGATION_WEEK
next
and previous
methods to request week navigation
public static final int NAVIGATION_MONTH
next
and previous
methods to request month navigation
public static final int NAVIGATION_YEAR
next
and previous
methods to request year navigation
Method Detail |
public void selectionChanged(CalendarPanel aCalendarPanel, int aRow, int aColumn, int aSelection)
CalendarPanel
when selection is changed by mouse or keyboard
to perform navigation.
If aSelection
is equal to SELECTION_TAB_PRESSED
,
SELECTION_SHIFT_TAB_PRESSED
, SELECTION_RIGHT_ARROW_PRESSED
or
SELECTION_LEFT_ARROW_PRESSED
selection is not changing and should be done
programmaticly
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 keypublic void next(CalendarPanel aCalendarPanel, int aNavigationType)
aCalendarPanel
- the instance of the CalendarPanel
aNavigationType
- navigation typepublic void previous(CalendarPanel aCalendarPanel, int aNavigationType)
aCalendarPanel
- the instance of the CalendarPanel
aNavigationType
- navigation type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |