org.zaval.lw
Class LwPopupManager
java.lang.Object
|
+--org.zaval.lw.LwPopupManager
- All Implemented Interfaces:
- java.util.EventListener, LwManager, LwMouseListener
- public class LwPopupManager
- extends java.lang.Object
- implements LwManager, LwMouseListener
This is popup manager class that allows you to specify a popup menu for the
given component. Use the setPopup method for this purpose. The manager listens
mouse events to show a popup menu by the pressing the right mouse button or by pressing
the left mouse button and keeping its pressing during 500 milliseconds.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LwPopupManager
public LwPopupManager()
setPopup
public void setPopup(LwComponent c,
PopupInfo p)
- Binds a popup menu with the given light weight component by the given popup info
interface implementation.
- Parameters:
c - the given component.p - the specified popup info interface implementation. Use null
as the argument value to unbind the popup info interface implementation.
getPopup
public PopupInfo getPopup(LwComponent c)
- Gets the popup info interface for the specified component.
- Parameters:
c - the specified component.- Returns:
- a popup info interface.
dispose
public void dispose()
- Description copied from interface:
LwManager
- Disposes the manager. The method is supposed to be used for disposing different manager related structures
to free system resources. The method is invoked by LwVCL core when the manager ends its "live".
- Specified by:
dispose in interface LwManager
mousePressed
public void mousePressed(LwMouseEvent e)
- Description copied from interface:
LwMouseListener
- Invoked when the mouse button has been pressed on a light weight component.
- Specified by:
mousePressed in interface LwMouseListener
- Following copied from interface:
org.zaval.lw.event.LwMouseListener
- Parameters:
e - the specified mouse event.
mouseReleased
public void mouseReleased(LwMouseEvent e)
- Description copied from interface:
LwMouseListener
- Invoked when the mouse button has been released on a light weight component.
- Specified by:
mouseReleased in interface LwMouseListener
- Following copied from interface:
org.zaval.lw.event.LwMouseListener
- Parameters:
e - the specified mouse event.
mouseClicked
public void mouseClicked(LwMouseEvent e)
- Description copied from interface:
LwMouseListener
- Invoked when the mouse button has been clicked on a light weight component.
- Specified by:
mouseClicked in interface LwMouseListener
- Following copied from interface:
org.zaval.lw.event.LwMouseListener
- Parameters:
e - the specified mouse event.
mouseEntered
public void mouseEntered(LwMouseEvent e)
- Description copied from interface:
LwMouseListener
- Invoked when the mouse enters a light weight component.
- Specified by:
mouseEntered in interface LwMouseListener
- Following copied from interface:
org.zaval.lw.event.LwMouseListener
- Parameters:
e - the specified mouse event.
mouseExited
public void mouseExited(LwMouseEvent e)
- Description copied from interface:
LwMouseListener
- Invoked when the mouse exits a light weight component.
- Specified by:
mouseExited in interface LwMouseListener
- Following copied from interface:
org.zaval.lw.event.LwMouseListener
- Parameters:
e - the specified mouse event.
|