Class CmsDataViewClientWidget

  • 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 CmsDataViewClientWidget
    extends com.google.gwt.user.client.ui.Composite
    The client-side widget for data view items.

    This widget by itself doesn't allow you to edit the information directly, instead it opens a popup window when clicked, in which the user can then select items from the configured data view.

    • Nested Class Summary

      • 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 
      Modifier and Type Field Description
      static java.lang.String CALLBACK
      The name of the callback.
      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void ensureCallback​(java.lang.String name)
      Ensures that the javascript callback is installed.
      static void handleResult​(java.lang.String json)
      Handles the JSON results returned by the embedded Vaadin dialog.
      • 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 Detail

      • CmsDataViewClientWidget

        public CmsDataViewClientWidget​(CmsDataViewValueAccessor valueAccessor,
                                       java.lang.String configString)
        Creates a new instance.

        Parameters:
        valueAccessor - object used to read/write values from and to the editor
        configString - the configuration string
    • Method Detail

      • ensureCallback

        public static void ensureCallback​(java.lang.String name)
        Ensures that the javascript callback is installed.

        Parameters:
        name - the name of the callback function
      • handleResult

        public static void handleResult​(java.lang.String json)
        Handles the JSON results returned by the embedded Vaadin dialog.

        Parameters:
        json - the JSON results