Package org.opencms.widgets
Enum CmsLocationPickerWidgetValue.MapMode
- java.lang.Object
-
- java.lang.Enum<CmsLocationPickerWidgetValue.MapMode>
-
- org.opencms.widgets.CmsLocationPickerWidgetValue.MapMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmsLocationPickerWidgetValue.MapMode>
- Enclosing class:
- CmsLocationPickerWidgetValue
public static enum CmsLocationPickerWidgetValue.MapMode extends java.lang.Enum<CmsLocationPickerWidgetValue.MapMode>
Enumeration class for defining the map mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description dynamicMode
The dynamic map mode.staticMode
The static map mode.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMode()
Returns the mode.boolean
isDynamic()
Checks ifthis
isdynamicMode
.boolean
isStatic()
Checks ifthis
isstaticMode
.static CmsLocationPickerWidgetValue.MapMode
parseMode(java.lang.String mode)
Parses the client side mode representation, required as 'static' is a java keyword.static CmsLocationPickerWidgetValue.MapMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CmsLocationPickerWidgetValue.MapMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
dynamicMode
public static final CmsLocationPickerWidgetValue.MapMode dynamicMode
The dynamic map mode.
-
staticMode
public static final CmsLocationPickerWidgetValue.MapMode staticMode
The static map mode.
-
-
Method Detail
-
values
public static CmsLocationPickerWidgetValue.MapMode[] 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 (CmsLocationPickerWidgetValue.MapMode c : CmsLocationPickerWidgetValue.MapMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsLocationPickerWidgetValue.MapMode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
parseMode
public static CmsLocationPickerWidgetValue.MapMode parseMode(java.lang.String mode)
Parses the client side mode representation, required as 'static' is a java keyword.- Parameters:
mode
- the mode name- Returns:
- the mode
-
getMode
public java.lang.String getMode()
Returns the mode.- Returns:
- the mode
-
isDynamic
public boolean isDynamic()
Checks ifthis
isdynamicMode
.- Returns:
true
, ifthis
isdynamicMode
-
isStatic
public boolean isStatic()
Checks ifthis
isstaticMode
.- Returns:
true
, ifthis
isstaticMode
-
-