org.jdesktop.swingx.calendar
Enum JXMonthView.SelectionMode

java.lang.Object
  extended by java.lang.Enum<JXMonthView.SelectionMode>
      extended by org.jdesktop.swingx.calendar.JXMonthView.SelectionMode
All Implemented Interfaces:
Serializable, Comparable<JXMonthView.SelectionMode>
Enclosing class:
JXMonthView

public static enum JXMonthView.SelectionMode
extends Enum<JXMonthView.SelectionMode>


Enum Constant Summary
MULTIPLE_INTERVAL_SELECTION
          Mode that allows for selecting disjoint days.
NO_SELECTION
          Mode that disallows selection of days from the calendar.
SINGLE_INTERVAL_SELECTION
          Mode that allows for selecting of multiple consecutive days.
SINGLE_SELECTION
          Mode that allows for selection of a single day.
WEEK_INTERVAL_SELECTION
          Mode where selections consisting of more than 7 days will snap to a full week.
 
Method Summary
static JXMonthView.SelectionMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JXMonthView.SelectionMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_SELECTION

public static final JXMonthView.SelectionMode NO_SELECTION
Mode that disallows selection of days from the calendar.


SINGLE_SELECTION

public static final JXMonthView.SelectionMode SINGLE_SELECTION
Mode that allows for selection of a single day.


SINGLE_INTERVAL_SELECTION

public static final JXMonthView.SelectionMode SINGLE_INTERVAL_SELECTION
Mode that allows for selecting of multiple consecutive days.


MULTIPLE_INTERVAL_SELECTION

public static final JXMonthView.SelectionMode MULTIPLE_INTERVAL_SELECTION
Mode that allows for selecting disjoint days.


WEEK_INTERVAL_SELECTION

public static final JXMonthView.SelectionMode WEEK_INTERVAL_SELECTION
Mode where selections consisting of more than 7 days will snap to a full week.

Method Detail

values

public static final JXMonthView.SelectionMode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(JXMonthView.SelectionMode c : JXMonthView.SelectionMode.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static JXMonthView.SelectionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name