Class CmsLocationValue
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
org.opencms.gwt.client.ui.input.location.CmsLocationValue
The location value.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor required for JavaScript overlay objects. -
Method Summary
Modifier and TypeMethodDescriptionClones the value object.Returns the location address.intReturns the height.floatReturns the latitude.Returns the latitude string representation.floatReturns the longitude.Returns the longitude string representation.getMode()Returns the mode.getType()Returns the type.intgetWidth()Returns the width.intgetZoom()Returns the zoom.static CmsLocationValueParses the given JSON string.voidsetAddress(String address) Sets the address.voidsetHeight(int height) Sets the height.voidSets the height.voidsetLatitude(float latitude) Sets the latitude.voidsetLatitude(String latitude) Sets the latitude.voidsetLongitude(float longitude) Sets the longitude.voidsetLongitude(String longitude) Sets the longitude.voidSets the map mode.voidSets the map type.voidsetWidth(int width) Sets the width.voidSets the width.voidsetZoom(int zoom) Sets the map zoom level.voidSets 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
-