oracle.jdeveloper.vcs.spi
Class VCSContextMenuListener
java.lang.Object
oracle.jdeveloper.vcs.spi.VCSContextMenuListener
- All Implemented Interfaces:
- ContextMenuListener
- public abstract class VCSContextMenuListener
- extends java.lang.Object
- implements ContextMenuListener
Utility listener class for handling context menu events.
- Since:
- 9.0.5
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VCSContextMenuListener
public VCSContextMenuListener()
handleDefaultAction
public boolean handleDefaultAction(Context context)
- Description copied from interface:
ContextMenuListener
- Called when the user double clicks on an item that has a popup menu. Only one listener should return true from this menu.
-
- Specified by:
handleDefaultAction
in interface ContextMenuListener
-
- Parameters:
context
- the current context
poppingDown
public void poppingDown(ContextMenu popup)
-
- Specified by:
poppingDown
in interface ContextMenuListener
poppingUp
public void poppingUp(ContextMenu popup)
- Description copied from interface:
ContextMenuListener
- Called just before the context menu is popping up.
-
- Specified by:
poppingUp
in interface ContextMenuListener
getContextMenuItems
protected abstract java.awt.Component[] getContextMenuItems(Context context)
- Gets the menu items to be added directly to the context menu when popup notification is received.
-
- Parameters:
context
- the current context.
- Returns:
- the menu item components to add.
Copyright © 1997, 2004, Oracle. All rights reserved.