Class CmsLocationController

java.lang.Object
org.opencms.gwt.client.ui.input.location.CmsLocationController

public class CmsLocationController extends Object
The location picker controller.

  • Constructor Details

  • Method Details

    • getLocationValue

      Returns the current location value.

      Returns:
      the location value
    • getStringValue

      Returns the JSON string representation of the current value.

      Returns:
      the JSON string representation
    • setStringValue

      public void setStringValue(String value)
      Sets the location value as string.
      Parameters:
      value - the string representation of the location value (JSON)
    • getCurrentPosition

      protected com.google.gwt.core.client.JavaScriptObject getCurrentPosition()
      Return a maps API position object according the the current location value.

      Returns:
      the position object
    • onAddressChange

      protected void onAddressChange(String address)
      Called on address value change.

      Parameters:
      address - the new address
    • onAddressChange

      protected void onAddressChange(com.google.gwt.user.client.ui.SuggestOracle.Suggestion suggestion)
      Called on address suggestion selection.

      Parameters:
      suggestion - the selected suggestion
    • onCancel

      protected void onCancel()
      Cancels the location selection.

    • onHeightChange

      protected void onHeightChange(String height)
      Called on height value change.

      Parameters:
      height - the height
    • onLatitudeChange

      protected void onLatitudeChange(String latitude)
      Called on latitude value change.

      Parameters:
      latitude - the latitude
    • onLongitudeChange

      protected void onLongitudeChange(String longitude)
      Called on longitude value change.

      Parameters:
      longitude - the longitude
    • onModeChange

      protected void onModeChange(String mode)
      Called on mode value change.

      Parameters:
      mode - the mode
    • onOk

      protected void onOk()
      Sets the selected location value.

    • onPreviewResize

      protected void onPreviewResize()
      Ensures the preview map has the right size and is centered.

    • onTypeChange

      protected void onTypeChange(String type)
      Called on map type change.

      Parameters:
      type - the map type
    • onWidthChange

      protected void onWidthChange(String width)
      Called on width value change.

      Parameters:
      width - the width
    • onZoomChange

      protected void onZoomChange(String zoom)
      Called on zoom value change.

      Parameters:
      zoom - the zoom