GuiEventManager, be.yildizgames.module.window.input.WindowInputListenerpublic class EventBubblingDispatcher extends Object implements GuiEventManager
| Constructor | Description |
|---|---|
EventBubblingDispatcher() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addView(View view) |
Add a view to the dispatcher and set all listeners list for that view.
|
BaseWidget |
getWidgetUnderMouse() |
|
void |
keyboardKeyPressed(char character) |
|
void |
keyboardKeyReleased(char keyCode) |
|
void |
mouseDoubleClick(be.yildizgames.module.window.input.MousePosition position) |
|
void |
mouseDragLeft(be.yildizgames.module.window.input.MousePosition position,
be.yildizgames.module.window.input.MousePosition delta) |
|
void |
mouseDragRight(be.yildizgames.module.window.input.MousePosition position,
be.yildizgames.module.window.input.MousePosition delta) |
|
void |
mouseDragWheel(be.yildizgames.module.window.input.MousePosition position,
be.yildizgames.module.window.input.MousePosition delta) |
|
void |
mouseLeftClick(be.yildizgames.module.window.input.MousePosition position) |
|
void |
mouseLeftReleased(be.yildizgames.module.window.input.MousePosition position) |
|
void |
mouseMove(be.yildizgames.module.window.input.MousePosition position) |
|
void |
mouseRightClick(be.yildizgames.module.window.input.MousePosition position) |
|
void |
mouseRightReleased(be.yildizgames.module.window.input.MousePosition position) |
|
void |
mouseWheel(be.yildizgames.module.window.input.MousePosition cursorPosition,
int count) |
|
void |
removeView(View view) |
Remove a View from the event dispatch.
|
void |
setDebugListener(be.yildizgames.common.client.debug.DebugListener l) |
|
void |
setDefaultView(View view) |
|
void |
setFocus(View view) |
Set the focus on a particular View.
|
void |
specialKeyPressed(be.yildizgames.module.window.input.Key key) |
|
void |
specialKeyReleased(be.yildizgames.module.window.input.Key key) |
public void setDebugListener(be.yildizgames.common.client.debug.DebugListener l)
setDebugListener in interface GuiEventManagerpublic void keyboardKeyPressed(char character)
keyboardKeyPressed in interface be.yildizgames.module.window.input.WindowInputListenerpublic void specialKeyPressed(be.yildizgames.module.window.input.Key key)
specialKeyPressed in interface be.yildizgames.module.window.input.WindowInputListenerpublic void keyboardKeyReleased(char keyCode)
keyboardKeyReleased in interface be.yildizgames.module.window.input.WindowInputListenerpublic void specialKeyReleased(be.yildizgames.module.window.input.Key key)
specialKeyReleased in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseLeftReleased(be.yildizgames.module.window.input.MousePosition position)
mouseLeftReleased in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseRightReleased(be.yildizgames.module.window.input.MousePosition position)
mouseRightReleased in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseLeftClick(be.yildizgames.module.window.input.MousePosition position)
mouseLeftClick in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseRightClick(be.yildizgames.module.window.input.MousePosition position)
mouseRightClick in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseDoubleClick(be.yildizgames.module.window.input.MousePosition position)
mouseDoubleClick in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseDragRight(be.yildizgames.module.window.input.MousePosition position,
be.yildizgames.module.window.input.MousePosition delta)
mouseDragRight in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseDragLeft(be.yildizgames.module.window.input.MousePosition position,
be.yildizgames.module.window.input.MousePosition delta)
mouseDragLeft in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseDragWheel(be.yildizgames.module.window.input.MousePosition position,
be.yildizgames.module.window.input.MousePosition delta)
mouseDragWheel in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseMove(be.yildizgames.module.window.input.MousePosition position)
mouseMove in interface be.yildizgames.module.window.input.WindowInputListenerpublic void mouseWheel(be.yildizgames.module.window.input.MousePosition cursorPosition,
int count)
mouseWheel in interface be.yildizgames.module.window.input.WindowInputListenerpublic void addView(View view)
GuiEventManageraddView in interface GuiEventManagerview - View to add.public void setDefaultView(View view)
setDefaultView in interface GuiEventManagerpublic void removeView(View view)
GuiEventManagerremoveView in interface GuiEventManagerview - View to remove, it will no longer be affected by mouse and keyboard events.public void setFocus(View view)
GuiEventManagersetFocus in interface GuiEventManagerview - View to set the focus on.public BaseWidget getWidgetUnderMouse()
getWidgetUnderMouse in interface GuiEventManagerCopyright © 2014–2018. All rights reserved.