public class ScrollbarNull extends Object implements Scrollbar
| Constructor and Description |
|---|
ScrollbarNull() |
| 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 |
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
|
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 value,
float worldMax,
float worldPageSize,
float buttonStepSize,
float pageStepSize)
Scrollbarpublic void setValue(float value)
Scrollbarpublic float getValue()
Scrollbarpublic void setWorldMax(float worldMax)
ScrollbarsetWorldMax in interface ScrollbarworldMax - new maximumpublic float getWorldMax()
ScrollbargetWorldMax in interface Scrollbarpublic void setWorldPageSize(float worldPageSize)
ScrollbarsetWorldPageSize in interface ScrollbarworldPageSize - new page sizepublic float getWorldPageSize()
ScrollbargetWorldPageSize in interface Scrollbarpublic void setButtonStepSize(float stepSize)
ScrollbarsetButtonStepSize in interface ScrollbarstepSize - step sizepublic float getButtonStepSize()
ScrollbargetButtonStepSize in interface Scrollbarpublic void setPageStepSize(float stepSize)
ScrollbarsetPageStepSize in interface ScrollbarstepSize - new step sizepublic float getPageStepSize()
ScrollbargetPageStepSize in interface Scrollbarpublic 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.