com.flagstone.transform.text
Enum Language

java.lang.Object
  extended by java.lang.Enum<Language>
      extended by com.flagstone.transform.text.Language
All Implemented Interfaces:
Serializable, Comparable<Language>

public enum Language
extends Enum<Language>

Language is used to identify the spoken language for text (not the character encoding). It is primarily used to select the line-breaking rules when wrapping text in dynamic text fields.


Enum Constant Summary
JAPANESE
          The spoken language for Korean fonts.
KOREAN
          The spoken language for Japanese fonts.
LATIN
          The spoken language for Latin fonts.
NONE
          The spoken language will be defined by the Flash Player.
SIMPLIFIED_CHINESE
          The spoken language for simplified Chinese fonts.
TRADITIONAL_CHINESE
          The spoken language for traditional Chinese fonts.
 
Method Summary
static Language fromInt(int code)
          Get the Language for an encoded value.
 int getValue()
          Get the value that will be encoded to represent the Language.
static Language valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Language[] 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

NONE

public static final Language NONE
The spoken language will be defined by the Flash Player.


TRADITIONAL_CHINESE

public static final Language TRADITIONAL_CHINESE
The spoken language for traditional Chinese fonts.


SIMPLIFIED_CHINESE

public static final Language SIMPLIFIED_CHINESE
The spoken language for simplified Chinese fonts.


KOREAN

public static final Language KOREAN
The spoken language for Japanese fonts.


JAPANESE

public static final Language JAPANESE
The spoken language for Korean fonts.


LATIN

public static final Language LATIN
The spoken language for Latin fonts.

Method Detail

values

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

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

valueOf

public static Language valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromInt

public static Language fromInt(int code)
Get the Language for an encoded value.

Parameters:
code - the encoded value representing a spoken language.
Returns:
the Language for the encoded value.

getValue

public int getValue()
Get the value that will be encoded to represent the Language.

Returns:
the value that will be encoded.


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.