|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.Slider
public class Slider
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.
| Constructor Summary | |
|---|---|
protected |
Slider()
constructs the class Sliderhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Slider |
attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Value was changed. |
Slider |
attachLiveChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Value was changed. |
static Slider |
create()
creates a new instance of the class Slider |
static Slider |
create(String idOrConfig)
creates a new instance of the class Slider |
static Slider |
create(String id,
String config)
creates a new instance of the class Slider |
Slider |
detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Value was changed. |
Slider |
detachLiveChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Value was changed. |
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. |
Slider |
setEditable(boolean value)
Setter for property editableDefault value is: true |
Slider |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
Slider |
setMax(float value)
Setter for property maxDefault value is: 100 |
Slider |
setMin(float value)
Setter for property minDefault value is: 0 |
Slider |
setSmallStepWidth(float value)
Setter for property smallStepWidth |
Slider |
setStepLabels(boolean value)
Setter for property stepLabelsDefault value is: false |
Slider |
setTotalUnits(int value)
Setter for property totalUnits |
Slider |
setValue(float value)
Setter for property valueDefault value is: 50 |
Slider |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
Slider |
setWidth(String value)
Setter for property widthDefault value is: 100% |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Slider()
SliderJavaScriptObject restriction
| Method Detail |
|---|
public static Slider create()
Slider
public static Slider create(String idOrConfig)
Slider
id - id of the Slider or configuration JSON string
public static Slider create(String id,
String config)
Slider
id - id of the Sliderconfig - configuration JSON stringpublic final String getWidth()
width
Width of the slider.
public final Slider setWidth(String value)
width100%
value - String
this to allow method chainingpublic final float getMin()
min
Minimal value of the slider.
public final Slider setMin(float value)
min0
value - float
this to allow method chainingpublic final float getMax()
max
Maximal value of the slider
public final Slider setMax(float value)
max100
value - float
this to allow method chainingpublic final float getValue()
value
Current value of the slider. (Position of the grip.)
public final Slider setValue(float value)
value50
value - float
this to allow method chainingpublic final float getSmallStepWidth()
smallStepWidth
The grip can only be moved in steps of this width.
public final Slider setSmallStepWidth(float value)
smallStepWidth
value - float
this to allow method chainingpublic final int getTotalUnits()
totalUnits
Number of units that are displayed by ticks. The PageUp and PageDown keys navigate according to these units.
public final Slider setTotalUnits(int value)
totalUnits
value - int
this to allow method chainingpublic final boolean isStepLabels()
stepLabels
Display step numbers for the ticks on the slider.
public final Slider setStepLabels(boolean value)
stepLabelsfalse
value - boolean
this to allow method chainingpublic final boolean isVisible()
visible
Invisible sliders are not rendered.
public final Slider setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final boolean isEditable()
editable
Using the slider interactively requires value "true".
public final Slider setEditable(boolean value)
editabletrue
value - boolean
this to allow method chainingpublic final boolean isEnabled()
enabled
Switches enabled state of the control. Disabled fields have different colors, and can not be focused.
public final Slider setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final Slider 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 EventListener
this to allow method chainingpublic final Slider 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 EventListener
this to allow method chainingpublic final Slider 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 EventListener
this to allow method chainingpublic final Slider 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
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||