com.virtuosotechnologies.lib.basiccommand.builder
Class AbstractGroupBuilderNode

java.lang.Object
  extended bycom.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode
      extended bycom.virtuosotechnologies.lib.basiccommand.builder.AbstractBranchBuilderNode
          extended bycom.virtuosotechnologies.lib.basiccommand.builder.AbstractGroupBuilderNode
All Implemented Interfaces:
CommandNodeListener, EventListener, PropertySetListener
Direct Known Subclasses:
ComboBoxMemberGroupBuilderNode, MenuBarGroupBuilderNode, MenuGroupBuilderNode, MenuRadioGroupBuilderNode, ToolBarGroupBuilderNode, ToolBarRadioGroupBuilderNode

public abstract class AbstractGroupBuilderNode
extends AbstractBranchBuilderNode

A builder that creates a group of related elements based on its children, but creates no element of its own. Subclass this class and override createChildNode to create the proper types of children.


Field Summary
 
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.container.PropertySetListener
PROPERTYSET_CHANGED_METHOD
 
Constructor Summary
protected AbstractGroupBuilderNode(CommandNode commandNode, AbstractBranchBuilderNode parent, int index)
          Constructor
 
Method Summary
protected  void addElementAt(int pos, Object element)
          Add indexed element
 void childAdded(ChildAddedEvent ev)
          Child added.
protected  void disabledStateChanged(boolean nowDisabled)
          The disabled state has changed.
protected  int getCardinality()
          Get the cardinality (number of swing objects this node represents).
protected  void hiddenStateChanged(boolean nowHidden)
          The hidden state has changed.
protected  void removeAllElements()
          Remove all elements
protected  void removeElementAt(int pos)
          Remove indexed element
protected  void setElementAt(int pos, Object element)
          Set indexed element
 
Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBranchBuilderNode
allChildrenRemoved, buildChildren, childRemoved, createChildNode, getChild, getChild, getChildren, getNumChildren, getPosition, getPosition, removeChildElements
 
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
 

Constructor Detail

AbstractGroupBuilderNode

protected AbstractGroupBuilderNode(CommandNode commandNode,
                                   AbstractBranchBuilderNode parent,
                                   int index)
Constructor

Method Detail

getCardinality

protected int getCardinality()
Get the cardinality (number of swing objects this node represents). Most things have a cardinality of 1. Groups have variable cardinality.

Specified by:
getCardinality in class AbstractBuilderNode

addElementAt

protected void addElementAt(int pos,
                            Object element)
Add indexed element

Specified by:
addElementAt in class AbstractBranchBuilderNode

setElementAt

protected void setElementAt(int pos,
                            Object element)
Set indexed element

Overrides:
setElementAt in class AbstractBranchBuilderNode

removeElementAt

protected void removeElementAt(int pos)
Remove indexed element

Specified by:
removeElementAt in class AbstractBranchBuilderNode

removeAllElements

protected void removeAllElements()
Remove all elements

Specified by:
removeAllElements in class AbstractBranchBuilderNode

hiddenStateChanged

protected void hiddenStateChanged(boolean nowHidden)
The hidden state has changed.

Specified by:
hiddenStateChanged in class AbstractBuilderNode

disabledStateChanged

protected void disabledStateChanged(boolean nowDisabled)
The disabled state has changed.

Specified by:
disabledStateChanged in class AbstractBuilderNode

childAdded

public void childAdded(ChildAddedEvent ev)
Child added. Overrides the default in AbstractBranchBuilderNode. Does the same thing (creates the child builder node) but also updates its mask and gray levels as appropriate

Specified by:
childAdded in interface CommandNodeListener
Overrides:
childAdded in class AbstractBranchBuilderNode