|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultTreeModel ix.iface.ui.tree.EditableTreeModel ix.iview.tree.DomainTreeModel
public abstract class DomainTreeModel
Field Summary | |
---|---|
(package private) UIDomain |
uiDomain
|
Fields inherited from class javax.swing.tree.DefaultTreeModel |
---|
asksAllowsChildren, listenerList, root |
Constructor Summary | |
---|---|
DomainTreeModel(UIDomain domain,
IXTreeNode root)
Constructs a new instance with the given node as the root node of the tree. |
|
DomainTreeModel(UIDomain domain,
IXTreeNode root,
java.util.HashSet domainObjects,
java.util.HashMap nodeMap)
Constructs a new instance with a default root node of the tree. |
Method Summary | |
---|---|
abstract void |
addUserChild(java.lang.Object userParent,
java.lang.Object newChild)
|
void |
constructAdded(DomainEvent event)
|
void |
constructAdded(UIDomainEvent event)
Called when a UI construct is added. |
void |
constructEdited(UIDomainEvent event)
Called when a UI construct is edited. |
void |
constructRemoved(UIDomainEvent event)
Called when a UI construct is removed. |
void |
domainCleared(UIDomainEvent event)
Called when the domain is cleared. |
void |
domainEdited(UIDomainEvent event)
Called when the domain's own fields changed (currently only name). |
void |
domainSet(UIDomainEvent event)
Called when the domain is added. |
abstract java.util.List |
findUserObjects()
|
UIDomain |
getUIDomain()
|
abstract java.util.List |
getUserChildren(java.lang.Object userParent)
|
abstract java.lang.Object |
makeUserObject(java.lang.String name)
|
abstract java.lang.Object |
makeUserObject(java.lang.String name,
java.util.List children)
|
abstract IXTreeNode |
newIXTreeNode(java.lang.Object userNode)
Creates a new instance of a suitable IXTreeNode from the user object |
IXTreeNode |
newTreeChild(IXTreeNode parent)
|
abstract void |
removeUserChild(java.lang.Object userParent,
java.lang.Object newChild)
|
Methods inherited from class javax.swing.tree.DefaultTreeModel |
---|
addTreeModelListener, asksAllowsChildren, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
UIDomain uiDomain
Constructor Detail |
---|
public DomainTreeModel(UIDomain domain, IXTreeNode root)
domain
- The UIDomain for this model.root
- The root node of the tree model.public DomainTreeModel(UIDomain domain, IXTreeNode root, java.util.HashSet domainObjects, java.util.HashMap nodeMap)
domain
- The UIDomain for this model.root
- The root node of the tree model.domainObjects
- The objects that are to appear in the treemap
- the tree node map.Method Detail |
---|
public IXTreeNode newTreeChild(IXTreeNode parent)
newTreeChild
in class EditableTreeModel
public UIDomain getUIDomain()
public void constructAdded(DomainEvent event)
constructAdded
in interface UIDomainListener
public void constructAdded(UIDomainEvent event)
UIDomainListener
constructAdded
in interface UIDomainListener
public void constructEdited(UIDomainEvent event)
UIDomainListener
constructEdited
in interface UIDomainListener
public void constructRemoved(UIDomainEvent event)
UIDomainListener
constructRemoved
in interface UIDomainListener
public void domainCleared(UIDomainEvent event)
UIDomainListener
domainCleared
in interface UIDomainListener
public void domainEdited(UIDomainEvent event)
UIDomainListener
domainEdited
in interface UIDomainListener
public void domainSet(UIDomainEvent event)
UIDomainListener
domainSet
in interface UIDomainListener
public abstract IXTreeNode newIXTreeNode(java.lang.Object userNode)
newIXTreeNode
in class EditableTreeModel
public abstract java.util.List findUserObjects()
findUserObjects
in class EditableTreeModel
public abstract java.lang.Object makeUserObject(java.lang.String name)
makeUserObject
in class EditableTreeModel
public abstract java.lang.Object makeUserObject(java.lang.String name, java.util.List children)
makeUserObject
in class EditableTreeModel
public abstract java.util.List getUserChildren(java.lang.Object userParent)
getUserChildren
in class EditableTreeModel
public abstract void addUserChild(java.lang.Object userParent, java.lang.Object newChild)
addUserChild
in class EditableTreeModel
public abstract void removeUserChild(java.lang.Object userParent, java.lang.Object newChild)
removeUserChild
in class EditableTreeModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |