public abstract class AbstractColorPickerConnector extends AbstractComponentConnector implements com.google.gwt.event.dom.client.ClickHandler
SIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
AbstractColorPickerConnector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delegateCaptionHandling()
Return true if parent handles caption, false if the paintable handles the
caption itself.
|
protected String |
getCaption()
Get caption for the color picker widget.
|
AbstractColorPickerState |
getState()
Returns the shared state object for this connector.
|
void |
init()
Called when the connector has been initialized.
|
void |
onStateChanged(StateChangeEvent stateChangeEvent)
Notifies the event handler that the state has changed.
|
protected abstract void |
refreshColor()
Update the widget to show the currently selected color.
|
protected void |
refreshDefaultCaptionStyle()
Add/remove default caption style.
|
protected abstract void |
setCaption(String caption)
Set caption of the color picker widget.
|
createWidget, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, getWidget, 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, setTaggetConnectorIdpublic AbstractColorPickerState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractComponentConnectorpublic boolean delegateCaptionHandling()
ComponentConnectorThis should always return true and all components should let the parent handle the caption and use other attributes for internal texts in the component
delegateCaptionHandling in interface ComponentConnectordelegateCaptionHandling in class AbstractComponentConnectorpublic void onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandleronStateChanged in interface StateChangeEvent.StateChangeHandleronStateChanged in class AbstractComponentConnectorstateChangeEvent - the state change event with details about the changepublic void init()
AbstractConnectorinit in class AbstractConnectorprotected String getCaption()
protected void refreshDefaultCaptionStyle()
protected abstract void setCaption(String caption)
caption - protected abstract void refreshColor()
Copyright © 2018 Vaadin Ltd. All rights reserved.