public class SliderNull extends Object implements Slider
| Constructor and Description |
|---|
SliderNull() |
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
enable() |
float |
getButtonStepSize()
Get the current button step size.
|
Element |
getElement() |
int |
getHeight() |
String |
getId() |
float |
getMax()
Get the current maximum value.
|
float |
getMin()
Get the current minimum value for the Slider.
|
float |
getStepSize()
Get the current StepSize.
|
String |
getStyle() |
float |
getValue()
Get the current value of the Slider.
|
int |
getWidth() |
boolean |
hasFocus() |
boolean |
isBound() |
boolean |
isEnabled() |
void |
layoutCallback() |
void |
setButtonStepSize(float buttonStepSize)
Set a new Button StepSize.
|
void |
setEnabled(boolean enabled) |
void |
setFocus() |
void |
setFocusable(boolean focusable) |
void |
setHeight(SizeValue height) |
void |
setId(String id) |
void |
setMax(float max)
Set a new maximum value for the Slider.
|
void |
setMin(float min)
Set a new minimum value for the Slider.
|
void |
setStepSize(float stepSize)
Set a new StepSize.
|
void |
setStyle(String style) |
void |
setup(float min,
float max,
float current,
float stepSize,
float buttonStepSize)
Set all attributes at once.
|
void |
setValue(float value)
Set the Slider value to a new value.
|
void |
setWidth(SizeValue width) |
public Element getElement()
getElement in interface NiftyControlpublic String getId()
getId in interface NiftyControlpublic void setId(String id)
setId in interface NiftyControlpublic int getWidth()
getWidth in interface NiftyControlpublic void setWidth(SizeValue width)
setWidth in interface NiftyControlpublic int getHeight()
getHeight in interface NiftyControlpublic void setHeight(SizeValue height)
setHeight in interface NiftyControlpublic String getStyle()
getStyle in interface NiftyControlpublic void setStyle(String style)
setStyle in interface NiftyControlpublic void enable()
enable in interface NiftyControlpublic void disable()
disable in interface NiftyControlpublic void setEnabled(boolean enabled)
setEnabled in interface NiftyControlpublic boolean isEnabled()
isEnabled in interface NiftyControlpublic void setup(float min,
float max,
float current,
float stepSize,
float buttonStepSize)
Sliderpublic void setValue(float value)
Sliderpublic float getValue()
Sliderpublic void setMin(float min)
Sliderpublic float getMin()
Sliderpublic void setMax(float max)
Sliderpublic float getMax()
Sliderpublic void setStepSize(float stepSize)
SlidersetStepSize in interface SliderstepSize - the new step sizepublic float getStepSize()
SlidergetStepSize in interface Sliderpublic void setButtonStepSize(float buttonStepSize)
SlidersetButtonStepSize in interface SliderbuttonStepSize - the new button step size valuepublic float getButtonStepSize()
SlidergetButtonStepSize in interface Sliderpublic void setFocus()
setFocus in interface NiftyControlpublic void setFocusable(boolean focusable)
setFocusable in interface NiftyControlpublic boolean hasFocus()
hasFocus in interface NiftyControlpublic void layoutCallback()
layoutCallback in interface NiftyControlpublic boolean isBound()
isBound in interface NiftyControlCopyright © 2013. All Rights Reserved.