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, isReadOnly, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, 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, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, unregisterRpcclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParentgetConnectorIdpublic 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 init()
AbstractConnectorinit in class AbstractConnectorpublic VButton getWidget()
AbstractComponentConnectorgetWidget in interface ComponentConnectorgetWidget in class AbstractComponentConnectorpublic ButtonState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractComponentConnectorpublic void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerCopyright © 2016 Vaadin Ltd. All rights reserved.