|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.zaval.lw.LwPopupManager
This abstract class should be used to implement a popup menu manager. Use
the setPopup
method to register or unregister the specified
pop up menu for the specified light weight component.
Constructor Summary | |
LwPopupManager()
|
Method Summary | |
void |
dispose()
|
abstract void |
hidePopup(java.lang.Object popup)
Hides the specified popup menu. |
void |
mouseClicked(LwMouseEvent e)
Invoked when the mouse button has been clicked on a light weight component. |
void |
mouseEntered(LwMouseEvent e)
Invoked when the mouse enters a light weight component. |
void |
mouseExited(LwMouseEvent e)
Invoked when the mouse exits a light weight component. |
void |
mousePressed(LwMouseEvent e)
Invoked when the mouse button has been pressed on a light weight component. |
void |
mouseReleased(LwMouseEvent e)
Invoked when the mouse button has been released on a light weight component. |
void |
setPopup(LwComponent c,
java.lang.Object p)
Binds the specified pop up menu with the given light weight component. |
abstract void |
showPopup(LwComponent target,
int x,
int y,
java.lang.Object popup)
Shows the specified popup menu for the target light weight component at the given location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LwPopupManager()
Method Detail |
public void setPopup(LwComponent c, java.lang.Object p)
null
value as the pop up menu to unbind a popup menu from
the specified light weight component.c
- the given light weight component.p
- the specified pop up menu.public void dispose()
dispose
in interface LwManager
public void mousePressed(LwMouseEvent e)
LwMouseListener
mousePressed
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public void mouseClicked(LwMouseEvent e)
LwMouseListener
mouseClicked
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public void mouseEntered(LwMouseEvent e)
LwMouseListener
mouseEntered
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public void mouseExited(LwMouseEvent e)
LwMouseListener
mouseExited
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public void mouseReleased(LwMouseEvent e)
LwMouseListener
mouseReleased
in interface LwMouseListener
org.zaval.lw.event.LwMouseListener
e
- the specified mouse event.public abstract void showPopup(LwComponent target, int x, int y, java.lang.Object popup)
target
- the given light weight component.x
- the x coordinate.y
- the y coordinate.popup
- the specified popup menu.
public abstract void hidePopup(java.lang.Object popup)
popup
- the specified popup menu.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |