org.xith3d.ui.hud.listeners
Class ScrollbarAdapter

java.lang.Object
  extended by org.xith3d.ui.hud.listeners.ScrollbarAdapter
All Implemented Interfaces:
ScrollbarListener

public abstract class ScrollbarAdapter
extends java.lang.Object
implements ScrollbarListener

If a Widget makes use of other Widgets to be built and these Widgets produce events, that are to be catched be the Widget only, then you should create an inner class and let it extend this class to catch them, since it already implements all known Widget-Listeners (with empty method stubs).


Constructor Summary
ScrollbarAdapter()
           
 
Method Summary
 void onScrollbarValueChanged(Scrollbar scrollbar, int newValue)
          This event is fired when the value of a Scrollbar has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScrollbarAdapter

public ScrollbarAdapter()
Method Detail

onScrollbarValueChanged

public void onScrollbarValueChanged(Scrollbar scrollbar,
                                    int newValue)
This event is fired when the value of a Scrollbar has changed.

Specified by:
onScrollbarValueChanged in interface ScrollbarListener
Parameters:
scrollbar - the Scrollbar, which's value has changed
newValue - the new (current) value of the Scrollbar