org.jvnet.substance.utils
Enum SubstanceConstants.TabTextAlignmentKind

java.lang.Object
  extended by java.lang.Enum<SubstanceConstants.TabTextAlignmentKind>
      extended by org.jvnet.substance.utils.SubstanceConstants.TabTextAlignmentKind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SubstanceConstants.TabTextAlignmentKind>
Enclosing class:
SubstanceConstants

public static enum SubstanceConstants.TabTextAlignmentKind
extends java.lang.Enum<SubstanceConstants.TabTextAlignmentKind>

Enumerates alignments of tab texts on left and right tab placement.

Author:
Kirill Grouchnikov
See Also:
SubstanceLookAndFeel.TABBED_PANE_TEXT_ALIGNMENT_KIND

Enum Constant Summary
ALWAYS_LEFT
          Tab texts are always aligned to the left.
ALWAYS_RIGHT
          Tab texts are always aligned to the right.
DEFAULT
          The default alignment.
FOLLOW_ORIENTATION
          On LTR orientation, tab texts are aligned to the left.
FOLLOW_PLACEMENT
          On left placement, tab texts are aligned to the left.
 
Method Summary
static SubstanceConstants.TabTextAlignmentKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SubstanceConstants.TabTextAlignmentKind[] 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

DEFAULT

public static final SubstanceConstants.TabTextAlignmentKind DEFAULT
The default alignment.


ALWAYS_LEFT

public static final SubstanceConstants.TabTextAlignmentKind ALWAYS_LEFT
Tab texts are always aligned to the left.


ALWAYS_RIGHT

public static final SubstanceConstants.TabTextAlignmentKind ALWAYS_RIGHT
Tab texts are always aligned to the right.


FOLLOW_PLACEMENT

public static final SubstanceConstants.TabTextAlignmentKind FOLLOW_PLACEMENT
On left placement, tab texts are aligned to the left. On right placement, tab texts are aligned to the right.


FOLLOW_ORIENTATION

public static final SubstanceConstants.TabTextAlignmentKind FOLLOW_ORIENTATION
On LTR orientation, tab texts are aligned to the left. On RTL orientation, tab texts are aligned to the right.

Method Detail

values

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

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

valueOf

public static SubstanceConstants.TabTextAlignmentKind 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