public class Slider extends UiElement implements Actionable
| Constructor and Description |
|---|
Slider()
Constructor.
|
Slider(java.lang.String id)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener listener) |
void |
attach(ParentRenderNode<?,?> parentRenderNode)
Attaches a
RenderNode for this element to a parent
RenderNode |
void |
detach(ParentRenderNode<?,?> parentRenderNode)
Detaches this element's
RenderNode from a parent
RenderNode |
float |
getValue()
Returns the
Slider value |
float |
getValueStep()
Returns the amount to change the value by on each keyboard/controller
event
|
boolean |
isChangedOnBeginEvent()
Returns if the value should change when a keyboard/controller event
begins and change the value until the event ends.
|
boolean |
isEnabled() |
void |
notifyActionListenersOfBeginEvent(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
void |
notifyActionListenersOfEndEvent(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
void |
removeActionListener(ActionListener listener) |
void |
setChangedOnBeginEvent(boolean changedOnBeginEvent)
Sets if the value should change when a keyboard/controller event
begins and change the value until the event ends.
|
void |
setEnabled(boolean enabled) |
void |
setStyleId(java.lang.String styleId)
Sets the style if for this
UiElement |
void |
setValue(float value)
Sets the
Slider value. |
void |
setValueStep(float valueStep)
Sets the amount to change the value by on each keyboard/controller event
|
void |
setVisibility(Visibility visibility)
Sets the current
Visibility of this UiElement |
void |
setZIndex(int zIndex)
Sets the Z index of this
UiElement. |
void |
syncWithRenderNode()
Syncs data between the
UiElement and RenderNode |
addEffectListener, addHoverListener, applyEffect, defer, defer, equals, getElementById, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, processDeferred, removeEffectListener, removeHoverListener, setDebugEnabledclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddHoverListener, getId, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeHoverListenerpublic Slider()
Sliderpublic Slider(java.lang.String id)
id - The unique ID for this Sliderpublic void attach(ParentRenderNode<?,?> parentRenderNode)
UiElementRenderNode for this element to a parent
RenderNodeattach in class UiElementparentRenderNode - The parent RenderNode to attach topublic void detach(ParentRenderNode<?,?> parentRenderNode)
UiElementRenderNode from a parent
RenderNodedetach in class UiElementparentRenderNode - The parent RenderNode to detach frompublic void setVisibility(Visibility visibility)
UiElementVisibility of this UiElementsetVisibility in class UiElementvisibility - The Visibility to setpublic void setStyleId(java.lang.String styleId)
UiElementUiElementsetStyleId in class UiElementstyleId - The style id to setpublic void syncWithRenderNode()
UiElementUiElement and RenderNodesyncWithRenderNode in class UiElementpublic void setZIndex(int zIndex)
UiElementUiElement. Elements will be rendered on
different Z layers in ascending Z order (negatives values first, positive values last)public boolean isEnabled()
isEnabled in interface Actionablepublic void setEnabled(boolean enabled)
setEnabled in interface Actionablepublic void notifyActionListenersOfBeginEvent(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
notifyActionListenersOfBeginEvent in interface Actionablepublic void notifyActionListenersOfEndEvent(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
notifyActionListenersOfEndEvent in interface Actionablepublic void addActionListener(ActionListener listener)
addActionListener in interface Actionablepublic void removeActionListener(ActionListener listener)
removeActionListener in interface Actionablepublic float getValue()
Slider valuepublic void setValue(float value)
Slider value.value - A value between 0.0 and 1.0public float getValueStep()
public void setValueStep(float valueStep)
valueStep - A non-zero valuepublic boolean isChangedOnBeginEvent()
public void setChangedOnBeginEvent(boolean changedOnBeginEvent)
changedOnBeginEvent - False to only change on the end event