|
|||||||||
| 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 AbstractBuilderNode

java.lang.Objectcom.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode
- All Implemented Interfaces:
- java.util.EventListener, com.virtuosotechnologies.lib.propertyset.PropertySetListener
- Direct Known Subclasses:
- AbstractBranchBuilderNode, AbstractElementBuilderNode
- public abstract class AbstractBuilderNode
- extends java.lang.Object
- implements com.virtuosotechnologies.lib.propertyset.PropertySetListener
- extends java.lang.Object
A skeletal implementation for builder nodes. Note that this builder registers itself as a PropertySetListener on the CommandNode, so subclasses do not need to do so again.
| Field Summary | |
private com.virtuosotechnologies.lib.command.CommandNode |
commandNode_
|
private boolean |
disabled_
|
protected static int |
END_POSITION
|
private int |
grayLevel_
|
private boolean |
hidden_
|
private int |
maskLevel_
|
private AbstractBranchBuilderNode |
parent_
|
| Fields inherited from interface com.virtuosotechnologies.lib.propertyset.PropertySetListener |
PROPERTYSET_CHANGED_METHOD |
| Constructor Summary | |
protected |
AbstractBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode,
AbstractBranchBuilderNode parent,
int index)
Constructor |
| Method Summary | |
protected void |
decGrayLevel()
Decrement the gray level |
protected void |
decMaskLevel()
Decrement the mask level |
protected abstract void |
disabledStateChanged(boolean nowDisabled)
The gray state has changed. |
static void |
dump(AbstractBuilderNode node)
Dump subgraph to standard error |
private static void |
dump(AbstractBuilderNode node,
java.lang.String indent)
Dump subgraph to standard error |
protected abstract int |
getCardinality()
Get the cardinality (number of swing objects this node represents). |
protected com.virtuosotechnologies.lib.command.CommandNode |
getCommandNode()
Return the action node |
protected AbstractBranchBuilderNode |
getParent()
Return the parent |
protected abstract void |
hiddenStateChanged(boolean nowHidden)
The hidden state has changed. |
protected void |
incGrayLevel()
Increment the gray level |
protected void |
incMaskLevel()
Increment the mask level |
protected boolean |
isDisabled()
Get the grayed state |
protected boolean |
isHidden()
Get the hidden state |
void |
propertySetChanged(com.virtuosotechnologies.lib.propertyset.PropertySetEvent ev)
Model changed. |
private void |
updateDisabled()
|
private void |
updateHidden()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
END_POSITION
protected static final int END_POSITION
- See Also:
- Constant Field Values
commandNode_
private com.virtuosotechnologies.lib.command.CommandNode commandNode_
parent_
private AbstractBranchBuilderNode parent_
hidden_
private boolean hidden_
disabled_
private boolean disabled_
maskLevel_
private int maskLevel_
grayLevel_
private int grayLevel_
| Constructor Detail |
AbstractBuilderNode
protected AbstractBuilderNode(com.virtuosotechnologies.lib.command.CommandNode commandNode, AbstractBranchBuilderNode parent, int index)
- Constructor
| Method Detail |
getParent
protected final AbstractBranchBuilderNode getParent()
- Return the parent
getCommandNode
protected final com.virtuosotechnologies.lib.command.CommandNode getCommandNode()
- Return the action node
isHidden
protected final boolean isHidden()
- Get the hidden state
isDisabled
protected final boolean isDisabled()
- Get the grayed state
incMaskLevel
protected final void incMaskLevel()
- Increment the mask level
decMaskLevel
protected final void decMaskLevel()
- Decrement the mask level
incGrayLevel
protected final void incGrayLevel()
- Increment the gray level
decGrayLevel
protected final void decGrayLevel()
- Decrement the gray level
propertySetChanged
public void propertySetChanged(com.virtuosotechnologies.lib.propertyset.PropertySetEvent ev)
- Model changed. If this is overridden, be sure to call the superclass.
- Specified by:
propertySetChangedin interfacecom.virtuosotechnologies.lib.propertyset.PropertySetListener
updateHidden
private final void updateHidden()
updateDisabled
private final void updateDisabled()
hiddenStateChanged
protected abstract void hiddenStateChanged(boolean nowHidden)
- The hidden state has changed.
disabledStateChanged
protected abstract void disabledStateChanged(boolean nowDisabled)
- The gray state has changed.
getCardinality
protected abstract int getCardinality()
- Get the cardinality (number of swing objects this node represents).
Most things have a cardinality of 1. Groups have variable cardinality.
dump
public static void dump(AbstractBuilderNode node)
- Dump subgraph to standard error
dump
private static void dump(AbstractBuilderNode node, java.lang.String indent)
- Dump subgraph to standard error
|
|||||||||
| 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
com.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode