|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.SliderWidget
public class SliderWidget
The class Slider is the GWT wrapper
for the Phoenix control: sap.ui.commons.Slider.
The interactive control is displayed as a horizontal line with a pointer and units of measurement. Users can move the pointer along the line to change values with graphical support.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
SliderWidget()
constructs the class SliderWidget |
protected |
SliderWidget(Slider control)
constructs the class SliderWidget |
|
SliderWidget(String id)
constructs the class SliderWidget |
| Method Summary | |
|---|---|
void |
attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Value was changed. |
void |
attachLiveChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Value was changed. |
void |
detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Value was changed. |
void |
detachLiveChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Value was changed. |
Slider |
getControl()
returns the reference to the Phoenix Control |
float |
getMax()
Getter for property max
Maximal value of the slider |
float |
getMin()
Getter for property min
Minimal value of the slider. |
float |
getSmallStepWidth()
Getter for property smallStepWidth
The grip can only be moved in steps of this width. |
int |
getTotalUnits()
Getter for property totalUnits
Number of units that are displayed by ticks. |
float |
getValue()
Getter for property value
Current value of the slider. |
String |
getWidth()
Getter for property width
Width of the slider. |
boolean |
isEditable()
Getter for property editable
Using the slider interactively requires value "true". |
boolean |
isEnabled()
Getter for property enabled
Switches enabled state of the control. |
boolean |
isStepLabels()
Getter for property stepLabels
Display step numbers for the ticks on the slider. |
boolean |
isVisible()
Getter for property visible
Invisible sliders are not rendered. |
void |
setEditable(boolean value)
Setter for property editableDefault value is: true |
void |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
void |
setMax(float value)
Setter for property maxDefault value is: 100 |
void |
setMin(float value)
Setter for property minDefault value is: 0 |
void |
setSmallStepWidth(float value)
Setter for property smallStepWidth |
void |
setStepLabels(boolean value)
Setter for property stepLabelsDefault value is: false |
void |
setTotalUnits(int value)
Setter for property totalUnits |
void |
setValue(float value)
Setter for property valueDefault value is: 50 |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property widthDefault value is: 100% |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SliderWidget()
SliderWidget
public SliderWidget(String id)
SliderWidget
id - id of the SliderWidgetprotected SliderWidget(Slider control)
SliderWidget
control - reference to an existing Slider| Method Detail |
|---|
public Slider getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getWidth()
width
Width of the slider.
public void setWidth(String value)
width100%
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic float getMin()
min
Minimal value of the slider.
public void setMin(float value)
min0
value - floatpublic float getMax()
max
Maximal value of the slider
public void setMax(float value)
max100
value - floatpublic float getValue()
value
Current value of the slider. (Position of the grip.)
public void setValue(float value)
value50
value - floatpublic float getSmallStepWidth()
smallStepWidth
The grip can only be moved in steps of this width.
public void setSmallStepWidth(float value)
smallStepWidth
value - floatpublic int getTotalUnits()
totalUnits
Number of units that are displayed by ticks. The PageUp and PageDown keys navigate according to these units.
public void setTotalUnits(int value)
totalUnits
value - intpublic boolean isStepLabels()
stepLabels
Display step numbers for the ticks on the slider.
public void setStepLabels(boolean value)
stepLabelsfalse
value - booleanpublic boolean isVisible()
visible
Invisible sliders are not rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic boolean isEditable()
editable
Using the slider interactively requires value "true".
public void setEditable(boolean value)
editabletrue
value - booleanpublic boolean isEnabled()
enabled
Switches enabled state of the control. Disabled fields have different colors, and can not be focused.
public void setEnabled(boolean value)
enabledtrue
value - booleanpublic void attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Value was changed. This event is fired if the value has changed by an user action. Additionally it is fired on setValue if the value is changed because to fit step-wide.
listener - reference to the EventListenerpublic void detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Value was changed. This event is fired if the value has changed by an user action. Additionally it is fired on setValue if the value is changed because to fit step-wide.
listener - reference to the EventListenerpublic void attachLiveChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Value was changed. This event is fired during the mouse move. The normal change event ist only fired by mouseup.
listener - reference to the EventListenerpublic void detachLiveChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Value was changed. This event is fired during the mouse move. The normal change event ist only fired by mouseup.
listener - reference to the EventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||