org.xith3d.ui.hud.listeners
Class SliderAdapter

java.lang.Object
  extended by org.xith3d.ui.hud.listeners.SliderAdapter
All Implemented Interfaces:
SliderListener

public abstract class SliderAdapter
extends java.lang.Object
implements SliderListener

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
SliderAdapter()
           
 
Method Summary
 void onSliderValueChanged(Slider slider, int newValue)
          This event is fired when the value of a Slider has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliderAdapter

public SliderAdapter()
Method Detail

onSliderValueChanged

public void onSliderValueChanged(Slider slider,
                                 int newValue)
This event is fired when the value of a Slider has changed.

Specified by:
onSliderValueChanged in interface SliderListener
Parameters:
slider - the Slider, which's value has changed
newValue - the new (current) value of the Slider