public class NativeButtonConnector extends AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
NativeButtonConnector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delegateCaptionHandling()
Return true if parent handles caption, false if the paintable handles the
caption itself.
|
NativeButtonState |
getState()
Returns the shared state object for this connector.
|
VNativeButton |
getWidget()
Returns the widget associated with this paintable.
|
void |
init()
Called when the connector has been initialized.
|
void |
onStateChanged(StateChangeEvent stateChangeEvent)
Notifies the event handler that the state has changed.
|
createWidget, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isReadOnly, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, 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 void init()
AbstractConnectorinit in class AbstractConnectorpublic 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 VNativeButton getWidget()
AbstractComponentConnectorgetWidget in interface ComponentConnectorgetWidget in class AbstractComponentConnectorpublic NativeButtonState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractComponentConnectorCopyright © 2016 Vaadin Ltd. All rights reserved.