|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSimplePanel
com.vaadin.client.ui.SimpleFocusablePanel
com.vaadin.client.ui.VSlider
public class VSlider
| Field Summary | |
|---|---|
static java.lang.String |
CLASSNAME
|
protected ApplicationConnection |
client
|
protected boolean |
disabled
|
protected java.lang.String |
id
|
protected boolean |
immediate
|
protected double |
max
|
protected double |
min
|
protected com.vaadin.shared.ui.slider.SliderOrientation |
orientation
|
protected boolean |
readonly
|
protected int |
resolution
|
protected java.lang.Double |
value
|
| Constructor Summary | |
|---|---|
VSlider()
|
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<java.lang.Double> handler)
|
void |
buildBase()
For internal use only. |
protected int |
getEventPosition(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(java.lang.String subPart)
Locates an element inside a component using the identifier provided in subPart. |
java.lang.String |
getSubPartName(com.google.gwt.user.client.Element subElement)
Provides an identifier that identifies the element within the component. |
java.lang.Double |
getValue()
|
boolean |
handleNavigation(int keycode,
boolean ctrl,
boolean shift)
Handles the keyboard events handled by the Slider |
void |
iLayout()
|
void |
onBrowserEvent(Event event)
|
void |
setConnection(ApplicationConnection client)
|
void |
setDisabled(boolean disabled)
|
void |
setFeedbackValue(double value)
|
void |
setId(java.lang.String id)
|
void |
setImmediate(boolean immediate)
|
void |
setMaxValue(double value)
|
void |
setMinValue(double value)
|
void |
setOrientation(com.vaadin.shared.ui.slider.SliderOrientation orientation)
|
void |
setReadOnly(boolean readonly)
|
void |
setResolution(int resolution)
|
void |
setStyleName(java.lang.String style)
|
void |
setStylePrimaryName(java.lang.String style)
|
void |
setValue(java.lang.Double value)
|
void |
setValue(java.lang.Double value,
boolean fireEvents)
|
protected void |
updateStyleNames(java.lang.String styleName,
boolean isPrimaryStyleName)
|
| Methods inherited from class com.vaadin.client.ui.SimpleFocusablePanel |
|---|
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, focus, setFocus, setTabIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASSNAME
protected ApplicationConnection client
protected java.lang.String id
protected boolean immediate
protected boolean disabled
protected boolean readonly
protected double min
protected double max
protected int resolution
protected java.lang.Double value
protected com.vaadin.shared.ui.slider.SliderOrientation orientation
| Constructor Detail |
|---|
public VSlider()
| Method Detail |
|---|
public void setStyleName(java.lang.String style)
public void setStylePrimaryName(java.lang.String style)
protected void updateStyleNames(java.lang.String styleName,
boolean isPrimaryStyleName)
public void setFeedbackValue(double value)
public void buildBase()
public void onBrowserEvent(Event event)
protected int getEventPosition(Event event)
event -
public void iLayout()
public boolean handleNavigation(int keycode,
boolean ctrl,
boolean shift)
event - The keyboard event received
protected int getNavigationUpKey()
protected int getNavigationDownKey()
protected int getNavigationLeftKey()
protected int getNavigationRightKey()
public void setConnection(ApplicationConnection client)
public void setId(java.lang.String id)
public void setImmediate(boolean immediate)
public void setDisabled(boolean disabled)
public void setReadOnly(boolean readonly)
public void setOrientation(com.vaadin.shared.ui.slider.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<java.lang.Double> handler)
public java.lang.Double getValue()
public void setValue(java.lang.Double value)
public void setValue(java.lang.Double value,
boolean fireEvents)
public com.google.gwt.user.client.Element getSubPartElement(java.lang.String subPart)
SubPartAwaresubPart. The subPart identifier is component specific and
may be any string of characters, numbers, space characters and brackets.
getSubPartElement in interface SubPartAwaresubPart - The identifier for the element inside the component
public java.lang.String getSubPartName(com.google.gwt.user.client.Element subElement)
SubPartAwaresubElement is a part of the component and must never be null.
Note!
getSubPartElement(getSubPartName(element)) == element is not
always true. A component can choose to provide a more generic
identifier for any given element if the results of all interactions with
subElement are the same as interactions with the element
identified by the return value. For example a button can return an
identifier for the root element even though a DIV inside the button was
passed as subElement because interactions with the DIV and the
root button element produce the same result.
getSubPartName in interface SubPartAwaresubElement - The element the identifier string should uniquely identify
subElement or null
if no identifier could be provided.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||