org.xith3d.ui.hud.listeners
Class WidgetFocusAdapter

java.lang.Object
  extended by org.xith3d.ui.hud.listeners.WidgetFocusAdapter
All Implemented Interfaces:
WidgetFocusListener

public abstract class WidgetFocusAdapter
extends java.lang.Object
implements WidgetFocusListener

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
WidgetFocusAdapter()
           
 
Method Summary
 void onFocusGained(Widget widget)
          This event is fired, when the focus is gained to a Widget.
 void onFocusLost(Widget widget)
          This event is fired, when the focus is lost by a Widget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetFocusAdapter

public WidgetFocusAdapter()
Method Detail

onFocusGained

public void onFocusGained(Widget widget)
This event is fired, when the focus is gained to a Widget.

Specified by:
onFocusGained in interface WidgetFocusListener
Parameters:
widget - the Widget, which was gained the focus

onFocusLost

public void onFocusLost(Widget widget)
This event is fired, when the focus is lost by a Widget.

Specified by:
onFocusLost in interface WidgetFocusListener
Parameters:
widget - the Widget, which has lost the focus