Package be.gaudry.model.disposition
Enum Class ETextLocation
- All Implemented Interfaces:
Serializable
,Comparable<ETextLocation>
,Constable
Possibles locations into a page document.
Provided by the broldev.core.model project.
- Since:
- 1.0 Jul 2, 2008, broldev.core.model 0.0.1-SNAPSHOT dependency
- Version:
- 1.1 Feb 12 2009
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ETextLocation
fromInt(int key)
int
getValue()
The value is a numeric representation of thisETextLocation
, independent of theEnum.ordinal()
information.toString()
Returns a localized representation of an ETextPosition, or thename
of this enum constant (as contained in the declaration) if an error occurs when trying to use the language resource file.static ETextLocation
Returns the enum constant of this class with the specified name.static ETextLocation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No placement (not add to document, not displayed) -
HEADER
Header of the document -
FOOTER
Footer of the document
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()The value is a numeric representation of thisETextLocation
, independent of theEnum.ordinal()
information.- Returns:
- the value
-
toString
Returns a localized representation of an ETextPosition, or thename
of this enum constant (as contained in the declaration) if an error occurs when trying to use the language resource file.- Overrides:
toString
in classEnum<ETextLocation>
- Since:
- 1.1 use localization
- See Also:
LanguageHelper
-
fromInt
- Parameters:
key
- numeric representation of theETextLocation
,value given by thegetValue()
method.- Returns:
- the matching
ETextLocation
, orHEADER
in case of wrong parameter
-