|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultMutableTreeNode | +--org.objectweb.jac.aspects.gui.AbstractNode | +--org.objectweb.jac.aspects.gui.RelationNode
This tree node represents a relation.
Field Summary |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
RelationNode(TreeView model,
Object substance,
FieldItem relation)
Constructs the node. |
Method Summary | |
void |
onAdd(Object substance,
CollectionItem collection,
Object value,
Object added,
Object param)
Upcalled when an item is added in a collection. |
void |
onChange(Object substance,
CollectionItem collection,
Object value,
Object param)
Upcalled when the collection is changed (with a set or other methods such as clear, removeAll, addAll, ...). |
void |
onRemove(Object substance,
CollectionItem collection,
Object value,
Object removed,
Object param)
Upcalled when an item is removed from a collection. |
protected void |
rebuildData()
Rebuild the node's data. |
String |
toString()
|
void |
unregisterEvents()
Unregister all the events this node is listening to. |
Methods inherited from class org.objectweb.jac.aspects.gui.AbstractNode |
areChildrenUptodate, getIcon, getText, getToolTip, isLeaf, setChildrenUptodate, setLeaf, setModel, setParent |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RelationNode(TreeView model, Object substance, FieldItem relation)
model
- the tree modelsubstance
- the object that holds the relationrelation
- the substance relationMethod Detail |
protected void rebuildData()
public void unregisterEvents()
unregisterEvents
in class AbstractNode
public void onChange(Object substance, CollectionItem collection, Object value, Object param)
CollectionUpdate
onChange
in interface CollectionUpdate
substance
- the object of which a field was updatedcollection
- the updated collectionvalue
- the new collectionparam
- extra dataViewControlWrapper.registerCollection(Wrappee,CollectionItem,CollectionUpdate,Object)
public void onAdd(Object substance, CollectionItem collection, Object value, Object added, Object param)
CollectionUpdate
onAdd
in interface CollectionUpdate
substance
- the object of which a collection was updatedcollection
- the updated collectionvalue
- the collection's valueadded
- the value added to the collectionparam
- extra data (e.g. index)ViewControlWrapper.registerCollection(Wrappee,CollectionItem,CollectionUpdate,Object)
public void onRemove(Object substance, CollectionItem collection, Object value, Object removed, Object param)
CollectionUpdate
onRemove
in interface CollectionUpdate
substance
- the object of which a collection was updatedcollection
- the updated collectionvalue
- the collection's valueremoved
- the removed itemparam
- extra data (e.g. index)ViewControlWrapper.registerCollection(Wrappee,CollectionItem,CollectionUpdate,Object)
public String toString()
toString
in class DefaultMutableTreeNode
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |