Class BasicMonthViewUI.KeyboardAction
java.lang.Object
javax.swing.AbstractAction
org.jdesktop.swingx.plaf.basic.BasicMonthViewUI.KeyboardAction
- All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
BasicMonthViewUI
Class that supports keyboard traversal of the JXMonthView component.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class AbstractAction
changeSupport, enabledFields inherited from interface Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidaddToSelection(int action) If we are in a mode that allows for range selection this method will extend the currently selected range.private booleanprivate Dateprivate Dateprivate DatepreviousDay(Calendar cal, Date date) private DatepreviousWeek(Calendar cal, Date date) private voidtraverse(int action) Methods inherited from class AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
ACCEPT_SELECTION
public static final int ACCEPT_SELECTION- See Also:
-
CANCEL_SELECTION
public static final int CANCEL_SELECTION- See Also:
-
SELECT_PREVIOUS_DAY
public static final int SELECT_PREVIOUS_DAY- See Also:
-
SELECT_NEXT_DAY
public static final int SELECT_NEXT_DAY- See Also:
-
SELECT_DAY_PREVIOUS_WEEK
public static final int SELECT_DAY_PREVIOUS_WEEK- See Also:
-
SELECT_DAY_NEXT_WEEK
public static final int SELECT_DAY_NEXT_WEEK- See Also:
-
ADJUST_SELECTION_PREVIOUS_DAY
public static final int ADJUST_SELECTION_PREVIOUS_DAY- See Also:
-
ADJUST_SELECTION_NEXT_DAY
public static final int ADJUST_SELECTION_NEXT_DAY- See Also:
-
ADJUST_SELECTION_PREVIOUS_WEEK
public static final int ADJUST_SELECTION_PREVIOUS_WEEK- See Also:
-
ADJUST_SELECTION_NEXT_WEEK
public static final int ADJUST_SELECTION_NEXT_WEEK- See Also:
-
action
private int action
-
-
Constructor Details
-
KeyboardAction
public KeyboardAction(int action)
-
-
Method Details
-
actionPerformed
-
isIntervalMode
private boolean isIntervalMode()- Returns:
-
traverse
private void traverse(int action) -
addToSelection
private void addToSelection(int action) If we are in a mode that allows for range selection this method will extend the currently selected range. NOTE: This may not be the expected behavior for the keyboard controls and we ay need to update this code to act in a way that people expect.- Parameters:
action- action for adjusting selection
-
nextWeek
-
previousWeek
-
nextDay
-
previousDay
-