|
||||||||||
| 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 |
onWidgetAttachedToContainer(Widget widget,
WidgetContainer container)
This event is fired, when a Widget is added to a WidgetContainer. |
void |
onWidgetAttachedToHUD(Widget widget,
HUD hud)
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 |
onWidgetDetachedFromContainer(Widget widget,
WidgetContainer container)
This event is fired, when a Widget is removed from a WidgetContainer. |
void |
onWidgetDetachedFromHUD(Widget widget,
HUD hud)
This event is fired, when a Widget is removed from a HUD. |
| 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 onWidgetAttachedToContainer(Widget widget,
WidgetContainer container)
onWidgetAttachedToContainer in interface WidgetContainerListenerwidget - the Widget, which is added to a WidgetContainercontainer - the WidgetContainer, the Widget is added to
public void onWidgetDetachedFromContainer(Widget widget,
WidgetContainer container)
onWidgetDetachedFromContainer in interface WidgetContainerListenerwidget - the Widget, which is removed from a WidgetContainercontainer - the WidgetContainer, the Widget is removed from
public void onWidgetAttachedToHUD(Widget widget,
HUD hud)
onWidgetAttachedToHUD in interface WidgetContainerListenerwidget - the Widget, which is added to a WidgetContainerhud - the HUD, the Widget is added to
public void onWidgetDetachedFromHUD(Widget widget,
HUD hud)
onWidgetDetachedFromHUD in interface WidgetContainerListenerwidget - the Widget, which is removed from a HUDhud - the HUD, the Widget is removed from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||