|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.vcs.spi.VCSContextMenuListener
public abstract class VCSContextMenuListener
Utility listener class for handling context menu events.
Constructor Summary | |
---|---|
VCSContextMenuListener(java.lang.String vcsId) |
Method Summary | |
---|---|
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. |
protected float |
getSection() |
boolean |
handleDefaultAction(Context context) Called when the user double clicks on an item that has a context menu. |
void |
menuWillHide(ContextMenu popup) This method is called just before a showing context menu is dismissed. |
void |
menuWillShow(ContextMenu popup) Called just before the context menu is shown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VCSContextMenuListener(java.lang.String vcsId)
Method Detail |
---|
public boolean handleDefaultAction(Context context)
ContextMenuListener
true
; otherwise it must return false
. Processing of handleDefaultAction
stops on the first return of true
.handleDefaultAction
in interface ContextMenuListener
context
- the context on which the default action needs to occur.public void menuWillHide(ContextMenu popup)
ContextMenuListener
ContextMenuListener.menuWillShow(oracle.ide.controller.ContextMenu)
, since the IDE takes care of that automatically.menuWillHide
in interface ContextMenuListener
popup
- the context menu being hiddenpublic void menuWillShow(ContextMenu popup)
ContextMenuListener
menuWillShow
in interface ContextMenuListener
popup
- the context menu being shownprotected abstract java.awt.Component[] getContextMenuItems(Context context)
context
- the current context.protected float getSection()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |