Class CmsLocationValue
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
org.opencms.gwt.client.ui.input.location.CmsLocationValue
The location value.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Protected constructor required for JavaScript overlay objects. -
Method Summary
Modifier and TypeMethodDescriptionClones the value object.Returns the location address.int
Returns the height.float
Returns the latitude.Returns the latitude string representation.float
Returns the longitude.Returns the longitude string representation.getMode()
Returns the mode.getType()
Returns the type.int
getWidth()
Returns the width.int
getZoom()
Returns the zoom.static CmsLocationValue
Parses the given JSON string.void
setAddress
(String address) Sets the address.void
setHeight
(int height) Sets the height.void
Sets the height.void
setLatitude
(float latitude) Sets the latitude.void
setLatitude
(String latitude) Sets the latitude.void
setLongitude
(float longitude) Sets the longitude.void
setLongitude
(String longitude) Sets the longitude.void
Sets the map mode.void
Sets the map type.void
setWidth
(int width) Sets the width.void
Sets the width.void
setZoom
(int zoom) Sets the map zoom level.void
Sets the map zoom level.Returns the JSON string representation of this value.Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
CmsLocationValue
protected CmsLocationValue()Protected constructor required for JavaScript overlay objects.
-
-
Method Details
-
parse
Parses the given JSON string.- Parameters:
value
- the value string to parse- Returns:
- the location object
-
cloneValue
Clones the value object.- Returns:
- the clone
-
getAddress
Returns the location address.- Returns:
- the address
-
getHeight
Returns the height.- Returns:
- the height
-
getLatitude
Returns the latitude.- Returns:
- the latitude
-
getLatitudeString
Returns the latitude string representation.- Returns:
- the latitude string representation
-
getLongitude
Returns the longitude.- Returns:
- the longitude
-
getLongitudeString
Returns the longitude string representation.- Returns:
- the longitude string representation
-
getMode
Returns the mode.- Returns:
- the mode
-
getType
Returns the type.- Returns:
- the type
-
getWidth
Returns the width.- Returns:
- the width
-
getZoom
Returns the zoom.- Returns:
- the zoom
-
setAddress
Sets the address.- Parameters:
address
- the address
-
setHeight
Sets the height.- Parameters:
height
- the height
-
setHeight
Sets the height.- Parameters:
height
- the height
-
setLatitude
Sets the latitude.- Parameters:
latitude
- the latitude
-
setLatitude
Sets the latitude.- Parameters:
latitude
- the latitude
-
setLongitude
Sets the longitude.- Parameters:
longitude
- the longitude
-
setLongitude
Sets the longitude.- Parameters:
longitude
- the longitude
-
setMode
Sets the map mode.- Parameters:
mode
- the map mode
-
setType
Sets the map type.- Parameters:
type
- the map type
-
setWidth
Sets the width.- Parameters:
width
- the width
-
setWidth
Sets the width.- Parameters:
width
- the width
-
setZoom
Sets the map zoom level.- Parameters:
zoom
- the zoom level
-
setZoom
Sets the map zoom level.- Parameters:
zoom
- the zoom level
-
toJSONString
Returns the JSON string representation of this value.- Returns:
- the JSON string representation
-