com.jp.comp.calendar
Interface CalendarController

All Known Implementing Classes:
CalendarControllerAdapter

public interface CalendarController

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

See Also:
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

SELECTION_ROW_CHANGED

public static final int SELECTION_ROW_CHANGED
Passed to selectionChanged method to show that row is changed when selected by mouse or Up/Down key is pressed

See Also:
Constant Field Values

SELECTION_COLUMN_CHANGED

public static final int SELECTION_COLUMN_CHANGED
Passed to selectionChanged method to show that column is changed when selected by mouse

See Also:
Constant Field Values

SELECTION_ROW_COLUMN_CHANGED

public static final 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

See Also:
Constant Field Values

SELECTION_TAB_PRESSED

public static final int SELECTION_TAB_PRESSED
Passed to 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

See Also:
Constant Field Values

SELECTION_SHIFT_TAB_PRESSED

public static final int SELECTION_SHIFT_TAB_PRESSED
Passed to 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

See Also:
Constant Field Values

SELECTION_RIGHT_ARROW_PRESSED

public static final int SELECTION_RIGHT_ARROW_PRESSED
Passed to 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

See Also:
Constant Field Values

SELECTION_LEFT_ARROW_PRESSED

public static final int SELECTION_LEFT_ARROW_PRESSED
Passed to 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

See Also:
Constant Field Values

SELECTION_UP_ARROW_PRESSED

public static final int SELECTION_UP_ARROW_PRESSED
Passed to selectionChanged method to show that Up Arrow button is pressed

See Also:
Constant Field Values

SELECTION_DOWN_ARROW_PRESSED

public static final int SELECTION_DOWN_ARROW_PRESSED
Passed to selectionChanged method to show that Down Arrow button is pressed

See Also:
Constant Field Values

NAVIGATION_WEEK

public static final int NAVIGATION_WEEK
Passed to next and previous methods to request week navigation

See Also:
Constant Field Values

NAVIGATION_MONTH

public static final int NAVIGATION_MONTH
Passed to next and previous methods to request month navigation

See Also:
Constant Field Values

NAVIGATION_YEAR

public static final int NAVIGATION_YEAR
Passed to next and previous methods to request year navigation

See Also:
Constant Field Values
Method Detail

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. 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

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

next

public void next(CalendarPanel aCalendarPanel,
                 int aNavigationType)
Invoked by user to perform different types of next navigation. By default it performs navigation by week, month and year

Parameters:
aCalendarPanel - the instance of the CalendarPanel
aNavigationType - navigation type

previous

public void previous(CalendarPanel aCalendarPanel,
                     int aNavigationType)
Invoked by user to perform different types of previous navigation. By default it performs navigation by week, month and year

Parameters:
aCalendarPanel - the instance of the CalendarPanel
aNavigationType - navigation type