Class CmsLocationPopupContent

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.input.location.CmsLocationPopupContent
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class CmsLocationPopupContent extends com.google.gwt.user.client.ui.Composite
The location picker map view.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static interface 
     

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
  • Field Summary

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsLocationPopupContent(CmsLocationController controller, com.google.gwt.user.client.ui.SuggestOracle addressOracle, Map<String,String> modeItems, Map<String,String> typeItems, Map<String,String> zoomItems)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Displays the location value fields.
    protected com.google.gwt.dom.client.Element
    Returns the map canvas element.
    protected void
    setAddressVisible(boolean visible)
    Sets the field visibility.
    protected void
    setLatLngVisible(boolean visible)
    Sets the field visibility.
    protected void
    setMapVisible(boolean visible)
    Sets the field visibility.
    protected void
    setModeVisible(boolean visible)
    Sets the field visibility.
    protected void
    setSizeVisible(boolean visible)
    Sets the field visibility.
    protected void
    setTypeVisible(boolean visible)
    Sets the field visibility.
    protected void
    setZoomVisible(boolean visible)
    Sets the field visibility.

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CmsLocationPopupContent

      public CmsLocationPopupContent(CmsLocationController controller, com.google.gwt.user.client.ui.SuggestOracle addressOracle, Map<String,String> modeItems, Map<String,String> typeItems, Map<String,String> zoomItems)
      Constructor.

      Parameters:
      controller - the location controller
      addressOracle - the address suggest oracle to use for the address suggest box
      modeItems - the available map modes
      typeItems - the available map types
      zoomItems - the available zoom levels
  • Method Details

    • displayValues

      protected void displayValues(CmsLocationValue value)
      Displays the location value fields.

      Parameters:
      value - the location value
    • getMapCanvas

      protected com.google.gwt.dom.client.Element getMapCanvas()
      Returns the map canvas element.

      Returns:
      the map canvas element
    • setAddressVisible

      protected void setAddressVisible(boolean visible)
      Sets the field visibility.

      Parameters:
      visible - true to show the field
    • setLatLngVisible

      protected void setLatLngVisible(boolean visible)
      Sets the field visibility.

      Parameters:
      visible - true to show the field
    • setMapVisible

      protected void setMapVisible(boolean visible)
      Sets the field visibility.

      Parameters:
      visible - true to show the field
    • setModeVisible

      protected void setModeVisible(boolean visible)
      Sets the field visibility.

      Parameters:
      visible - true to show the field
    • setSizeVisible

      protected void setSizeVisible(boolean visible)
      Sets the field visibility.

      Parameters:
      visible - true to show the field
    • setTypeVisible

      protected void setTypeVisible(boolean visible)
      Sets the field visibility.

      Parameters:
      visible - true to show the field
    • setZoomVisible

      protected void setZoomVisible(boolean visible)
      Sets the field visibility.

      Parameters:
      visible - true to show the field