NiftyControlScrollbarControlpublic interface Scrollbar extends NiftyControl
| Modifier and Type | Method | Description |
|---|---|---|
float |
getButtonStepSize() |
Get the current button step size.
|
float |
getPageStepSize() |
Get the current page size.
|
float |
getValue() |
Get the current value of the scrollbar.
|
float |
getWorldMax() |
Get the current maximum of the scrollbar.
|
float |
getWorldPageSize() |
Get the current page size
|
void |
setButtonStepSize(float stepSize) |
Set the button step size to a new value.
|
void |
setPageStepSize(float stepSize) |
Set a new page size for page up/down and clicks on the background.
|
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 |
setWorldMax(float worldMax) |
Set the new maximum of the scrollbar.
|
void |
setWorldPageSize(float worldPageSize) |
Set the new page size
|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthvoid setup(float value,
float worldMax,
float worldPageSize,
float buttonStepSize,
float pageStepSize)
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 backgroundvoid setValue(float value)
value - the new valuefloat getValue()
void setWorldMax(float worldMax)
worldMax - new maximumfloat getWorldMax()
void setWorldPageSize(float worldPageSize)
worldPageSize - new page sizefloat getWorldPageSize()
void setButtonStepSize(float stepSize)
stepSize - step sizefloat getButtonStepSize()
void setPageStepSize(float stepSize)
stepSize - new step sizefloat getPageStepSize()
Copyright © 2018. All rights reserved.