|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModelNode
Represents a particular node on the model tree. Also implements the Composite Pattern since it contains multiple types all nested in a tree structure.
Field Summary | |
---|---|
static List |
NO_CHILDREN
Special Case for when there are no children for a particular node in the model. |
static Transition |
NO_LINK
Special Case for when there is no link to view or edit the node. |
static ModelNode |
NO_PARENT
Special Case for when there is no parent node for a particular model. |
Method Summary | |
---|---|
Serializable |
getAdditionalInfo()
This is a method to allow 'tagging' particular nodes with application specific information and processing the node differently based on that information. |
List |
getChildren()
Retrieve the items in the composite model. |
String |
getLabel()
Retrieve the label assigned to the node. |
Transition |
getLink()
Retrieve the link to get to the node for editing. |
ModelFillStatus |
getModelFillStatus()
Contains status about the node itself -- are all parts and subparts completely filled? |
NodeCompletionStatus |
getNodeCompletionStatus()
Returns a node completion status which represents whether the factory was able to build a non-recursive complete model for the given node in question or |
ModelNode |
getParent()
Retrieves the parent or returns NO_PARENT if we are already at the top of the node. |
ModelVisitable |
getVisitable()
Retrieve the viewable interface of what we are dealing with. |
void |
setAdditionalInfo(Serializable newInfo)
Sets the additional tag information to be associated with this node. |
Field Detail |
---|
static final List NO_CHILDREN
static final ModelNode NO_PARENT
static final Transition NO_LINK
Method Detail |
---|
List getChildren()
ModelNode getParent()
ModelVisitable getVisitable()
String getLabel()
Transition getLink()
ModelFillStatus getModelFillStatus()
NodeCompletionStatus getNodeCompletionStatus()
Serializable getAdditionalInfo()
void setAdditionalInfo(Serializable newInfo)
newInfo
- the new application-specific information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |