|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.listeners.WidgetLocationAdapter
public abstract class WidgetLocationAdapter
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 | |
|---|---|
WidgetLocationAdapter()
|
|
| Method Summary | |
|---|---|
void |
onWidgetDragStarted(Widget widget)
This event is fired when a Widget is started to be dragged. |
void |
onWidgetDragStopped(Widget widget)
This event is fired when a Widget is stopped to be dragged. |
void |
onWidgetLocationChanged(Widget widget,
float oldLeft,
float oldTop,
float newLeft,
float newTop)
This event is fired when a Widget's location has changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WidgetLocationAdapter()
| Method Detail |
|---|
public void onWidgetDragStarted(Widget widget)
onWidgetDragStarted in interface WidgetLocationListenerwidget - the Widget, which is draggedpublic void onWidgetDragStopped(Widget widget)
onWidgetDragStopped in interface WidgetLocationListenerwidget - the Widget, which was dragged
public void onWidgetLocationChanged(Widget widget,
float oldLeft,
float oldTop,
float newLeft,
float newTop)
onWidgetLocationChanged in interface WidgetLocationListenerwidget - the Widget, which's location has changedoldLeft - the old left coordinate of the WidgetoldTop - the old top coordinate of the WidgetnewLeft - the new left coordinate of the WidgetnewTop - the new top coordinate of the Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||