de.lessvoid.nifty.controls.nullobjects
Class ScrollbarNull

java.lang.Object
  extended by de.lessvoid.nifty.controls.nullobjects.ScrollbarNull
All Implemented Interfaces:
NiftyControl, Scrollbar

public class ScrollbarNull
extends Object
implements Scrollbar


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

ScrollbarNull

public ScrollbarNull()
Method Detail

getElement

public Element getElement()
Specified by:
getElement in interface NiftyControl

getId

public String getId()
Specified by:
getId in interface NiftyControl

setId

public void setId(String id)
Specified by:
setId in interface NiftyControl

getWidth

public int getWidth()
Specified by:
getWidth in interface NiftyControl

setWidth

public void setWidth(SizeValue width)
Specified by:
setWidth in interface NiftyControl

getHeight

public int getHeight()
Specified by:
getHeight in interface NiftyControl

setHeight

public void setHeight(SizeValue height)
Specified by:
setHeight in interface NiftyControl

getStyle

public String getStyle()
Specified by:
getStyle in interface NiftyControl

setStyle

public void setStyle(String style)
Specified by:
setStyle in interface NiftyControl

enable

public void enable()
Specified by:
enable in interface NiftyControl

disable

public void disable()
Specified by:
disable in interface NiftyControl

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface NiftyControl

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface NiftyControl

setup

public void setup(float value,
                  float worldMax,
                  float worldPageSize,
                  float buttonStepSize,
                  float pageStepSize)
Description copied from interface: Scrollbar
Setup all parameters of this Scrollbar.

Specified by:
setup in interface Scrollbar
Parameters:
value - the initial value
worldMax - the maximum value
worldPageSize - the page size
buttonStepSize - the step size for button clicks
pageStepSize - the step size for page up/down or clicks on the scrollbar background

setValue

public void setValue(float value)
Description copied from interface: Scrollbar
Change the value of the scrollbar.

Specified by:
setValue in interface Scrollbar
Parameters:
value - the new value

getValue

public float getValue()
Description copied from interface: Scrollbar
Get the current value of the scrollbar.

Specified by:
getValue in interface Scrollbar
Returns:

setWorldMax

public void setWorldMax(float worldMax)
Description copied from interface: Scrollbar
Set the new maximum of the scrollbar.

Specified by:
setWorldMax in interface Scrollbar
Parameters:
worldMax - new maximum

getWorldMax

public float getWorldMax()
Description copied from interface: Scrollbar
Get the current maximum of the scrollbar.

Specified by:
getWorldMax in interface Scrollbar
Returns:
current world max

setWorldPageSize

public void setWorldPageSize(float worldPageSize)
Description copied from interface: Scrollbar
Set the new page size

Specified by:
setWorldPageSize in interface Scrollbar
Parameters:
worldPageSize - new page size

getWorldPageSize

public float getWorldPageSize()
Description copied from interface: Scrollbar
Get the current page size

Specified by:
getWorldPageSize in interface Scrollbar
Returns:
current page size

setButtonStepSize

public void setButtonStepSize(float stepSize)
Description copied from interface: Scrollbar
Set the button step size to a new value.

Specified by:
setButtonStepSize in interface Scrollbar
Parameters:
stepSize - step size

getButtonStepSize

public float getButtonStepSize()
Description copied from interface: Scrollbar
Get the current button step size.

Specified by:
getButtonStepSize in interface Scrollbar
Returns:
step size

setPageStepSize

public void setPageStepSize(float stepSize)
Description copied from interface: Scrollbar
Set a new page size for page up/down and clicks on the background.

Specified by:
setPageStepSize in interface Scrollbar
Parameters:
stepSize - new step size

getPageStepSize

public float getPageStepSize()
Description copied from interface: Scrollbar
Get the current page size.

Specified by:
getPageStepSize in interface Scrollbar
Returns:
page size

setFocus

public void setFocus()
Specified by:
setFocus in interface NiftyControl

setFocusable

public void setFocusable(boolean focusable)
Specified by:
setFocusable in interface NiftyControl

hasFocus

public boolean hasFocus()
Specified by:
hasFocus in interface NiftyControl

layoutCallback

public void layoutCallback()
Specified by:
layoutCallback in interface NiftyControl

isBound

public boolean isBound()
Specified by:
isBound in interface NiftyControl


Copyright © 2011. All Rights Reserved.