Enum Class StyleTemplateLink.Region
java.lang.Object
java.lang.Enum<StyleTemplateLink.Region>
de.espirit.firstspirit.access.store.templatestore.StyleTemplateLink.Region
- All Implemented Interfaces:
Serializable
,Comparable<StyleTemplateLink.Region>
,Constable
- Enclosing interface:
- StyleTemplateLink
The region targeted by this link.
- Since:
- 4.0.120
-
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 StyleTemplateLink.Region
Provides a region for the given name.getName()
Provides the name of this link.boolean
matches
(int value, int current, boolean last) Checks, whether the given arguments are applicable with this region.static StyleTemplateLink.Region
Returns the enum constant of this class with the specified name.static StyleTemplateLink.Region[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
All areas.- Since:
- 4.0.120
-
EVEN
Even rows/columns only.- Since:
- 4.0.120
-
ODD
Odd rows/columns only.- Since:
- 4.0.120
-
FIRST
The first row/column only.- Since:
- 4.0.120
-
LAST
The last row/column only.- Since:
- 4.0.120
-
CUSTOM
A custom definition of targeted rows/columns.- Since:
- 4.0.120
-
-
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
-
getName
Provides the name of this link.- Returns:
- The name.
- Since:
- 4.0.120
-
forName
Provides a region for the given name.- Returns:
- The matching region.
- Throws:
IllegalArgumentException
- if there is no region with the requested name.- Since:
- 4.0.120
-
matches
public boolean matches(int value, int current, boolean last) Checks, whether the given arguments are applicable with this region.- Parameters:
value
- The value.current
- The current location.last
- The last location.- Since:
- 4.0.120
-