public class GMenuBar extends GComponent
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_ATTRIBUTE| Constructor and Description |
|---|
GMenuBar(GPanel panel)
Constructor.
|
GMenuBar(String widgetId,
GPanel panel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(GMenu menu)
Adds a menu to the menu bar.
|
void |
add(GMenu menu,
int idx)
Adds a menu to the menu, at the index selected.
|
void |
add(JMenu menu,
int idx)
Adds a menu to the menu, at the index selected.
|
void |
delete(GMenu menu)
Deletes a menu from the menu.
|
void |
delete(JMenu menu)
Deletes a menu from the menu.
|
void |
delete(String menu)
Deletes a menu from the menu.
|
Component |
getComponent()
Returns the low level Swing Component encapsulated by the class if any, otherwise returns
null.
|
GMenu |
getGMenu(String menu)
Getter for a menu
|
JMenuBar |
getJMenuBar()
Get the JMenuBar object associated with the widget.
|
String |
getMenuName()
Get the menus associated with the menubar.
|
void |
move(GMenu menu,
int idx)
Move a menu to the selected index.
|
void |
move(JMenu menu,
int idx)
Move a menu to the selected index.
|
void |
move(String menu,
int idx)
Move a menu to the selected index.
|
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic GMenuBar(GPanel panel)
panel - to which the menu bar is associated.public void add(GMenu menu)
menu - to be added to the menu bar.public void add(GMenu menu, int idx)
menu - the menu to be added to the menu.idx - the index at which the menu will be addedpublic void add(JMenu menu, int idx)
menu - the menu to be added to the menu.idx - the index at which the menu will be addedpublic void move(GMenu menu, int idx)
menu - the menu to be moved.idx - the index at which the menu will be movedpublic void move(JMenu menu, int idx)
menu - the menu to be moved.idx - the index at which the menu will be movedpublic void move(String menu, int idx)
menu - the menu to be moved.idx - the index at which the menu will be movedpublic void delete(GMenu menu)
menu - menu to be deletedpublic void delete(JMenu menu)
menu - menu to be deletedpublic void delete(String menu)
menu - menu to be deletedpublic GMenu getGMenu(String menu)
menu - the menu to be recuperatedpublic String getMenuName()
public JMenuBar getJMenuBar()
public Component getComponent()
getComponent in class GComponentCopyright © 2024. All rights reserved.