public class ColorPickerConnector extends AbstractColorPickerConnector
ColorPicker with the client
side counterpart VColorPickerSIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
ColorPickerConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.gwt.user.client.ui.Widget |
createWidget()
Creates and returns the widget for this VPaintableWidget.
|
ColorPickerState |
getState()
Returns the shared state object for this connector.
|
VColorPicker |
getWidget()
Returns the widget associated with this paintable.
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
protected void |
refreshColor()
Update the widget to show the currently selected color.
|
protected void |
setCaption(String caption)
Set caption of the color picker widget.
|
delegateCaptionHandling, getCaption, init, onStateChanged, refreshDefaultCaptionStyleflush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize, updateWidgetStyleNamesaddStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, unregisterRpcclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTaggetConnectorIdprotected com.google.gwt.user.client.ui.Widget createWidget()
AbstractComponentConnector
You should typically not override this method since the framework by
default generates an implementation that uses GWT.create(Class)
to create a widget of the same type as returned by the most specific
override of AbstractComponentConnector.getWidget(). If you do override the method, you
can't call super.createWidget() since the metadata needed
for that implementation is not generated if there's an override of the
method.
createWidget in class AbstractComponentConnectorpublic VColorPicker getWidget()
AbstractComponentConnectorgetWidget in interface ComponentConnectorgetWidget in class AbstractComponentConnectorpublic void onClick(com.google.gwt.event.dom.client.ClickEvent event)
protected void setCaption(String caption)
AbstractColorPickerConnectorsetCaption in class AbstractColorPickerConnectorprotected void refreshColor()
AbstractColorPickerConnectorrefreshColor in class AbstractColorPickerConnectorpublic ColorPickerState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractColorPickerConnectorCopyright © 2018 Vaadin Ltd. All rights reserved.