public class VSlider extends SimpleFocusablePanel implements Field, com.google.gwt.user.client.ui.HasValue<Double>, SubPartAware
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME |
protected ApplicationConnection |
client |
protected boolean |
disabled |
protected String |
id |
protected boolean |
immediate |
protected double |
max |
protected double |
min |
protected SliderOrientation |
orientation |
protected boolean |
readonly |
protected int |
resolution |
protected Double |
value |
| Constructor and Description |
|---|
VSlider() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Double> handler) |
void |
buildBase()
For internal use only.
|
protected int |
getEventPosition(com.google.gwt.user.client.Event event)
TODO consider extracting touches support to an impl class specific for
webkit (only browser that really supports touches).
|
protected int |
getNavigationDownKey()
Get the key that decreases the vertical slider.
|
protected int |
getNavigationLeftKey()
Get the key that decreases the horizontal slider.
|
protected int |
getNavigationRightKey()
Get the key that increases the horizontal slider.
|
protected int |
getNavigationUpKey()
Get the key that increases the vertical slider.
|
com.google.gwt.user.client.Element |
getSubPartElement(String subPart) |
String |
getSubPartName(com.google.gwt.user.client.Element subElement) |
Double |
getValue() |
boolean |
handleNavigation(int keycode,
boolean ctrl,
boolean shift)
Handles the keyboard events handled by the Slider.
|
void |
iLayout() |
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
setConnection(ApplicationConnection client) |
void |
setDisabled(boolean disabled) |
void |
setFeedbackValue(double value) |
void |
setId(String id) |
void |
setImmediate(boolean immediate) |
void |
setMaxValue(double value) |
void |
setMinValue(double value) |
void |
setOrientation(SliderOrientation orientation) |
void |
setReadOnly(boolean readonly) |
void |
setResolution(int resolution) |
void |
setStyleName(String style) |
void |
setStylePrimaryName(String style) |
void |
setValue(Double value) |
void |
setValue(Double value,
boolean fireEvents) |
protected void |
updateStyleNames(String styleName,
boolean isPrimaryStyleName) |
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, focus, getTabIndex, setAccessKey, setFocus, setTabIndexadd, getContainerElement, getWidget, iterator, remove, setWidget, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String CLASSNAME
protected ApplicationConnection client
protected String id
protected boolean immediate
protected boolean disabled
protected boolean readonly
protected double min
protected double max
protected int resolution
protected Double value
protected SliderOrientation orientation
public void setStyleName(String style)
setStyleName in class com.google.gwt.user.client.ui.UIObjectpublic void setStylePrimaryName(String style)
setStylePrimaryName in class com.google.gwt.user.client.ui.UIObjectprotected void updateStyleNames(String styleName, boolean isPrimaryStyleName)
public void setFeedbackValue(double value)
public void buildBase()
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetprotected int getEventPosition(com.google.gwt.user.client.Event event)
event - public void iLayout()
public boolean handleNavigation(int keycode,
boolean ctrl,
boolean shift)
keycode - The key code receivedctrl - Whether CTRL was pressedshift - Whether SHIFT was pressedprotected int getNavigationUpKey()
protected int getNavigationDownKey()
protected int getNavigationLeftKey()
protected int getNavigationRightKey()
public void setConnection(ApplicationConnection client)
public void setId(String id)
public void setImmediate(boolean immediate)
public void setDisabled(boolean disabled)
public void setReadOnly(boolean readonly)
public void setOrientation(SliderOrientation orientation)
public void setMinValue(double value)
public void setMaxValue(double value)
public void setResolution(int resolution)
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Double> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<Double>public Double getValue()
public void setValue(Double value)
public void setValue(Double value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<Double>public com.google.gwt.user.client.Element getSubPartElement(String subPart)
getSubPartElement in interface SubPartAwarepublic String getSubPartName(com.google.gwt.user.client.Element subElement)
getSubPartName in interface SubPartAwareCopyright © 2021 Vaadin Ltd. All rights reserved.