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

private class BasicMonthViewUI.KeyboardAction extends AbstractAction
Class that supports keyboard traversal of the JXMonthView component.
  • 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

      public void actionPerformed(ActionEvent ev)
    • 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

      private Date nextWeek(Calendar cal, Date date)
      Parameters:
      cal -
      date -
      Returns:
    • previousWeek

      private Date previousWeek(Calendar cal, Date date)
      Parameters:
      cal -
      date -
      Returns:
    • nextDay

      private Date nextDay(Calendar cal, Date date)
      Parameters:
      cal -
      date -
      Returns:
    • previousDay

      private Date previousDay(Calendar cal, Date date)
      Parameters:
      cal -
      date -
      Returns: