org.xith3d.ui.hud.listeners
Interface WidgetContainerListener

All Known Implementing Classes:
WidgetContainerAdapter, WidgetEventsReceiverAdapter

public interface WidgetContainerListener

A WidgetContainmentListener is notified when a Widget is added to or removed from to a WidgetContainer.


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.
 

Method Detail

onWidgetAddedToContainer

void onWidgetAddedToContainer(WidgetContainer container,
                              Widget widget)
This event is fired, when a Widget is added to a WidgetContainer.

Parameters:
container - the WidgetContainer, the Widget is added to
widget - the Widget, which is added to a WidgetContainer

onWidgetAddedToHUD

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.

Parameters:
hud - the HUD, the Widget is added to
widget - the Widget, which is added to a WidgetContainer

onWidgetRemovedFromContainer

void onWidgetRemovedFromContainer(WidgetContainer container,
                                  Widget widget)
This event is fired, when a Widget is removed from a WidgetContainer.

Parameters:
container - the WidgetContainer, the Widget is removed from
widget - the Widget, which is removed from a WidgetContainer