|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JMenuBar cytoscape.util.CytoscapeMenuBar
public class CytoscapeMenuBar
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JMenuBar |
---|
JMenuBar.AccessibleJMenuBar |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected Set |
actionMembersSet
|
protected Map |
actionMenuItemMap
|
static String |
DEFAULT_MENU_SPECIFIER
|
protected String |
defaultMenuSpecifier
|
protected Map |
menuEffectiveLastIndexMap
The Menu->Integer "effective last index" Map for Menus with menu items that want to be at the end. |
protected Map |
menuMap
|
protected static int |
NO_INDEX
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CytoscapeMenuBar()
Default constructor. |
Method Summary | |
---|---|
boolean |
addAction(Action action)
If the given Action has a present and false inMenuBar property, return; otherwise delegate to addAction( String, Action ) with the value of its preferredMenu property, or null if it does not have that property. |
boolean |
addAction(Action action,
int index)
DOCUMENT ME! |
boolean |
addAction(String menu_name,
Action action)
DOCUMENT ME! |
JMenu |
createJMenu(String title)
Factory method for instantiating objects of type JMenu |
protected JMenuItem |
createJMenuItem(Action action)
Factory method for instantiating the menuItems in the menu. |
boolean |
equals(Object other_object)
CytoscapeMenuBars are unique -- this equals() method returns true iff the other object == this. |
String |
getDefaultMenuSpecifier()
DOCUMENT ME! |
String |
getIdentifier()
implements CommunityMember |
JMenu |
getMenu(String menu_string)
DOCUMENT ME! |
JMenu |
getMenu(String menu_string,
int parentPosition)
|
boolean |
isReidentificationEnabled()
imlements Reidentifiable |
boolean |
removeAction(Action action)
If the given Action has a present and false inMenuBar property, return; otherwise if there's a menu item for the action, remove it. |
void |
setDefaultMenuSpecifier(String menu_name)
DOCUMENT ME! |
void |
setIdentifier(String new_identifier)
imlements Reidentifiable |
String |
toString()
Delegates to getIdentifier() . |
Methods inherited from class javax.swing.JMenuBar |
---|
add, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_MENU_SPECIFIER
protected static final int NO_INDEX
protected String defaultMenuSpecifier
protected Set actionMembersSet
protected Map actionMenuItemMap
protected Map menuMap
protected Map menuEffectiveLastIndexMap
Constructor Detail |
---|
public CytoscapeMenuBar()
Method Detail |
---|
public void setDefaultMenuSpecifier(String menu_name)
menu_name
- DOCUMENT ME!public String getDefaultMenuSpecifier()
public boolean addAction(Action action)
public boolean addAction(Action action, int index)
action
- DOCUMENT ME!index
- DOCUMENT ME!
public boolean addAction(String menu_name, Action action)
menu_name
- DOCUMENT ME!action
- DOCUMENT ME!
public boolean removeAction(Action action)
public JMenu getMenu(String menu_string)
menu_string
- DOCUMENT ME!
public JMenu getMenu(String menu_string, int parentPosition)
public boolean equals(Object other_object)
equals
in class Object
public String getIdentifier()
public void setIdentifier(String new_identifier)
public boolean isReidentificationEnabled()
public String toString()
getIdentifier()
.
toString
in class Component
public JMenu createJMenu(String title)
protected JMenuItem createJMenuItem(Action action)
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |