|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.zaval.lw.event.LwEventManager
This is one of the core classes of the light weight library that is used to define light weight events delivering strategy. Actually all light weight components events at first are passed to the manager and after that the manager decides how the events should be delivered.
The manager provides listeners supporting for following events types:
addComponentListener
and removeComponentListener
methods.
addContainerListener
and removeContainerListener
methods.
addMouseListener
and removeMouseListener
methods.
addMouseMotionListener
and removeMouseMotionListener
methods.
addKeyListener
and removeKeyListener
methods.
addFocusListener
and removeFocusListener
methods.
addWinListener
and removeWinListener
methods.
The manager provides universal methods to register and unregister light weight listeners,
the method checks if the object implements one of the events listeners and calls
appropriate method (see list above) to register or unregister appropriate listeners.
Use addXXXListener
and removeXXXListener
for the purposes.
Constructor Summary | |
LwEventManager()
|
Method Summary | |
void |
addComponentListener(LwComponentListener l)
Adds the specified component events listener. |
void |
addContainerListener(LwContainerListener l)
Adds the specified container events listener. |
void |
addFocusListener(LwFocusListener l)
Adds the specified focus events listener. |
void |
addKeyListener(LwKeyListener l)
Adds the specified key events listener. |
void |
addMouseListener(LwMouseListener l)
Adds the specified mouse events listener. |
void |
addMouseMotionListener(LwMouseMotionListener l)
Adds the specified mouse motion events listener. |
void |
addWinListener(LwWinListener l)
Adds the specified window listener. |
void |
addXXXListener(java.util.EventListener l)
Adds the specified events listener. |
void |
dispose()
|
LwComponent |
getEventDestination(LwComponent target)
Gets the event destination. |
void |
perform(LwAWTEvent e)
Performs the specified light weight event. |
void |
removeComponentListener(LwComponentListener l)
Removes the specified component events listener. |
void |
removeContainerListener(LwContainerListener l)
Removes the specified container events listener. |
void |
removeFocusListener(LwFocusListener l)
Removes the specified focus events listener. |
void |
removeKeyListener(LwKeyListener l)
Removes the specified key events listener. |
void |
removeMouseListener(LwMouseListener l)
Removes the specified mouse events listener. |
void |
removeMouseMotionListener(LwMouseMotionListener l)
Removes the specified mouse motion events listener. |
void |
removeWinListener(LwWinListener l)
Removes the specified window listener. |
void |
removeXXXListener(java.util.EventListener l)
Removes the specified events listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LwEventManager()
Method Detail |
public void addXXXListener(java.util.EventListener l)
l
- the specified events listener.public void removeXXXListener(java.util.EventListener l)
l
- the specified events listener.public void addComponentListener(LwComponentListener l)
l
- the specified events listener.public void removeComponentListener(LwComponentListener l)
l
- the specified events listener.public void addContainerListener(LwContainerListener l)
l
- the specified events listener.public void removeContainerListener(LwContainerListener l)
l
- the specified events listener.public void addMouseListener(LwMouseListener l)
l
- the specified events listener.public void removeMouseListener(LwMouseListener l)
l
- the specified events listener.public void addMouseMotionListener(LwMouseMotionListener l)
l
- the specified events listener.public void removeMouseMotionListener(LwMouseMotionListener l)
l
- the specified events listener.public void addFocusListener(LwFocusListener l)
l
- the specified events listener.public void removeFocusListener(LwFocusListener l)
l
- the specified events listener.public void addKeyListener(LwKeyListener l)
l
- the specified events listener.public void removeKeyListener(LwKeyListener l)
l
- the specified events listener.public void removeWinListener(LwWinListener l)
l
- the specified window listener.public void addWinListener(LwWinListener l)
l
- the specified events listener.public void dispose()
dispose
in interface LwManager
public void perform(LwAWTEvent e)
e
- the specified light weight event.public LwComponent getEventDestination(LwComponent target)
target
- the specified target component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |