it.amattioli.applicate.commands.tree
Class DefaultTreeManager<T>

Show UML class diagram
java.lang.Object
  extended by it.amattioli.applicate.commands.tree.AbstractTreeManager<T>
      extended by it.amattioli.applicate.commands.tree.DefaultTreeManager<T>
All Implemented Interfaces:
TreeManager<T>, it.amattioli.dominate.util.PropertyChangeEmitter

public class DefaultTreeManager<T>
extends AbstractTreeManager<T>


Field Summary
 
Fields inherited from class it.amattioli.applicate.commands.tree.AbstractTreeManager
root
 
Constructor Summary
DefaultTreeManager(T root)
           
DefaultTreeManager(T root, String childrenPropertyName, String parentPropertyName)
           
 
Method Summary
 BeanEditor<T> addChild(T parent)
           
 void addChild(T parent, T child)
           
 T createNode()
           
 BeanEditor<T> createNodeEditor(T node)
           
 List<T> getChildrenOf(T target)
           
 T getParentOf(T target)
           
 T remove(T toBeRemoved)
           
 void setRoot(T root)
           
 
Methods inherited from class it.amattioli.applicate.commands.tree.AbstractTreeManager
addPropertyChangeListener, firePropertyChange, getPathOf, getRoot, getTargetOf, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTreeManager

public DefaultTreeManager(T root,
                          String childrenPropertyName,
                          String parentPropertyName)

DefaultTreeManager

public DefaultTreeManager(T root)
Method Detail

setRoot

public void setRoot(T root)
Specified by:
setRoot in interface TreeManager<T>
Overrides:
setRoot in class AbstractTreeManager<T>

getChildrenOf

public List<T> getChildrenOf(T target)

getParentOf

public T getParentOf(T target)

addChild

public void addChild(T parent,
                     T child)

addChild

public BeanEditor<T> addChild(T parent)

createNode

public T createNode()

remove

public T remove(T toBeRemoved)

createNodeEditor

public BeanEditor<T> createNodeEditor(T node)


Copyright © 2011. All Rights Reserved.