public class ButtonConnector extends AbstractComponentConnector implements com.google.gwt.event.dom.client.ClickHandler
SIGNIFICANT_MOVE_THRESHOLD
Constructor and Description |
---|
ButtonConnector() |
Modifier and Type | Method and Description |
---|---|
boolean |
delegateCaptionHandling()
Return true if parent handles caption, false if the paintable handles the
caption itself.
|
ButtonState |
getState()
Returns the shared state object for this connector.
|
VButton |
getWidget()
Returns the widget associated with this paintable.
|
void |
init()
Called when the connector has been initialized.
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
createWidget, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onStateChanged, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize, updateWidgetStyleNames
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, unregisterRpc
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag
getConnectorId
public boolean delegateCaptionHandling()
ComponentConnector
This 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 ComponentConnector
delegateCaptionHandling
in class AbstractComponentConnector
public void init()
AbstractConnector
init
in class AbstractConnector
public VButton getWidget()
AbstractComponentConnector
getWidget
in interface HasWidget
getWidget
in class AbstractComponentConnector
public ButtonState getState()
AbstractConnector
getState
in interface ComponentConnector
getState
in interface ServerConnector
getState
in class AbstractComponentConnector
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick
in interface com.google.gwt.event.dom.client.ClickHandler
Copyright © 2018 Vaadin Ltd. All rights reserved.