| java.lang.Object com.projity.grouping.core.hierarchy.AbstractMutableNodeHierarchy com.projity.grouping.core.hierarchy.MutableNodeHierarchy
MutableNodeHierarchy | public class MutableNodeHierarchy extends AbstractMutableNodeHierarchy (Code) | | A map that holds the parent-children relationship. Also implements TreeModel so it can be used to generate
trees, such as in outline cells or popup trees.
|
Method Summary | |
public void | add(Node parent, List children, int position, int actionType) | public static void | addDescendants(Node node, List descendants) | public static void | addDescendants(List nodes, List descendants) | public void | addTreeModelListener(TreeModelListener l) Adds a listener for the TreeModelEvent posted after the tree changes. | public void | checkEndVoidNodes(int actionType) | public void | checkEndVoidNodes(boolean subproject, int actionType) | protected boolean | checkSubprojectEndVoidNodes(Node parent, List inserted) | public void | cleanVoidChildren() | public Object | clone() | public void | fireInsertion(Node[] nodes) | public void | fireRemoval(Node[] nodes) | public void | fireUpdate() | public void | fireUpdate(Node[] nodes) | public List | getChildren(Node parent) | public int | getLevel(Node node) | public int | getNbEndVoidNodes() | public Node | getParent(Node child) | public Object | getRoot() | public void | indent(List nodes, int deltaLevel, NodeModel model, int actionType) | public static boolean | isEvent(int actionType) | public boolean | isLeaf(Object node) | public boolean | isSummary(Node node) | public static boolean | isUndo(int actionType) | public void | move(Node node, Node newParent, int actionType) | public void | paste(Node parent, List children, int position, NodeModel model, int actionType) | public void | remove(List nodes, NodeModel model, int actionType, boolean removeDependencies) Remove nodes. | public void | removeAll(NodeModel model, int actionType) | public void | removeTreeModelListener(TreeModelListener l) Removes a listener previously added with addTreeModelListener(). | public Node | search(Object key, Comparator c) | public void | setNbEndVoidNodes(int nbEndVoidNodes) Parameters: nbEndVoidNodes - The nbEndVoidNodes to set. | public void | valueForPathChanged(TreePath path, Object newValue) |
DEFAULT_NB_END_VOID_NODES | public static int DEFAULT_NB_END_VOID_NODES(Code) | | |
DEFAULT_NB_MULTIPROJECT_END_VOID_NODES | public static int DEFAULT_NB_MULTIPROJECT_END_VOID_NODES(Code) | | |
nbEndVoidNodes | protected int nbEndVoidNodes(Code) | | |
nbMultiprojectEndVoidNodes | protected int nbMultiprojectEndVoidNodes(Code) | | |
MutableNodeHierarchy | public MutableNodeHierarchy()(Code) | | |
add | public void add(Node parent, List children, int position, int actionType)(Code) | | |
addDescendants | public static void addDescendants(Node node, List descendants)(Code) | | |
addDescendants | public static void addDescendants(List nodes, List descendants)(Code) | | |
checkEndVoidNodes | public void checkEndVoidNodes(int actionType)(Code) | | |
checkEndVoidNodes | public void checkEndVoidNodes(boolean subproject, int actionType)(Code) | | Check if void nodes have to be added to respect nbEndVoidNodes
Parameters: event - |
checkSubprojectEndVoidNodes | protected boolean checkSubprojectEndVoidNodes(Node parent, List inserted)(Code) | | |
cleanVoidChildren | public void cleanVoidChildren()(Code) | | |
fireInsertion | public void fireInsertion(Node[] nodes)(Code) | | |
fireRemoval | public void fireRemoval(Node[] nodes)(Code) | | |
fireUpdate | public void fireUpdate()(Code) | | |
fireUpdate | public void fireUpdate(Node[] nodes)(Code) | | |
getNbEndVoidNodes | public int getNbEndVoidNodes()(Code) | | Returns the nbEndVoidNodes. |
isEvent | public static boolean isEvent(int actionType)(Code) | | |
isSummary | public boolean isSummary(Node node)(Code) | | |
isUndo | public static boolean isUndo(int actionType)(Code) | | |
remove | public void remove(List nodes, NodeModel model, int actionType, boolean removeDependencies)(Code) | | Remove nodes. This will wrap the call in a multiple transaction if there are many calls so as
not to recalculate each time. In case end void nodes were removed, they will be put back
|
setNbEndVoidNodes | public void setNbEndVoidNodes(int nbEndVoidNodes)(Code) | | Parameters: nbEndVoidNodes - The nbEndVoidNodes to set. If -1, then use default |
Methods inherited from com.projity.grouping.core.hierarchy.AbstractMutableNodeHierarchy | public void addHierarchyListener(HierarchyListener l)(Code)(Java Doc) protected synchronized void beginUpdate()(Code)(Java Doc) abstract public Object clone()(Code)(Java Doc) public void dump()(Code)(Java Doc) public void dump(StringBuffer buf)(Code)(Java Doc) protected synchronized void endUpdate()(Code)(Java Doc) protected void fireNodesChanged(Object source, Object[] nodes, Object[] oldNodes, Object flag)(Code)(Java Doc) protected void fireNodesChanged(Object source, Object[] nodes)(Code)(Java Doc) protected void fireNodesInserted(Object source, Object[] nodes, Object[] oldNodes, Object flag)(Code)(Java Doc) protected void fireNodesInserted(Object source, Object[] nodes)(Code)(Java Doc) protected void fireNodesRemoved(Object source, Object[] nodes, Object[] oldNodes, Object flag)(Code)(Java Doc) protected void fireNodesRemoved(Object source, Object[] nodes)(Code)(Java Doc) protected void fireStructureChanged(Object source)(Code)(Java Doc) public Object getChild(Object parent, int index)(Code)(Java Doc) public int getChildCount(Object parent)(Code)(Java Doc) public HierarchyListener[] getHierarchyListeners()(Code)(Java Doc) public EventListener[] getHierarchyListeners(Class listenerType)(Code)(Java Doc) public int getIndexOfChild(Object parent, Object child)(Code)(Java Doc) public int getIndexOfNode(Node key, boolean skipVoid)(Code)(Java Doc) public Node getNext(Node current)(Code)(Java Doc) public Node getPrevious(Node current)(Code)(Java Doc) abstract public Object getRoot()(Code)(Java Doc) protected synchronized int getUpdateLevel()(Code)(Java Doc) public Iterator iterator(Node rootNode)(Code)(Java Doc) public Iterator iterator()(Code)(Java Doc) public void removeHierarchyListener(HierarchyListener l)(Code)(Java Doc) public void renumber()(Code)(Java Doc) public Iterator shallowIterator(int maxLevel, boolean returnRoot)(Code)(Java Doc) public List toList(boolean isNode, Predicate filter)(Code)(Java Doc) public void visitAll(Closure visitor)(Code)(Java Doc) public void visitAll(Node parent, Closure visitor)(Code)(Java Doc) public void visitAll(Node parent, boolean skipLazyParents, Closure visitor)(Code)(Java Doc) public void visitAll(boolean first, Node parent, boolean skipLazyParents, Closure visitor)(Code)(Java Doc) public void visitAllLevelOrder(Node parent, boolean skipLazyParents, Closure visitor)(Code)(Java Doc) public void visitAllLevelOrder(boolean first, Node parent, boolean skipLazyParents, Closure visitor)(Code)(Java Doc) public void visitLeaves(Node node, Closure visitor)(Code)(Java Doc)
|
|
|