|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.listeners.WidgetContainerAdapter
public abstract class WidgetContainerAdapter
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 | |
|---|---|
WidgetContainerAdapter()
|
|
| Method Summary | |
|---|---|
void |
onWidgetAddedToContainer(WidgetContainer container,
Widget widget)
This event is fired, when a Widget is added to a WidgetContainer. |
void |
onWidgetAddedToHUD(HUD hud,
Widget widget)
This event is fired, when a Widget is added to a WidgetContainer and the container itself is already added to the HUD or is the HUD itself. |
void |
onWidgetRemovedFromContainer(WidgetContainer container,
Widget widget)
This event is fired, when a Widget is removed from a WidgetContainer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WidgetContainerAdapter()
| Method Detail |
|---|
public void onWidgetAddedToContainer(WidgetContainer container,
Widget widget)
onWidgetAddedToContainer in interface WidgetContainerListenercontainer - the WidgetContainer, the Widget is added towidget - the Widget, which is added to a WidgetContainer
public void onWidgetAddedToHUD(HUD hud,
Widget widget)
onWidgetAddedToHUD in interface WidgetContainerListenerhud - the HUD, the Widget is added towidget - the Widget, which is added to a WidgetContainer
public void onWidgetRemovedFromContainer(WidgetContainer container,
Widget widget)
onWidgetRemovedFromContainer in interface WidgetContainerListenercontainer - the WidgetContainer, the Widget is removed fromwidget - the Widget, which is removed from a WidgetContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||