org.zaval.lw
Class AWTPopupManager

java.lang.Object
  |
  +--org.zaval.lw.LwPopupManager
        |
        +--org.zaval.lw.AWTPopupManager
All Implemented Interfaces:
java.util.EventListener, LwManager, LwMouseListener

public class AWTPopupManager
extends LwPopupManager

This is popup menu manager. This implementation uses java.awt.PopupMenu implementation to organize pop up menu for the light weight components. This is very easy to use the manager, actually this implemenation provides just one method - setPopup - that allows to register or unregister the specified pop up menu with the specified light weight component.


Constructor Summary
AWTPopupManager()
           
 
Method Summary
 void hidePopup(java.lang.Object popup)
          Hides the specified popup menu.
 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 org.zaval.lw.LwPopupManager
dispose, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setPopup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTPopupManager

public AWTPopupManager()
Method Detail

showPopup

public void showPopup(LwComponent target,
                      int x,
                      int y,
                      java.lang.Object popup)
Description copied from class: LwPopupManager
Shows the specified popup menu for the target light weight component at the given location. The location should be relative to the desktop where the target component resides.
Overrides:
showPopup in class LwPopupManager
Following copied from class: org.zaval.lw.LwPopupManager
Parameters:
target - the given light weight component.
x - the x coordinate.
y - the y coordinate.
popup - the specified popup menu.

hidePopup

public void hidePopup(java.lang.Object popup)
Description copied from class: LwPopupManager
Hides the specified popup menu.
Overrides:
hidePopup in class LwPopupManager
Following copied from class: org.zaval.lw.LwPopupManager
Parameters:
popup - the specified popup menu.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org