|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.controls.nullobjects.ScrollbarNull
public class ScrollbarNull
Constructor Summary | |
---|---|
ScrollbarNull()
|
Method Summary | |
---|---|
void |
disable()
|
void |
enable()
|
float |
getButtonStepSize()
Get the current button step size. |
Element |
getElement()
|
int |
getHeight()
|
String |
getId()
|
float |
getPageStepSize()
Get the current page size. |
String |
getStyle()
|
float |
getValue()
Get the current value of the scrollbar. |
int |
getWidth()
|
float |
getWorldMax()
Get the current maximum of the scrollbar. |
float |
getWorldPageSize()
Get the current page size |
boolean |
hasFocus()
|
boolean |
isBound()
|
boolean |
isEnabled()
|
void |
layoutCallback()
|
void |
setButtonStepSize(float stepSize)
Set the button step size to a new value. |
void |
setEnabled(boolean enabled)
|
void |
setFocus()
|
void |
setFocusable(boolean focusable)
|
void |
setHeight(SizeValue height)
|
void |
setId(String id)
|
void |
setPageStepSize(float stepSize)
Set a new page size for page up/down and clicks on the background. |
void |
setStyle(String style)
|
void |
setup(float value,
float worldMax,
float worldPageSize,
float buttonStepSize,
float pageStepSize)
Setup all parameters of this Scrollbar. |
void |
setValue(float value)
Change the value of the scrollbar. |
void |
setWidth(SizeValue width)
|
void |
setWorldMax(float worldMax)
Set the new maximum of the scrollbar. |
void |
setWorldPageSize(float worldPageSize)
Set the new page size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScrollbarNull()
Method Detail |
---|
public Element getElement()
getElement
in interface NiftyControl
public String getId()
getId
in interface NiftyControl
public void setId(String id)
setId
in interface NiftyControl
public int getWidth()
getWidth
in interface NiftyControl
public void setWidth(SizeValue width)
setWidth
in interface NiftyControl
public int getHeight()
getHeight
in interface NiftyControl
public void setHeight(SizeValue height)
setHeight
in interface NiftyControl
public String getStyle()
getStyle
in interface NiftyControl
public void setStyle(String style)
setStyle
in interface NiftyControl
public void enable()
enable
in interface NiftyControl
public void disable()
disable
in interface NiftyControl
public void setEnabled(boolean enabled)
setEnabled
in interface NiftyControl
public boolean isEnabled()
isEnabled
in interface NiftyControl
public void setup(float value, float worldMax, float worldPageSize, float buttonStepSize, float pageStepSize)
Scrollbar
setup
in interface Scrollbar
value
- the initial valueworldMax
- the maximum valueworldPageSize
- the page sizebuttonStepSize
- the step size for button clickspageStepSize
- the step size for page up/down or clicks on the scrollbar backgroundpublic void setValue(float value)
Scrollbar
setValue
in interface Scrollbar
value
- the new valuepublic float getValue()
Scrollbar
getValue
in interface Scrollbar
public void setWorldMax(float worldMax)
Scrollbar
setWorldMax
in interface Scrollbar
worldMax
- new maximumpublic float getWorldMax()
Scrollbar
getWorldMax
in interface Scrollbar
public void setWorldPageSize(float worldPageSize)
Scrollbar
setWorldPageSize
in interface Scrollbar
worldPageSize
- new page sizepublic float getWorldPageSize()
Scrollbar
getWorldPageSize
in interface Scrollbar
public void setButtonStepSize(float stepSize)
Scrollbar
setButtonStepSize
in interface Scrollbar
stepSize
- step sizepublic float getButtonStepSize()
Scrollbar
getButtonStepSize
in interface Scrollbar
public void setPageStepSize(float stepSize)
Scrollbar
setPageStepSize
in interface Scrollbar
stepSize
- new step sizepublic float getPageStepSize()
Scrollbar
getPageStepSize
in interface Scrollbar
public void setFocus()
setFocus
in interface NiftyControl
public void setFocusable(boolean focusable)
setFocusable
in interface NiftyControl
public boolean hasFocus()
hasFocus
in interface NiftyControl
public void layoutCallback()
layoutCallback
in interface NiftyControl
public boolean isBound()
isBound
in interface NiftyControl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |