Package VASSAL.configure
Enum Class Configurer.ContextLevel
- All Implemented Interfaces:
Serializable
,Comparable<Configurer.ContextLevel>
,Constable
- Enclosing class:
Configurer
The ContextLevel of a Configurer defines the level that it is defined at.
It is used by the FunctionBuilder (FB) to provide better contextual help for Function calls.
o PIECE - The Configurer is defined at the Piece level. Pieces move around, so we can make no assumptions
about where the piece may be. All functions are to be displayed by the FB
o MAP - The Configurer is defined at the Map level, with the actual Map recorded in context
FB will not show 'Trait Only' versions of functions.
Any reference to map or zone level properties on a different map to be wrapped in an appropriate GetXXXProperty function.
o MODULE - The Configurer is defined at the Module level
FB will not show 'Trait Only' versions of functions.
Any references to Map or Zone level properties to be wrapped in an appropriate GetXXXProperty function.
-
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 Configurer.ContextLevel
Returns the enum constant of this class with the specified name.static Configurer.ContextLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PIECE
-
MAP
-
MODULE
-
-
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
-