java.lang.Object
com.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode
com.virtuosotechnologies.lib.basiccommand.builder.AbstractBranchBuilderNode
com.virtuosotechnologies.lib.basiccommand.builder.AbstractContainerElementBuilderNode
- All Implemented Interfaces:
- com.virtuosotechnologies.lib.command.CommandNodeListener, java.util.EventListener, com.virtuosotechnologies.lib.propertyset.PropertySetListener
- Direct Known Subclasses:
- AbstractAWTContainerBuilderNode, ComboBoxBuilderNode
- public abstract class AbstractContainerElementBuilderNode
- extends AbstractBranchBuilderNode
A branch builder that creates an element that can contain other elements.
Subclasses need to implement getChildNode(), createInitialElement(), and
the add/set/removeElements methods.
A lot of this implementation is identical to AbstractElementBuilderNode,
but alas, Java lacks multiple implementation inheritance.
| Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBranchBuilderNode |
addElementAt, allChildrenRemoved, buildChildren, childAdded, childRemoved, createChildNode, getChild, getChild, getChildren, getNumChildren, getPosition, getPosition, internalAddChild, internalAddChild, removeAllElements, removeChildElements, removeElementAt, setElementAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
element_
private java.lang.Object element_
AbstractContainerElementBuilderNode
protected AbstractContainerElementBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode,
AbstractBranchBuilderNode parent,
int index)
- Constructor implementation
AbstractContainerElementBuilderNode
protected AbstractContainerElementBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode,
AbstractBranchBuilderNode parent,
int index,
java.lang.Object element)
- Constructor implementation
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
getElement
protected java.lang.Object getElement()
- Get the element
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
createInitialElement
protected abstract java.lang.Object createInitialElement()
- Override this method to create the initial element object.