public class LinkConnector extends AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD
Constructor and Description |
---|
LinkConnector() |
Modifier and Type | Method and Description |
---|---|
boolean |
delegateCaptionHandling()
Return true if parent handles caption, false if the paintable handles the
caption itself.
|
LinkState |
getState()
Returns the shared state object for this connector.
|
VLink |
getWidget()
Returns the widget associated with this paintable.
|
void |
onStateChanged(StateChangeEvent stateChangeEvent)
Notifies the event handler that the state has changed.
|
createWidget, flush, 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, updateWidgetStyleNames
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, init, 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 LinkState getState()
AbstractConnector
getState
in interface ComponentConnector
getState
in interface ServerConnector
getState
in class AbstractComponentConnector
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 onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandler
onStateChanged
in interface StateChangeEvent.StateChangeHandler
onStateChanged
in class AbstractComponentConnector
stateChangeEvent
- the state change event with details about the changepublic VLink getWidget()
AbstractComponentConnector
getWidget
in interface HasWidget
getWidget
in class AbstractComponentConnector
Copyright © 2018 Vaadin Ltd. All rights reserved.