de.matthiasmann.twl
Enum ScrollPane.Fixed

java.lang.Object
  extended by java.lang.Enum<ScrollPane.Fixed>
      extended by de.matthiasmann.twl.ScrollPane.Fixed
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ScrollPane.Fixed>
Enclosing class:
ScrollPane

public static enum ScrollPane.Fixed
extends java.lang.Enum<ScrollPane.Fixed>

Controls which axis of the scroll pane should be fixed


Enum Constant Summary
HORIZONTAL
          The horizontal axis is fixed - only a vertical scroll bar may be shown
NONE
          No axis is fixed - the scroll pane may show 2 scroll bars
VERTICAL
          The vertical axis is fixed - only a horizontal scroll bar may be shown
 
Method Summary
static ScrollPane.Fixed valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ScrollPane.Fixed[] 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

NONE

public static final ScrollPane.Fixed NONE
No axis is fixed - the scroll pane may show 2 scroll bars


HORIZONTAL

public static final ScrollPane.Fixed HORIZONTAL
The horizontal axis is fixed - only a vertical scroll bar may be shown


VERTICAL

public static final ScrollPane.Fixed VERTICAL
The vertical axis is fixed - only a horizontal scroll bar may be shown

Method Detail

values

public static final ScrollPane.Fixed[] 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(ScrollPane.Fixed c : ScrollPane.Fixed.values())
        System.out.println(c);

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

valueOf

public static ScrollPane.Fixed valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name