|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject uk.ac.kcl.cch.jb.pliny.containmentView.model.ContainmentItem
this model class for the ContainmentView corresponds to the boxes
in the graph that, in turn, correspond to the
Resource
s that are
connected to the main resource the display is centered around.
All containmentItems are owned by a ContainmentSet
which manages the set of items that are displayed
by the Containment View that spread out from the central starting Resource.
A ContainmentItem also manages its Links to other ContainmentItems that present the containment information.
ContainmentView
Constructor Summary | |
ContainmentItem(Resource myResource,
ContainmentSet containmentSet,
IncludedTypeManager typeManager)
constructs an instance of a ContainmentItem for myResource , which is an item which needs to appear
within the current containmentSet . |
Method Summary | |
void |
buildChildList()
invoked to generate the current list of child items for this current item. |
void |
buildLinks()
convenience method to build both child and parent items |
void |
buildParentList()
invoked to generate the current list of parent items for this current item. |
void |
dispose()
|
Set |
getFromSet()
returns a list of ContainmentLink
items that link from some other ContainmentItem to this one. |
Resource |
getResource()
|
boolean |
getShowingAllChildren()
reports where this Item is currently also displaying its Child items and links to them. |
boolean |
getShowingAllParents()
reports where this Item is currently also displaying its Parent items and links to them. |
Set |
getToSet()
returns a list of ContainmentLink
items that link from this item to some other ContainmentItems. |
String |
printSets()
|
void |
propertyChange(PropertyChangeEvent arg0)
this object monitors changes in its Resource, and when one happens of interest to it deals with it. |
String |
toString()
|
Methods inherited from class uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject |
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ContainmentItem(Resource myResource, ContainmentSet containmentSet, IncludedTypeManager typeManager)
myResource
, which is an item which needs to appear
within the current containmentSet
.
myResource
- Resource which corresponds to this Item.containmentSet
- holder for this item.typeManager
- the current IncludedTypeManagerMethod Detail |
public void dispose()
public boolean getShowingAllParents()
true
if showing parent items.public boolean getShowingAllChildren()
true
if showing child items.public void buildChildList()
public void buildParentList()
public void buildLinks()
public Resource getResource()
public Set getFromSet()
ContainmentLink
items that link from some other ContainmentItem to this one.
public Set getToSet()
ContainmentLink
items that link from this item to some other ContainmentItems.
public String printSets()
public void propertyChange(PropertyChangeEvent arg0)
propertyChange
in interface PropertyChangeListener
arg0
- for the Resource it is linked to.public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |