private class BasicMonthViewUI.KeyboardAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
static int |
ACCEPT_SELECTION |
private int |
action |
static int |
ADJUST_SELECTION_NEXT_DAY |
static int |
ADJUST_SELECTION_NEXT_WEEK |
static int |
ADJUST_SELECTION_PREVIOUS_DAY |
static int |
ADJUST_SELECTION_PREVIOUS_WEEK |
static int |
CANCEL_SELECTION |
static int |
SELECT_DAY_NEXT_WEEK |
static int |
SELECT_DAY_PREVIOUS_WEEK |
static int |
SELECT_NEXT_DAY |
static int |
SELECT_PREVIOUS_DAY |
changeSupport, enabled
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 and Description |
---|
KeyboardAction(int action) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ev) |
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 |
isIntervalMode() |
private Date |
nextDay(Calendar cal,
Date date) |
private Date |
nextWeek(Calendar cal,
Date date) |
private Date |
previousDay(Calendar cal,
Date date) |
private Date |
previousWeek(Calendar cal,
Date date) |
private void |
traverse(int action) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static final int ACCEPT_SELECTION
public static final int CANCEL_SELECTION
public static final int SELECT_PREVIOUS_DAY
public static final int SELECT_NEXT_DAY
public static final int SELECT_DAY_PREVIOUS_WEEK
public static final int SELECT_DAY_NEXT_WEEK
public static final int ADJUST_SELECTION_PREVIOUS_DAY
public static final int ADJUST_SELECTION_NEXT_DAY
public static final int ADJUST_SELECTION_PREVIOUS_WEEK
public static final int ADJUST_SELECTION_NEXT_WEEK
private int action
public KeyboardAction(int action)
public void actionPerformed(ActionEvent ev)
private boolean isIntervalMode()
private void traverse(int action)
private void addToSelection(int action)
action
- action for adjusting selectionprivate Date previousWeek(Calendar cal, Date date)
cal
- date
- private Date previousDay(Calendar cal, Date date)
cal
- date
- WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses