Package be.gaudry.model.disposition
Enum Class EPageOrientation
- All Implemented Interfaces:
Serializable
,Comparable<EPageOrientation>
,Constable
Possibles page orientations.
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 EPageOrientation
fromInt(int key)
int
getValue()
The value is a numeric representation of thisEPageOrientation
, independent of theEnum.ordinal()
information.toString()
Returns a localized representation of anEPageOrientation
, or thename
of this enum constant (as contained in the declaration) if an error occurs when trying to use the language resource file.static EPageOrientation
Returns the enum constant of this class with the specified name.static EPageOrientation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LANDSCAPE
Horizontal layout -
PORTRAIT
Vertical layout
-
-
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 thisEPageOrientation
, independent of theEnum.ordinal()
information.- Returns:
- the value
-
toString
Returns a localized representation of anEPageOrientation
, 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<EPageOrientation>
- Since:
- 1.1 use localization
- See Also:
LanguageHelper
-
fromInt
- Parameters:
key
- numeric representation of theEPageOrientation
,value given by thegetValue()
method.- Returns:
- the matching
EPageOrientation
, orPORTRAIT
in case of wrong parameter
-