org.objectweb.jac.aspects.gui.swing
Class SwingEvents
java.lang.Object
org.objectweb.jac.aspects.gui.swing.SwingEvents
- public class SwingEvents
- extends Object
Gather common swing events code
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwingEvents
public SwingEvents()
showObjectMenu
public static void showObjectMenu(DisplayContext context,
Object object,
MouseEvent event)
- Displays a popup menu for an object
- Parameters:
context
- object
- the object to display a menu forevent
- the mouse event that triggered the popup. The popup
will be placed at the coordinates of this event.- See Also:
showObjectsMenu(DisplayContext,Object[],MouseEvent)
showObjectsMenu
public static void showObjectsMenu(DisplayContext context,
Object[] objects,
MouseEvent event)
- Displays a popup menu for some objects. The menus that would be
displayed for each object are concatenated.
- Parameters:
context
- objects
- the objects to display a menu forevent
- the mouse event that triggered the popup. The popup
will be placed at the coordinates of this event.- See Also:
showObjectMenu(DisplayContext,Object,MouseEvent)