|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode com.virtuosotechnologies.lib.basiccommand.builder.AbstractElementBuilderNode
A skeletal builder that creates a single leaf object with no children. This needs to be subclassed to implement createInitialElement(), and/or to pass an element into the constructor. Also note that this builder registers itself as a PropertySetListener on the CommandNode, so subclasses do not need to do so again.
A lot of this implementaiton is identical to AbstractContainerElementBuilderNode, but alas, Java lacks multiple implementation inheritance.
Field Summary |
Fields inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode |
END_POSITION |
Fields inherited from interface com.virtuosotechnologies.lib.container.PropertySetListener |
PROPERTYSET_CHANGED_METHOD |
Constructor Summary | |
protected |
AbstractElementBuilderNode(CommandNode commandNode,
AbstractBranchBuilderNode parent,
int index)
Constructor |
protected |
AbstractElementBuilderNode(CommandNode commandNode,
AbstractBranchBuilderNode parent,
int index,
Object element)
Constructor |
Method Summary | |
protected abstract Object |
createInitialElement()
Override this method to create the initial element object. |
protected void |
disabledStateChanged(boolean nowDisabled)
The disabled state has changed. |
protected int |
getCardinality()
Get the cardinality (number of swing objects this node represents). |
protected Object |
getElement()
Get the element |
protected void |
hiddenStateChanged(boolean nowHidden)
The hidden state has changed. |
protected void |
setElement(Object element)
Change the element |
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 |
protected AbstractElementBuilderNode(CommandNode commandNode, AbstractBranchBuilderNode parent, int index)
protected AbstractElementBuilderNode(CommandNode commandNode, AbstractBranchBuilderNode parent, int index, Object element)
Method Detail |
protected final int getCardinality()
getCardinality
in class AbstractBuilderNode
protected final void setElement(Object element)
protected final Object getElement()
protected void hiddenStateChanged(boolean nowHidden)
hiddenStateChanged
in class AbstractBuilderNode
protected void disabledStateChanged(boolean nowDisabled)
disabledStateChanged
in class AbstractBuilderNode
protected abstract Object createInitialElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |