|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ide.AbstractMenuManager | +--oracle.ide.ContextMenu
Fields inherited from class oracle.ide.AbstractMenuManager |
containerListener, menuListener |
Fields inherited from interface oracle.ide.MenuManager |
LAST_POSITION |
Constructor Summary | |
ContextMenu()
|
|
ContextMenu(MnemonicSolver solver)
|
Method Summary | |
void |
add(java.awt.Component child)
Appends a component into the MenuManager's GUI. |
void |
add(java.awt.Component child,
boolean fixed)
|
void |
addContextMenuListener(ContextMenuListener l)
Adds a context menu listener. |
void |
addContextMenuListener(ContextMenuListener l,
java.lang.Class cls)
Adds a ContextMenuListener that is called when the type
of the data represented by the current Context is
assignable to a variable whose type is of the specified
Class . |
void |
addSeparator()
Adds a Menu separator to the context menu. |
boolean |
fireDefaultAction(Context context)
|
Context |
getContext()
|
static Context |
getContext(javax.swing.JMenuItem menuItem)
|
java.awt.Container |
getGUI(boolean create)
Creates the actual popup menu. |
int |
getMenuCount()
Returns the number of elements in the menu. |
MnemonicSolver |
getMnemonicSolver()
Get the menu item mnemonic solver. |
void |
insert(java.awt.Component child,
java.awt.Component after)
Inserts a component into the MenuManager's GUI after the given sibling. |
void |
insert(java.awt.Component child,
java.awt.Component after,
boolean fixed)
|
void |
insert(java.awt.Component child,
int index)
Inserts a component into the MenuManager's GUI at the given index. |
void |
insert(java.awt.Component child,
int index,
boolean fixed)
|
void |
removeAll()
Removes all menu items from the popup menu. |
void |
removeContextMenuListener(ContextMenuListener l)
Removes a context menu listener. |
void |
show(Context context)
Shows the popup menu. |
Methods inherited from class oracle.ide.AbstractMenuManager |
add, createMenu, createMenuItem, createMenuItem, createSubMenu, getChildById, getIndexOfChild, getIndexOfCommandId, insert, insert, insert, remove, remove |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextMenu()
public ContextMenu(MnemonicSolver solver)
Method Detail |
public void add(java.awt.Component child)
MenuManager
add
in class AbstractMenuManager
oracle.ide.MenuManager
child
- the child to be inserted.public void insert(java.awt.Component child, int index)
MenuManager
insert
in class AbstractMenuManager
oracle.ide.MenuManager
child
- the child to be inserted.index
- the insertion location.public void insert(java.awt.Component child, java.awt.Component after)
MenuManager
insert
in class AbstractMenuManager
oracle.ide.MenuManager
child
- the child to be inserted.after
- the sibling after which the child should be inserted.public void add(java.awt.Component child, boolean fixed)
public void insert(java.awt.Component child, int index, boolean fixed)
public void insert(java.awt.Component child, java.awt.Component after, boolean fixed)
public void addContextMenuListener(ContextMenuListener l)
l
- the context menu listener.public void addContextMenuListener(ContextMenuListener l, java.lang.Class cls)
ContextMenuListener
that is called when the type
of the data represented by the current Context
is
assignable to a variable whose type is of the specified
Class
.l
- the ContextMenuListener
to add.cls
- if non-null, the ContextMenuListener
will only
be notified if the current Context
's data object type
is assignable to a variable whose type is of the specified
Class
.public void removeContextMenuListener(ContextMenuListener l)
l
- the context menu listener.public java.awt.Container getGUI(boolean create)
public int getMenuCount()
public void removeAll()
public final void show(Context context)
context
- the current context.public final Context getContext()
public static final Context getContext(javax.swing.JMenuItem menuItem)
public void addSeparator()
public boolean fireDefaultAction(Context context)
public MnemonicSolver getMnemonicSolver()
null
if none available.
|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |