eu.webtoolkit.jwt
Enum WBoxLayout.Direction

java.lang.Object
  extended by java.lang.Enum<WBoxLayout.Direction>
      extended by eu.webtoolkit.jwt.WBoxLayout.Direction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WBoxLayout.Direction>
Enclosing class:
WBoxLayout

public static enum WBoxLayout.Direction
extends java.lang.Enum<WBoxLayout.Direction>

Enumeration of the direction in which widgets are layed out.


Enum Constant Summary
BottomToTop
          Vertical layout, widgets are arranged from bottom to top.
LeftToRight
          Horizontal layout, widgets are arranged from left to right.
RightToLeft
          Horizontal layout, widgets are arranged from right to left.
TopToBottom
          Vertical layout, widgets are arranged from top to bottom.
 
Method Summary
 int getValue()
          Returns the numerical representation of this enum.
static WBoxLayout.Direction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WBoxLayout.Direction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LeftToRight

public static final WBoxLayout.Direction LeftToRight
Horizontal layout, widgets are arranged from left to right.


RightToLeft

public static final WBoxLayout.Direction RightToLeft
Horizontal layout, widgets are arranged from right to left.


TopToBottom

public static final WBoxLayout.Direction TopToBottom
Vertical layout, widgets are arranged from top to bottom.


BottomToTop

public static final WBoxLayout.Direction BottomToTop
Vertical layout, widgets are arranged from bottom to top.

Method Detail

values

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

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

valueOf

public static WBoxLayout.Direction 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
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
Returns the numerical representation of this enum.