SourceForge.net Logo
aXSL API 0.2

org.axsl.common.value
Enum TextAlign

java.lang.Object
  extended by java.lang.Enum<TextAlign>
      extended by org.axsl.common.value.TextAlign
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TextAlign>

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

Enumeration of possible text-align values.


Enum Constant Summary
CENTER
          The content is to be centered in the IP direction.
END
          The content is to be aligned on the end-edge in the IP direction.
INSIDE
          If the page-binding edge is on the start-edge, the alignment is "start".
JUSTIFY
          The content is to be expanded to fill the available width in the IP direction.
OUTSIDE
          If the page-binding edge is on the start-edge, the alignment is "end".
START
          The content is to be aligned on the start-edge in the IP direction.
STRING
          The content will be aligned on specified string.
 
Method Summary
static TextAlign valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextAlign[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

START

public static final TextAlign START
The content is to be aligned on the start-edge in the IP direction.


CENTER

public static final TextAlign CENTER
The content is to be centered in the IP direction.


END

public static final TextAlign END
The content is to be aligned on the end-edge in the IP direction.


JUSTIFY

public static final TextAlign JUSTIFY
The content is to be expanded to fill the available width in the IP direction.


INSIDE

public static final TextAlign INSIDE
If the page-binding edge is on the start-edge, the alignment is "start". If the binding is the end-edge, the alignment will be "end". If neither, use "start".


OUTSIDE

public static final TextAlign OUTSIDE
If the page-binding edge is on the start-edge, the alignment is "end". If the binding is the end-edge, the alignment will be "start". If neither, use "end".


STRING

public static final TextAlign STRING
The content will be aligned on specified string.

Method Detail

values

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

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

valueOf

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

SourceForge.net Logo
aXSL API 0.2

This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.