Class CmsLocationPicker

  • All Implemented Interfaces:,<java.lang.String>,,,,,, I_CmsHasResizeOnShow

    public class CmsLocationPicker
    implements<java.lang.String>, I_CmsHasResizeOnShow
    A google maps based location picker widget.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static interface  CmsLocationPicker.I_CmsLocationPickerUiBinder  
      • Nested classes/interfaces inherited from class,
    • Field Summary

      • Fields inherited from class

    • Constructor Summary

      Constructor Description
      CmsLocationPicker​(java.lang.String configuration)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description addValueChangeHandler​(<java.lang.String> handler)  
      protected void displayValue​(java.lang.String value)
      Displays the given value.
      CmsLocationValue getLocationValue()
      Returns the location value.
      java.lang.String getStringValue()
      Returns the JSON string representation of the value.
      protected boolean isPreviewVisible()
      Returns whether the map preview is visible.
      void resizeOnShow()
      Adjusts widget's size once it's visible.
      void setEnabled​(boolean enabled)
      Sets the picker enabled.
      protected void setLocationInfo​(java.util.Map<java.lang.String,​java.lang.String> infos)
      Sets the location info to the info panel.
      protected void setPreviewVisible​(boolean visible)
      Sets the preview visible.
      void setValue​(java.lang.String value)
      Sets the widget value.
      • Methods inherited from class

        claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class

        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

        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
      • Methods inherited from interface

    • Constructor Detail

      • CmsLocationPicker

        public CmsLocationPicker​(java.lang.String configuration)

        configuration - the widget configuration
    • Method Detail

      • addValueChangeHandler

        public addValueChangeHandler​(<java.lang.String> handler)
        Specified by:
        addValueChangeHandler in interface<java.lang.String>
        See Also:
      • getStringValue

        public java.lang.String getStringValue()
        Returns the JSON string representation of the value.

        the JSON string representation
      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets the picker enabled.

        enabled - true to enable the picker
      • setValue

        public void setValue​(java.lang.String value)
        Sets the widget value.

        value - the value
      • displayValue

        protected void displayValue​(java.lang.String value)
        Displays the given value.

        value - the value to display
      • isPreviewVisible

        protected boolean isPreviewVisible()
        Returns whether the map preview is visible.

        true in case the map preview is visible
      • setLocationInfo

        protected void setLocationInfo​(java.util.Map<java.lang.String,​java.lang.String> infos)
        Sets the location info to the info panel.

        infos - the location info items
      • setPreviewVisible

        protected void setPreviewVisible​(boolean visible)
        Sets the preview visible.

        visible - true to set the preview visible