|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ide.AbstractMenuManager
Field Summary | |
protected java.awt.event.ContainerListener |
containerListener
|
protected javax.swing.event.MenuListener |
menuListener
|
Fields inherited from interface oracle.ide.MenuManager |
LAST_POSITION |
Constructor Summary | |
protected |
AbstractMenuManager()
|
Method Summary | |
void |
add(java.awt.Component child)
Appends a component into the MenuManager's GUI. |
void |
add(java.awt.Component child,
javax.swing.JMenu parent)
Appends a component into the given parent. |
javax.swing.JMenu |
createMenu(java.lang.String caption,
java.lang.Integer mnemonic)
Creates a new menu suitable for insertion into JDeveloper's top level menu bar |
javax.swing.JMenuItem |
createMenuItem(IdeAction action)
|
javax.swing.JMenuItem |
createMenuItem(ToggleAction action)
Creates a new menu item suitable for insertion into a JDeveloper menu. |
javax.swing.JMenu |
createSubMenu(java.lang.String caption,
java.lang.Integer mnemonic)
Creates a new menu suitable for insertion into JDeveloper's menu bar or into another menu. |
java.awt.Component |
getChildById(java.awt.Container parent,
int commandId)
Returns the child with the specified command id. |
int |
getIndexOfChild(java.awt.Container parent,
java.awt.Component child)
Returns the index of the specified component. |
int |
getIndexOfCommandId(java.awt.Container parent,
int commandId)
Returns the index of the specified command. |
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,
int index)
Inserts a component into the MenuManager's GUI at the given index. |
void |
insert(java.awt.Component child,
javax.swing.JMenu parent,
java.awt.Component after)
Inserts a component into the given parent after the given sibling. |
void |
insert(java.awt.Component child,
javax.swing.JMenu parent,
java.awt.Component sibling,
boolean before,
boolean ensureSeparator)
Inserts a component into the given parent relative to a specified sibling. |
void |
insert(java.awt.Component child,
javax.swing.JMenu parent,
int index)
Inserts a component into the given parent at the given index. |
void |
remove(java.awt.Component child)
Removes a child from the MenuManager's GUI. |
void |
remove(java.awt.Component child,
javax.swing.JMenu parent)
Removes a child from the given parent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.ide.MenuManager |
getGUI |
Field Detail |
protected javax.swing.event.MenuListener menuListener
protected java.awt.event.ContainerListener containerListener
Constructor Detail |
protected AbstractMenuManager()
Method Detail |
public javax.swing.JMenu createMenu(java.lang.String caption, java.lang.Integer mnemonic)
MenuManager
createMenu
in interface MenuManager
oracle.ide.MenuManager
caption
- the localized string to be displayed in the menu bar or
supermenu.mnemonic
- the mnemonic to associate with the resulting JMenu.#insertMenu
,
JMenu
public javax.swing.JMenu createSubMenu(java.lang.String caption, java.lang.Integer mnemonic)
MenuManager
createSubMenu
in interface MenuManager
oracle.ide.MenuManager
caption
- the localized string to be displayed in the menu bar or
supermenu.mnemonic
- the mnemonic to associate with the resulting JMenu.#insertMenu
,
JMenu
public javax.swing.JMenuItem createMenuItem(IdeAction action)
createMenuItem
in interface MenuManager
public javax.swing.JMenuItem createMenuItem(ToggleAction action)
MenuManager
createMenuItem
in interface MenuManager
oracle.ide.MenuManager
action
- the Action
to associate with the menu item.#insertMenuItem
,
JMenuItem
public void add(java.awt.Component child)
MenuManager
add
in interface MenuManager
oracle.ide.MenuManager
child
- the child to be inserted.public void insert(java.awt.Component child, int index)
MenuManager
insert
in interface MenuManager
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 interface MenuManager
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, javax.swing.JMenu parent)
MenuManager
add
in interface MenuManager
oracle.ide.MenuManager
child
- the child to be inserted.parent
- the parent in which to insert the child.public void insert(java.awt.Component child, javax.swing.JMenu parent, int index)
MenuManager
insert
in interface MenuManager
oracle.ide.MenuManager
child
- the child to be inserted.parent
- the parent in which to insert the child.atIndex
- the insertion location.public void insert(java.awt.Component child, javax.swing.JMenu parent, java.awt.Component after)
MenuManager
insert
in interface MenuManager
oracle.ide.MenuManager
child
- the child to be inserted.parent
- the menu in which to insert the child.after
- the sibling after which the child should be inserted.public void insert(java.awt.Component child, javax.swing.JMenu parent, java.awt.Component sibling, boolean before, boolean ensureSeparator)
MenuManager
insert
in interface MenuManager
oracle.ide.MenuManager
child
- the new child to insertparent
- the parent menu into which the child is to be inserted.sibling
- an existing child relative to which the new child should
be inserted.before
- whether the new child should be inserted before or after
the sibling; or, if sibling is null or not a child of parent, whether the
new child should be inserted at the beginning or end of the parent menu.ensureSeparator
- whether a separator should be placed between the
sibling and the new child.public void remove(java.awt.Component child)
MenuManager
remove
in interface MenuManager
oracle.ide.MenuManager
child
- the child to be removed.public void remove(java.awt.Component child, javax.swing.JMenu parent)
MenuManager
remove
in interface MenuManager
oracle.ide.MenuManager
child
- the child to remove.parent
- the parent from which to remove the child.public final int getIndexOfChild(java.awt.Container parent, java.awt.Component child)
getIndexOfChild
in interface MenuManager
parent
- the Container to search for the child parampublic final int getIndexOfCommandId(java.awt.Container parent, int commandId)
getIndexOfCommandId
in interface MenuManager
parent
- the Container in which to search for the child commandcommandId
- the commandId to findpublic java.awt.Component getChildById(java.awt.Container parent, int commandId)
MenuManager
getChildById
in interface MenuManager
oracle.ide.MenuManager
parent
- the Container in which to search for the child commandcommandId
- the command id to find
|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |