Class CmsDataViewClientWidget
- 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.acacia.client.widgets.complex.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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CALLBACK
The name of the callback.
-
Constructor Summary
Constructors Constructor Description CmsDataViewClientWidget(CmsDataViewValueAccessor valueAccessor, java.lang.String configString)
Creates a new instance.
-
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
-
-
-
-
Field Detail
-
CALLBACK
public static final java.lang.String CALLBACK
The name of the callback.- See Also:
- Constant Field Values
-
-
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 editorconfigString
- 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
-
-