public class CmsLocationPickerWidgetValue extends java.lang.Object
This is the parsed value of an element of the type String
using the widget GoogleMapWidget
.
lat:50.953412,lng:6.956534,zoom:13,width:400,height:300,mode:dynamic,type:hybrid
Available options are:
lat:50.953412
: the latitudelng:6.956534
: the longitudezoom:7
: initial zoom levelwidth:300
: map width in pixels or %height:200
: map height in pixels or %mode:'static'
: the front-end map's mode should be dynamic or statictype:'hybrid'
: the map type, which can be normal, hybrid, satellite and physicalModifier and Type | Class and Description |
---|---|
static class |
CmsLocationPickerWidgetValue.MapMode
Enumeration class for defining the map mode.
|
static class |
CmsLocationPickerWidgetValue.MapType
Enumeration class for defining the map types.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_HEIGHT
The default map height in pixels.
|
static float |
DEFAULT_LAT
The default latitude.
|
static float |
DEFAULT_LNG
The default longitude.
|
static CmsLocationPickerWidgetValue.MapMode |
DEFAULT_MODE
The default map mode.
|
static CmsLocationPickerWidgetValue.MapType |
DEFAULT_TYPE
The default map type.
|
static int |
DEFAULT_WIDTH
The default map width in pixels.
|
static int |
DEFAULT_ZOOM
The default zoom level.
|
static java.lang.String |
OPTION_HEIGHT
Option height.
|
static java.lang.String |
OPTION_LAT
Option lat.
|
static java.lang.String |
OPTION_LNG
Option lng.
|
static java.lang.String |
OPTION_MODE
Option mode.
|
static java.lang.String |
OPTION_TYPE
Option type.
|
static java.lang.String |
OPTION_WIDTH
Option width.
|
static java.lang.String |
OPTION_ZOOM
Option zoom.
|
Constructor and Description |
---|
CmsLocationPickerWidgetValue()
Creates a new empty widget option object.
|
CmsLocationPickerWidgetValue(java.lang.String value)
Creates a new widget value object, configured by the given value String.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Returns the height.
|
float |
getLat()
Returns the lat.
|
float |
getLng()
Returns the longitude.
|
CmsLocationPickerWidgetValue.MapMode |
getMode()
Returns the mode.
|
CmsLocationPickerWidgetValue.MapType |
getType()
Returns the type.
|
int |
getWidth()
Returns the width.
|
int |
getZoom()
Returns the zoom.
|
protected void |
parseOptions(java.lang.String configuration)
Parses the given configuration String.
|
void |
setHeight(int height)
Sets the height.
|
void |
setLat(float lat)
Sets the latitude.
|
void |
setLng(float lng)
Sets the longitude.
|
void |
setMode(CmsLocationPickerWidgetValue.MapMode mode)
Sets the mode.
|
void |
setType(CmsLocationPickerWidgetValue.MapType type)
Sets the type.
|
void |
setWidth(int width)
Sets the width.
|
void |
setWrappedValue(java.lang.String value)
Sets the value that is wrapped.
|
void |
setZoom(int zoom)
Sets the zoom.
|
java.lang.String |
toString() |
public static final int DEFAULT_HEIGHT
public static final float DEFAULT_LAT
public static final float DEFAULT_LNG
public static final CmsLocationPickerWidgetValue.MapMode DEFAULT_MODE
public static final CmsLocationPickerWidgetValue.MapType DEFAULT_TYPE
public static final int DEFAULT_WIDTH
public static final int DEFAULT_ZOOM
public static final java.lang.String OPTION_HEIGHT
public static final java.lang.String OPTION_LAT
public static final java.lang.String OPTION_LNG
public static final java.lang.String OPTION_MODE
public static final java.lang.String OPTION_TYPE
public static final java.lang.String OPTION_WIDTH
public static final java.lang.String OPTION_ZOOM
public CmsLocationPickerWidgetValue()
public CmsLocationPickerWidgetValue(java.lang.String value)
value
- the value String to parsepublic int getHeight()
public float getLat()
public float getLng()
public CmsLocationPickerWidgetValue.MapMode getMode()
public CmsLocationPickerWidgetValue.MapType getType()
public int getWidth()
public int getZoom()
public void setHeight(int height)
height
- the height to setpublic void setLat(float lat)
lat
- the latitude to setpublic void setLng(float lng)
lng
- the longitude to setpublic void setMode(CmsLocationPickerWidgetValue.MapMode mode)
mode
- the mode to setpublic void setType(CmsLocationPickerWidgetValue.MapType type)
type
- the type to setpublic void setWidth(int width)
width
- the width to setpublic void setWrappedValue(java.lang.String value)
instead of setting the value directly via the constructor.value
- The string value that should be wrapped as CmsLocationPickerWidgetValue.public void setZoom(int zoom)
zoom
- the zoom to setpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
protected void parseOptions(java.lang.String configuration)
configuration
- the configuration String to parse