com.sap.ui.commons.client
Class SliderWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.sap.ui.core.client.ControlWidget
              extended by com.sap.ui.commons.client.SliderWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class SliderWidget
extends com.sap.ui.core.client.ControlWidget

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.

Version:
0.18.0-SNAPSHOT
Author:
GENERATOR (JavaScript control: Sebastian Allmann)

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 editable
Default value is: true
 void setEnabled(boolean value)
          Setter for property enabled
Default value is: true
 void setMax(float value)
          Setter for property max
Default value is: 100
 void setMin(float value)
          Setter for property min
Default value is: 0
 void setSmallStepWidth(float value)
          Setter for property smallStepWidth
 void setStepLabels(boolean value)
          Setter for property stepLabels
Default value is: false
 void setTotalUnits(int value)
          Setter for property totalUnits
 void setValue(float value)
          Setter for property value
Default value is: 50
 void setVisible(boolean value)
          Setter for property visible
Default value is: true
 void setWidth(String value)
          Setter for property width
Default 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

SliderWidget

public SliderWidget()
constructs the class SliderWidget


SliderWidget

public SliderWidget(String id)
constructs the class SliderWidget

Parameters:
id - id of the SliderWidget

SliderWidget

protected SliderWidget(Slider control)
constructs the class SliderWidget

Parameters:
control - reference to an existing Slider
Method Detail

getControl

public Slider getControl()
returns the reference to the Phoenix Control

Overrides:
getControl in class com.sap.ui.core.client.ControlWidget
Returns:
reference to the Phoenix Control

getWidth

public String getWidth()
Getter for property width Width of the slider.

Returns:
the value of property width

setWidth

public void setWidth(String value)
Setter for property width
Default value is: 100%

Overrides:
setWidth in class com.google.gwt.user.client.ui.UIObject
Parameters:
value - String

getMin

public float getMin()
Getter for property min Minimal value of the slider.

Returns:
the value of property min

setMin

public void setMin(float value)
Setter for property min
Default value is: 0

Parameters:
value - float

getMax

public float getMax()
Getter for property max Maximal value of the slider

Returns:
the value of property max

setMax

public void setMax(float value)
Setter for property max
Default value is: 100

Parameters:
value - float

getValue

public float getValue()
Getter for property value Current value of the slider. (Position of the grip.)

Returns:
the value of property value

setValue

public void setValue(float value)
Setter for property value
Default value is: 50

Parameters:
value - float

getSmallStepWidth

public float getSmallStepWidth()
Getter for property smallStepWidth The grip can only be moved in steps of this width.

Returns:
the value of property smallStepWidth

setSmallStepWidth

public void setSmallStepWidth(float value)
Setter for property smallStepWidth

Parameters:
value - float

getTotalUnits

public int getTotalUnits()
Getter for property totalUnits Number of units that are displayed by ticks. The PageUp and PageDown keys navigate according to these units.

Returns:
the value of property totalUnits

setTotalUnits

public void setTotalUnits(int value)
Setter for property totalUnits

Parameters:
value - int

isStepLabels

public boolean isStepLabels()
Getter for property stepLabels Display step numbers for the ticks on the slider.

Returns:
the value of property stepLabels

setStepLabels

public void setStepLabels(boolean value)
Setter for property stepLabels
Default value is: false

Parameters:
value - boolean

isVisible

public boolean isVisible()
Getter for property visible Invisible sliders are not rendered.

Overrides:
isVisible in class com.google.gwt.user.client.ui.UIObject
Returns:
the value of property visible

setVisible

public void setVisible(boolean value)
Setter for property visible
Default value is: true

Overrides:
setVisible in class com.google.gwt.user.client.ui.UIObject
Parameters:
value - boolean

isEditable

public boolean isEditable()
Getter for property editable Using the slider interactively requires value "true".

Returns:
the value of property editable

setEditable

public void setEditable(boolean value)
Setter for property editable
Default value is: true

Parameters:
value - boolean

isEnabled

public boolean isEnabled()
Getter for property enabled Switches enabled state of the control. Disabled fields have different colors, and can not be focused.

Returns:
the value of property enabled

setEnabled

public void setEnabled(boolean value)
Setter for property enabled
Default value is: true

Parameters:
value - boolean

attachChangeEvent

public void attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an 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.
Event Parameters:
{sap.ui.core/float} value Current value of the slider after a change.

Parameters:
listener - reference to the EventListener

detachChangeEvent

public void detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an 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.

Parameters:
listener - reference to the EventListener

attachLiveChangeEvent

public void attachLiveChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener Value was changed. This event is fired during the mouse move. The normal change event ist only fired by mouseup.
Event Parameters:
{sap.ui.core/float} value Current value of the slider after a change.

Parameters:
listener - reference to the EventListener

detachLiveChangeEvent

public void detachLiveChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener Value was changed. This event is fired during the mouse move. The normal change event ist only fired by mouseup.

Parameters:
listener - reference to the EventListener


Copyright © 2011 SAP. All Rights Reserved.