|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.AbstractDisposable | +--gumbo.visualize.data.DataModel | +--gumbo.visualize.data.PartModel
An abstract data model representing a portion of client data comprising a whole model, and which has a distinct presence in the whole view. This is an important distinction for view layout and display, where an accurate presentation of each part in the display must be available for layout.
A part model is a non-root node in a "part model tree", with the root of the tree being a whole model (i.e. part models form the descendant subtree of a whole model's part model tree). Subclasses of whole and part models can impose restrictions on how the part model tree is structured.
Method Summary | |
protected void |
addPartModel(PartModel child)
Used by subclasses to add a part model as a child in this model's part model tree. |
protected void |
checkAddPartModel(PartModel child)
Safely returns if a part model can be added as a child in this model's part model tree. |
protected void |
checkParentPartModel(DataModel parent)
Safely returns if a part model can be the parent of this part model. |
protected void |
checkRootPartModel(WholeModel root)
Safely returns if a whole model can be the root of this part model. |
WholeModel |
findPartModelRoot()
Finds the root whole model in this model's part model tree. |
java.util.List |
findPartModelSubs(java.util.Collection types,
java.util.List retVal)
Finds descendants in this model's part model tree. |
java.util.List |
findPartModelSupers(java.util.Collection types,
java.util.List retVal)
Finds ancestors in this model's part model tree, excluding the root, which is a whole model. |
Group |
getPartModelChildren()
Gets an immutable view of the children of this model in its part model tree. |
PartModel |
getPartModelParent()
Gets the parent part model of this model in its part model tree. |
protected void |
implDispose()
Disposes part model children (recursively), and then disposes this model. |
protected void |
removePartModel(PartModel child)
Used by subclasses to remove a part model as a child in this model's part model tree, and to dispose it. |
Methods inherited from class gumbo.visualize.data.DataModel |
getClientData, getClientId, initDataModel, setClientData |
Methods inherited from class gumbo.util.AbstractDisposable |
dispose, isDisposed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public PartModel getPartModelParent()
public Group getPartModelChildren()
public WholeModel findPartModelRoot()
public java.util.List findPartModelSupers(java.util.Collection types, java.util.List retVal)
types
- Part model types (Class) to include. If null, all types
are included (a normal trace).retVal
- Return value object. The models (PartModel), possibly
including this model. Reflects the relative height of the models
in the lineage. Use a SetList for speed. Never null.
public java.util.List findPartModelSubs(java.util.Collection types, java.util.List retVal)
types
- Part model types (Class) to include. If null, all types
are included (a normal trace).retVal
- Return value object. The models (PartModel), possibly
including this model. Reflects the relative depth of the models
in the subtree. Use a SetList for speed. Never null.
protected void checkRootPartModel(WholeModel root)
java.lang.IllegalStateException
- This object has been disposed.protected void checkParentPartModel(DataModel parent)
java.lang.IllegalStateException
- This object has been disposed.protected void checkAddPartModel(PartModel child)
child
- The potential child model. Never null.
java.lang.IllegalStateException
- This object has been disposed.protected final void addPartModel(PartModel child)
child
- The model to be added. Never null.protected final void removePartModel(PartModel child)
child
- The model to be removed. Ignored if null or not a child.protected void implDispose()
implDispose
in class DataModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |