org.jacp.api.componentLayout
Enum Layout

java.lang.Object
  extended by java.lang.Enum<Layout>
      extended by org.jacp.api.componentLayout.Layout
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Layout>

public enum Layout
extends java.lang.Enum<Layout>

This Enum defines some basic layout names.

Author:
Andy Moncsek

Enum Constant Summary
BOTTOM
           
CENTER
           
EAST
           
LEFT
           
NORTH
           
RIGHT
           
SOUTH
           
TOP
           
WEST
           
 
Method Summary
 java.lang.String getLayout()
          returns the layout name
static Layout valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Layout[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NORTH

public static final Layout NORTH

SOUTH

public static final Layout SOUTH

EAST

public static final Layout EAST

WEST

public static final Layout WEST

CENTER

public static final Layout CENTER

LEFT

public static final Layout LEFT

RIGHT

public static final Layout RIGHT

TOP

public static final Layout TOP

BOTTOM

public static final Layout BOTTOM
Method Detail

values

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

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

valueOf

public static Layout 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

getLayout

public java.lang.String getLayout()
returns the layout name

Returns:
the name