| java.lang.Object org.netbeans.modules.bpel.mapper.tree.MapperSwingTreeModel
MapperSwingTreeModel | public class MapperSwingTreeModel implements TreeModel,MapperTcContext.Provider(Code) | | An internal tree model based on the Swing Tree Model.
It performs caching of data is obtained from another tree models,
which are described by the MapperTreeModel and TreeItemInfoProvider
interfaces.
author: nk160297 |
Method Summary | |
public void | addTreeModelListener(TreeModelListener l) | public boolean | checkNode(Stack<MapperTreeNode> locationStack, TreeItemFinder finder, int maxDepth) An auxiliary method is intended to help seach nodes recursively.
The locationStack parameter specifies a chain of MapperTreeNode
objects, which points to the tree node, from which the searching
has to be started. | public static boolean | containsDataObject(TreePath treePath, Object dataObj) Returns true if the specified tree path contains a tree item with the
specified data object. | public static List<Object> | convertTreePath(TreePath treePath) Converts content of the TreePath to the list of data objects. | public void | fillNodesList(List<List<MapperTreeNode>> foundLocationsList, Stack<MapperTreeNode> locationStack, TreeItemFinder finder, int maxDepth, boolean lookDeeperIfFound) An auxiliary method is intended to help seach nodes recursively.
See description of the findFirstNode method. | public TreePath | findChild(TreePath parentPath, TreeItemFinder finder) Looks for the first child of the specified parent according to the
finder. | public TreePath | findChildByDataObj(TreePath parentPath, Object dataObject) | public TreePath | findChildByIndex(TreePath parentPath, int index) | public List<TreePath> | findChildren(TreePath parentPath, TreeItemFinder finder) Looks for the set of children of the specified parent according to the
finder. | public boolean | findFirstChild(Stack<MapperTreeNode> locationStack, TreeItemFinder finder, int maxDepth) | public TreePath | findFirstNode(List<TreeItemFinder> finderList) Looks for the first node, which satisfies the search conditions,
which are specified by the finderList argument.
The finderList contains the list of TreeItemFinder objects which
has to be applied sequentially.
Parameters: helper - TreePath of the found tree item. | public void | fireTreeChanged(Object source, TreePath tPath) | protected void | fireTreeNodesInserted(Object source, TreePath parentTreePath, int childIndex, Object inserted) | protected void | fireTreeNodesRemoved(Object source, TreePath parentTreePath, int childIndex, Object removedObj) | public Object | getChild(Object parent, int index) | public int | getChildCount(Object parent) | public static Object | getDataObject(TreePath treePath) | public String | getDisplayName(Object node) | public Icon | getIcon(Object node) | public int | getIndexOfChild(Object parent, Object child) | public MapperTcContext | getMapperTcContext() | public JPopupMenu | getPopupMenu(Object node) | public Object | getRoot() | public MapperTreeModel | getSourceModel() | public String | getToolTipText(Object node) | public void | insertChild(TreePath parentPath, int index, Object itemDataObject) | public boolean | isConnectable(TreePath treePath) | public boolean | isLeaf(Object node) | public void | remove(TreePath treePath) | public void | removeTreeModelListener(TreeModelListener l) | public List<TreePath> | sortByLocation(Collection<TreePath> unsorted) | public void | valueForPathChanged(TreePath path, Object newValue) |
checkNode | public boolean checkNode(Stack<MapperTreeNode> locationStack, TreeItemFinder finder, int maxDepth)(Code) | | An auxiliary method is intended to help seach nodes recursively.
The locationStack parameter specifies a chain of MapperTreeNode
objects, which points to the tree node, from which the searching
has to be started.
The finder parameter is an object which makes decision.
It has to be implemented externally.
The maxDepth parameter specifies the maximum depth do
which the recursive algorithm can go.
If it equals to -1, then infinite depth is emplied.
if it equals to 0 than it means that it only necessary to check
if the top node in the stack satisfies to the searching conditions.
if it equals to 1 than it means that searching is requested
only among direct children of the source node.
|
containsDataObject | public static boolean containsDataObject(TreePath treePath, Object dataObj)(Code) | | Returns true if the specified tree path contains a tree item with the
specified data object.
Parameters: treePath - Parameters: dataObj - |
convertTreePath | public static List<Object> convertTreePath(TreePath treePath)(Code) | | Converts content of the TreePath to the list of data objects.
Parameters: treePath - |
fillNodesList | public void fillNodesList(List<List<MapperTreeNode>> foundLocationsList, Stack<MapperTreeNode> locationStack, TreeItemFinder finder, int maxDepth, boolean lookDeeperIfFound)(Code) | | An auxiliary method is intended to help seach nodes recursively.
See description of the findFirstNode method.
Unlike the findFirstNode it can find more then one node.
|
findChild | public TreePath findChild(TreePath parentPath, TreeItemFinder finder)(Code) | | Looks for the first child of the specified parent according to the
finder.
Parameters: parentPath - Parameters: finder - the tree path of the found child or null. |
findChildByDataObj | public TreePath findChildByDataObj(TreePath parentPath, Object dataObject)(Code) | | Looks for a child node by data object
Parameters: parentPath - Parameters: dataObject - |
findChildByIndex | public TreePath findChildByIndex(TreePath parentPath, int index)(Code) | | Looks for a child node by index
Parameters: parentPath - Parameters: dataObject - |
findChildren | public List<TreePath> findChildren(TreePath parentPath, TreeItemFinder finder)(Code) | | Looks for the set of children of the specified parent according to the
finder.
Parameters: parentPath - Parameters: finder - the tree path of the found child or null. |
findFirstNode | public TreePath findFirstNode(List<TreeItemFinder> finderList)(Code) | | Looks for the first node, which satisfies the search conditions,
which are specified by the finderList argument.
The finderList contains the list of TreeItemFinder objects which
has to be applied sequentially.
Parameters: helper - TreePath of the found tree item. |
fireTreeNodesInserted | protected void fireTreeNodesInserted(Object source, TreePath parentTreePath, int childIndex, Object inserted)(Code) | | |
fireTreeNodesRemoved | protected void fireTreeNodesRemoved(Object source, TreePath parentTreePath, int childIndex, Object removedObj)(Code) | | |
|
|