Package org.jdesktop.swingx.plaf.basic
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 int
private int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.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 TypeMethodDescriptionvoid
private void
addToSelection
(int action) If we are in a mode that allows for range selection this method will extend the currently selected range.private boolean
private Date
private Date
private Date
previousDay
(Calendar cal, Date date) private Date
previousWeek
(Calendar cal, Date date) private void
traverse
(int action) Methods inherited from class javax.swing.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
- Parameters:
cal
-date
-- Returns:
-
previousWeek
- Parameters:
cal
-date
-- Returns:
-
nextDay
- Parameters:
cal
-date
-- Returns:
-
previousDay
- Parameters:
cal
-date
-- Returns:
-