|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> lib >> basiccommand >> [ builder overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.virtuosotechnologies.lib.basiccommand.builder
Class MenuBuilderNode

java.lang.Objectcom.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode
com.virtuosotechnologies.lib.basiccommand.builder.AbstractBranchBuilderNode
com.virtuosotechnologies.lib.basiccommand.builder.AbstractContainerElementBuilderNode
com.virtuosotechnologies.lib.basiccommand.builder.AbstractAWTContainerBuilderNode
com.virtuosotechnologies.lib.basiccommand.builder.MenuBuilderNode
- All Implemented Interfaces:
- com.virtuosotechnologies.lib.command.CommandNodeListener, java.util.EventListener, com.virtuosotechnologies.lib.propertyset.PropertySetListener
- Direct Known Subclasses:
- MenuRadioMenuBuilderNode
- public class MenuBuilderNode
- extends AbstractAWTContainerBuilderNode
A builder that creates a menu or submenu
| Field Summary | |
private boolean |
isHiddenBecauseEmpty_
|
private SwingButtonUpdater |
updater_
|
| Fields inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractContainerElementBuilderNode |
|
| Fields inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBranchBuilderNode |
|
| Fields inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode |
END_POSITION |
| Fields inherited from interface com.virtuosotechnologies.lib.command.CommandNodeListener |
ALL_CHILDREN_REMOVED_METHOD, CHILD_ADDED_METHOD, CHILD_REMOVED_METHOD |
| Fields inherited from interface com.virtuosotechnologies.lib.propertyset.PropertySetListener |
PROPERTYSET_CHANGED_METHOD |
| Constructor Summary | |
|
MenuBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode)
Public constructor used to make standalone JMenus |
protected |
MenuBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode,
AbstractBranchBuilderNode parent,
int index)
Internal constructor used to make menubar menus and submenus |
|
MenuBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode,
javax.swing.JMenu menu)
Public constructor used to make standalone JMenus |
| Method Summary | |
protected void |
addElementAt(int pos,
java.lang.Object element)
Add indexed element. |
private void |
checkEmptiness()
|
protected AbstractBuilderNode |
createChildNode(com.virtuosotechnologies.lib.command.CommandNode cn,
int index)
Create a child node |
protected java.lang.Object |
createInitialElement()
Override this method to create the initial element object. |
javax.swing.JMenu |
getJMenu()
Get the built menu |
protected void |
removeAllElements()
Remove all elements. |
protected void |
removeElementAt(int pos)
Remove indexed element. |
| Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractContainerElementBuilderNode |
disabledStateChanged, getCardinality, getElement, hiddenStateChanged |
| Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBranchBuilderNode |
allChildrenRemoved, buildChildren, childAdded, childRemoved, getChild, getChild, getChildren, getNumChildren, getPosition, getPosition, internalAddChild, internalAddChild, removeChildElements, setElementAt |
| Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode |
decGrayLevel, decMaskLevel, dump, getCommandNode, getParent, incGrayLevel, incMaskLevel, isDisabled, isHidden, propertySetChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
isHiddenBecauseEmpty_
private boolean isHiddenBecauseEmpty_
updater_
private SwingButtonUpdater updater_
| Constructor Detail |
MenuBuilderNode
public MenuBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode)
- Public constructor used to make standalone JMenus
MenuBuilderNode
public MenuBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode, javax.swing.JMenu menu)
- Public constructor used to make standalone JMenus
MenuBuilderNode
protected MenuBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode, AbstractBranchBuilderNode parent, int index)
- Internal constructor used to make menubar menus and submenus
| Method Detail |
checkEmptiness
private void checkEmptiness()
addElementAt
protected void addElementAt(int pos,
java.lang.Object element)
- Add indexed element.
Overridden so that we hide ourself when the menu is empty.
- Overrides:
addElementAtin classAbstractAWTContainerBuilderNode
removeElementAt
protected void removeElementAt(int pos)
- Remove indexed element.
Overridden so that we hide ourself when the menu is empty.
- Overrides:
removeElementAtin classAbstractAWTContainerBuilderNode
removeAllElements
protected void removeAllElements()
- Remove all elements.
Overridden so that we hide ourself when the menu is empty.
- Overrides:
removeAllElementsin classAbstractAWTContainerBuilderNode
createInitialElement
protected java.lang.Object createInitialElement()
- Override this method to create the initial element object.
- Specified by:
createInitialElementin classAbstractContainerElementBuilderNode
createChildNode
protected AbstractBuilderNode createChildNode(com.virtuosotechnologies.lib.command.CommandNode cn, int index)
- Create a child node
- Specified by:
createChildNodein classAbstractBranchBuilderNode
getJMenu
public javax.swing.JMenu getJMenu()
- Get the built menu
|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> lib >> basiccommand >> [ builder overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC