|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.listeners.WidgetKeyboardAdapter
public abstract class WidgetKeyboardAdapter
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 | |
|---|---|
WidgetKeyboardAdapter()
|
|
| Method Summary | |
|---|---|
void |
onInputStateChanged(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent comp,
int delta,
int state,
long when,
boolean isTopMost,
boolean hasFocus)
This event is fired when the state of any DeviceComponent has changed. |
void |
onKeyPressed(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
This event is fired, when a key is pressed on a focused Widget. |
void |
onKeyReleased(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
This event is fired, when a key is released on a focused Widget. |
void |
onKeyTyped(Widget widget,
char ch,
int modifierMask,
long when)
This event is fired when a key is typed on the keyboard. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WidgetKeyboardAdapter()
| Method Detail |
|---|
public void onKeyPressed(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
onKeyPressed in interface WidgetKeyboardListenerwidget - the Widget for which this event was firedkey - the key that was pressedmodifierMask - the mask of modifier keyswhen - the gameTime of the key event
public void onKeyReleased(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
onKeyReleased in interface WidgetKeyboardListenerwidget - the Widget for which this event was firedkey - the key that was releasedmodifierMask - the mask of modifier keyswhen - the gameTime of the key event
public void onKeyTyped(Widget widget,
char ch,
int modifierMask,
long when)
onKeyTyped in interface WidgetKeyboardListenerwidget - the Widget for which this event was firedch - the typed key's charactermodifierMask - the mask of modifier keyswhen - the gameTime of the key event
public void onInputStateChanged(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent comp,
int delta,
int state,
long when,
boolean isTopMost,
boolean hasFocus)
onInputStateChanged in interface WidgetKeyboardListenerwidget - the Widget for which this event was firedwhen - the gameTime of the event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||