Class CmsLocationValue

java.lang.Object
com.google.gwt.core.client.JavaScriptObject
org.opencms.gwt.client.ui.input.location.CmsLocationValue

public final class CmsLocationValue extends com.google.gwt.core.client.JavaScriptObject
The location value.

  • Constructor Details

    • CmsLocationValue

      protected CmsLocationValue()
      Protected constructor required for JavaScript overlay objects.

  • Method Details

    • parse

      public static CmsLocationValue parse(String value)
      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

      public String getAddress()
      Returns the location address.

      Returns:
      the address
    • getHeight

      public int getHeight()
      Returns the height.

      Returns:
      the height
    • getLatitude

      public float getLatitude()
      Returns the latitude.

      Returns:
      the latitude
    • getLatitudeString

      Returns the latitude string representation.

      Returns:
      the latitude string representation
    • getLongitude

      public float getLongitude()
      Returns the longitude.

      Returns:
      the longitude
    • getLongitudeString

      Returns the longitude string representation.

      Returns:
      the longitude string representation
    • getMode

      public String getMode()
      Returns the mode.

      Returns:
      the mode
    • getType

      public String getType()
      Returns the type.

      Returns:
      the type
    • getWidth

      public int getWidth()
      Returns the width.

      Returns:
      the width
    • getZoom

      public int getZoom()
      Returns the zoom.

      Returns:
      the zoom
    • setAddress

      public void setAddress(String address)
      Sets the address.

      Parameters:
      address - the address
    • setHeight

      public void setHeight(int height)
      Sets the height.

      Parameters:
      height - the height
    • setHeight

      public void setHeight(String height)
      Sets the height.

      Parameters:
      height - the height
    • setLatitude

      public void setLatitude(float latitude)
      Sets the latitude.

      Parameters:
      latitude - the latitude
    • setLatitude

      public void setLatitude(String latitude)
      Sets the latitude.

      Parameters:
      latitude - the latitude
    • setLongitude

      public void setLongitude(float longitude)
      Sets the longitude.

      Parameters:
      longitude - the longitude
    • setLongitude

      public void setLongitude(String longitude)
      Sets the longitude.

      Parameters:
      longitude - the longitude
    • setMode

      public void setMode(String mode)
      Sets the map mode.

      Parameters:
      mode - the map mode
    • setType

      public void setType(String type)
      Sets the map type.

      Parameters:
      type - the map type
    • setWidth

      public void setWidth(int width)
      Sets the width.

      Parameters:
      width - the width
    • setWidth

      public void setWidth(String width)
      Sets the width.

      Parameters:
      width - the width
    • setZoom

      public void setZoom(int zoom)
      Sets the map zoom level.

      Parameters:
      zoom - the zoom level
    • setZoom

      public void setZoom(String zoom)
      Sets the map zoom level.

      Parameters:
      zoom - the zoom level
    • toJSONString

      public String toJSONString()
      Returns the JSON string representation of this value.

      Returns:
      the JSON string representation