public class SliderConnector extends AbstractFieldConnector implements com.google.gwt.event.logical.shared.ValueChangeHandler<Double>
Modifier and Type | Field and Description |
---|---|
protected SliderServerRpc |
rpc |
SIGNIFICANT_MOVE_THRESHOLD
Constructor and Description |
---|
SliderConnector() |
Modifier and Type | Method and Description |
---|---|
SliderState |
getState()
Returns the shared state object for this connector.
|
VSlider |
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.
|
void |
onUnregister()
Event called when connector has been unregistered.
|
void |
onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Double> event) |
isReadOnly, isRequiredIndicatorVisible, updateWidgetStyleNames
createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize
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
delegateCaptionHandling, flush, getLayoutManager, getTooltipInfo, hasTooltip, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabled
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledState
getConnectorId
protected SliderServerRpc rpc
public void init()
AbstractConnector
init
in class AbstractConnector
public void onUnregister()
ServerConnector
onUnregister
in interface ServerConnector
onUnregister
in class AbstractComponentConnector
public VSlider getWidget()
AbstractComponentConnector
getWidget
in interface HasWidget
getWidget
in class AbstractComponentConnector
public SliderState getState()
AbstractConnector
getState
in interface ComponentConnector
getState
in interface ServerConnector
getState
in class AbstractFieldConnector
public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Double> event)
onValueChange
in interface com.google.gwt.event.logical.shared.ValueChangeHandler<Double>
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 changeCopyright © 2018 Vaadin Ltd. All rights reserved.