gumbo.visualize.data
Class ElementModel

java.lang.Object
  |
  +--gumbo.util.AbstractDisposable
        |
        +--gumbo.visualize.data.DataModel
              |
              +--gumbo.visualize.data.PartModel
                    |
                    +--gumbo.visualize.data.ElementModel
All Implemented Interfaces:
Disposable, java.io.Serializable

public class ElementModel
extends PartModel

A part model representing a data element in a whole model that has no data relationships (no internal topology).

In the part model tree, an element model is a leaf.

Version:
$Revision: 1.15 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
See Also:
Serialized Form

Field Summary
static Group TYPES
          A singleton immutable group containing the type (Class) of this class.
 
Constructor Summary
ElementModel(java.lang.Object clientId, java.lang.Object clientData)
          Creates a new instance.
 
Method Summary
protected  void checkParentPartModel(DataModel parent)
          Safely returns if a part model can be set as the parent in this model's part model tree.
protected  void implDispose()
          Disposes part model children (recursively), and then disposes this model.
 
Methods inherited from class gumbo.visualize.data.PartModel
addPartModel, checkAddPartModel, checkRootPartModel, findPartModelRoot, findPartModelSubs, findPartModelSupers, getPartModelChildren, getPartModelParent, removePartModel
 
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
 

Field Detail

TYPES

public static final Group TYPES
A singleton immutable group containing the type (Class) of this class. Supports both Set and List views.

Constructor Detail

ElementModel

public ElementModel(java.lang.Object clientId,
                    java.lang.Object clientData)
Creates a new instance.

Parameters:
clientId - See DataModel. Null if none, in which case the client ID defaults to this object.
clientData - See DataModel. Null if none.
Method Detail

checkParentPartModel

protected void checkParentPartModel(DataModel parent)
Safely returns if a part model can be set as the parent in this model's part model tree. To be valid, this model must not be disposed, this model must not be in a part model tree (have a part model root), and the parent must be a WholeModel. Override to add further qualifications.

Overrides:
checkParentPartModel in class PartModel
Throws:
java.lang.IllegalStateException - This object has been disposed.
java.lang.IllegalArgumentException - Parent must be a WholeModel.

implDispose

protected void implDispose()
Description copied from class: PartModel
Disposes part model children (recursively), and then disposes this model.

Overrides:
implDispose in class PartModel