Class CmsDataViewClientWidget

  • All Implemented Interfaces:,,,,,

    public class CmsDataViewClientWidget
    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,
    • Field Summary

      Modifier and Type Field Description
      static java.lang.String CALLBACK
      The name of the callback.
      • Fields inherited from class

    • 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

        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
    • Constructor Detail

      • CmsDataViewClientWidget

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

        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.

        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.

        json - the JSON results