All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.AbstractTreeUI

java.lang.Object
   |
   +----com.sun.java.swing.plaf.ComponentUI
           |
           +----com.sun.java.swing.plaf.TreeUI
                   |
                   +----com.sun.java.swing.basic.AbstractTreeUI

public abstract class AbstractTreeUI
extends TreeUI
implements Serializable, TreeModelListener, RowMapper, TreeSelectionListener
AbstractTreeUI can be used as a placeholder for subclassers wishing to create their own Look and Feel, but that don't want to reinvent everything. It will track the nodes that have been expanded and can handle almost all of the TreeUI methods. There are a few methods subclassers must implement, such as determining the size of each of the nodes. Subclassers will need to support drawing of the nodes, editing of the nodes and potentially key and mouse navigation, look to BasicTreeUI for an example of all of this.

AbstractTreeUI will use VisibleTreeNode to track everything, unless it has bee configured as a largeModel, in which case LargeTreeModelNode will be used.


Variable Index

 o largeModel
If this is true, VisibleTreeNode is not used, instead LargeTreeModelNode will be used to track the state of the tree.
 o largeRoot
Root node, used if largeModel is set to true.
 o largeRowCount
Number of rows, only used for largeModel.
 o rootVisible
Is the root being displayed?
 o rowHeight
Height to use for each row.
 o showsRootHandles
true if there should be handles at the top level.
 o treeCacheRoot
The root node of the internal cache of nodes that have been shown.
 o treeModel
The model that is currently being compressed.
 o treeSelectionModel
Used to determine if a node is selected.
 o updateNodeSizes
When messaged to paint() if this is true updateNodeSizes() will be messaged before painting to relayout the location and sizes of the nodes.
 o visibleNodes
The array of nodes that are currently visible, in the order they are displayed.

Constructor Index

 o AbstractTreeUI()

Method Index

 o collapsePath(TreePath)
Insures that the last item identified in path is collapsed and visible.
 o collapseRow(int)
Insures that the item identified by row is collapsed.
 o createLargeTreeModelNodeForValue(Object, int)
Creates and returns an instance of LargeTreeModelNode.
 o createNodeAt(VisibleTreeNode, int)
Creates a new node to represent the node at childIndex in parents children.
 o createNodeForValue(Object, int)
Responsible for creating a VisibleTreeNode that will be used to track display information about value.
 o createTreePathFor(VisibleTreeNode)
 o ensureLargePathIsExpanded(TreePath, boolean)
Ensures that all the path components in path are expanded, accept for the last component which will only be expanded if expandLast is true.
 o ensurePathIsAbstract(TreePath, VisibleTreeNode)
Returns an AbstractTreePath for path.
 o ensurePathIsExpanded(TreePath, boolean)
Returns the VisibleTreeNode instances that are used to represent the user values in path, as well as insuring that all the nodes are visible.
 o expandPath(TreePath)
Ensures that the last item identified in path is expanded and visible.
 o expandRow(int)
Insures that the item identified by row is expanded.
 o getClosestPathForLocation(int, int)
Returns the path to the node that is closest to x,y.
 o getClosestRowForLocation(int, int)
Returns the row to the node that is closest to x,y.
 o getLargeBoundsOf(LargeTreeModelNode, int, Object)
Parent is the parent of the node being drawn for.
 o getLargeParentAndChildIndexOfRow(int, int[])
Returns the parent Expanded node for the passed in row.
 o getLargePathForRow(int)
Returns the TreePath of the passed in row.
 o getLargeRowForPath(Object[])
Returns the row for the given TreePath.
 o getLargeTreeModelNodeForPath(Object[], boolean, boolean)
Messages getLageTreeModelNodeForPath(path, onlyIfVisible, shouldCreate, path.length as long as path is non-null and the length is > 0.
 o getLargeTreeModelNodeForPath(Object[], boolean, boolean, int)
Returns the LargeTreeModelNode instance for the given path.
 o getLargeTreeModelNodeForRow(int, boolean)
Returns the LargeTreeModelNode for the passed in row.
 o getMaxNodeWidth()
Returns the maximum node width.
 o getMaxSelectionRow()
Gets the last selected row.
 o getMinSelectionRow()
Gets the first selected row.
 o getModel()
Returns the TreeModel that is being displayed for.
 o getNode(int)
Returns the AbstractTreeUI.VisibleNode displayed at the given row Only used if largeModel is false.
 o getNodeForPath(Object[], boolean, boolean)
Returns the VisibleTreeNode that represents the last item in path.
 o getNodeForTreePath(TreePath, boolean, boolean)
Returns the VisibleTreeNode identified by path.
 o getNodesForPath(Object[], boolean, boolean)
Returns the VisibleTreeNodes that represent path.
 o getNodesForTreePath(TreePath, boolean, boolean)
Returns the path of VisibleTreeNode's to reach the path identified in path.
 o getPathBounds(TreePath)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.
 o getPathForRow(int)
Returns the path for passed in row.
 o getPathsForRows(int[])
Returns the TreePaths for the indices in rows.
 o getRowBounds(int)
Returns the Rectangle enclosing the label portion that the item identified by row will be drawn into.
 o getRowContainingYLocation(int)
Returns the index of the row containing location.
 o getRowCount()
Returns the number of visible rows.
 o getRowForPath(TreePath)
Returns the row that the last item identified in path is visible at.
 o getRowHeight()
Returns the height of each row.
 o getRowsForPaths(TreePath[])
Returns the rows that the TreePath instances in path are being displayed at.
 o getSelectionModel()
Returns the model used to maintain the selection.
 o getSelectionPath()
Returns the path to the first selected value, or null if nothing is currently selected.
 o getSelectionPaths()
Returns the path of the selected values, or null if nothing is current selected.
 o getSelectionRows()
Returns all of the currently selected rows.
 o getShowsRootHandles()
Returns true if handles for the root nodes are displayed.
 o getSizeOfNode(VisibleTreeNode, int)
Subclassers must implement this to return the size of node.
 o getValue(int)
Returns the data model object displayed at the given row
 o getXOriginOfNode(VisibleTreeNode)
Subclassers must implement this method, should return the x origin of where the particular node is goin to drawn at.
 o getYOriginOfRow(int)
Returns the y origin of row.
 o isAbstractTreePath(TreePath, boolean, boolean)
Returns true if path is an instance of AbstractTreePath and was created by this instance (updating it if it is out of date).
 o isCollapsed(int)
Returns true if the value identified by row is currently collapsed.
 o isCollapsed(TreePath)
Returns true if the value identified by path is currently collapsed, this will return false if any of the values in path are currently not being displayed.
 o isExpanded(int)
Returns true if the value identified by row is currently expanded.
 o isExpanded(TreePath)
Returns true if the value identified by path is currently expanded, this will return false if any of the values in path are currently not being displayed.
 o isFixedRowHeight()
Returns true if the height of each row is a fixed size.
 o isLargeModel()
Returns true if the reciever is configured for displaying large models.
 o isLeaf(int)
Returns true if the node at row is a leaf.
 o isPathSelected(TreePath)
Returns true if item identified by path is currently selected.
 o isRootVisible()
Returns true if root is currently visible.
 o isRowSelected(int)
Returns true if the row identitifed by row is selected.
 o isSelectedIndex(int)
Returns true if row is selected.
 o isVisible(TreePath)
Returns true if all the parents of path are currently expanded.
 o makeVisible(TreePath)
Ensures that all of the parents of path are currently expanded.
 o pathWasCollapsed(TreePath)
Messaged from the VisibleTreeNode after it has collapsed.
 o pathWasExpanded(TreePath)
Messaged from the VisibleTreeNode after it has been expanded.
 o rebuild()
Sent to completely rebuild the visible tree.
 o setLargeModel(boolean)
Configures the reciever to display a largeModel based on largeModel.
 o setModel(TreeModel)
Sets the model the data is going to come from.
 o setRootVisible(boolean)
Sets whether or not the root node of the model is to be displayed.
 o setRowHeight(int)
Sets the height of each to be rowHeight.
 o setSelectionModel(TreeSelectionModel)
Sets the TreeSelectionModel used to manage the selection to new LSM.
 o setShowsRootHandles(boolean)
Sets whether or not the root handles are to be displayed.
 o treeNodesChanged(TreeModelEvent)
Invoked after nodes in the tree have changed in some way.
 o treeNodesInserted(TreeModelEvent)
Invoked after nodes have been inserted into the tree.
 o treeNodesRemoved(TreeModelEvent)
Invoked after nodes have been removed from the tree.
 o treeStructureChanged(TreeModelEvent)
Invoked after the tree has drastically changed structure.
 o updateNodeSizes(boolean)
Resets the y origin of all the visible nodes as well as messaging all the visible nodes to updatePreferredSize().
 o updateYLocationsFrom(int)
Updates the y locations of all of the visible nodes after location.
 o valueChanged(TreeSelectionEvent)
Notification that the model has changed.
 o visibleNodes()
Returns an enumeration of AbstractTreeUI.VisibleTreeNode.
 o visibleNodesChanged()
Messaged when the visible nodes have changed (eg when a node is expanded, when nodes are removed from the model...).

Variables

 o treeModel
 protected transient TreeModel treeModel
The model that is currently being compressed.

 o rootVisible
 protected boolean rootVisible
Is the root being displayed?

 o treeCacheRoot
 protected VisibleTreeNode treeCacheRoot
The root node of the internal cache of nodes that have been shown. If the treeModel is vending a network rather than a true tree, there may be one cached node for each path to a modeled node.

 o visibleNodes
 protected Vector visibleNodes
The array of nodes that are currently visible, in the order they are displayed.

 o updateNodeSizes
 protected boolean updateNodeSizes
When messaged to paint() if this is true updateNodeSizes() will be messaged before painting to relayout the location and sizes of the nodes.

 o rowHeight
 protected int rowHeight
Height to use for each row. If this is <= 0 the renderer will be used to determine the height for each row.

 o showsRootHandles
 protected boolean showsRootHandles
true if there should be handles at the top level. If the root isn't visible it is highly recommended to make this true.

 o treeSelectionModel
 protected TreeSelectionModel treeSelectionModel
Used to determine if a node is selected.

 o largeRoot
 protected LargeTreeModelNode largeRoot
Root node, used if largeModel is set to true.

 o largeModel
 protected boolean largeModel
If this is true, VisibleTreeNode is not used, instead LargeTreeModelNode will be used to track the state of the tree. If this is true, rowHeight will always be > 0.

 o largeRowCount
 protected int largeRowCount
Number of rows, only used for largeModel.

Constructors

 o AbstractTreeUI
 public AbstractTreeUI()

Methods

 o setModel
 public void setModel(TreeModel newModel)
Sets the model the data is going to come from. Will message rebuild if the new model is different from the current model.

 o getModel
 public TreeModel getModel()
Returns the TreeModel that is being displayed for.

 o setLargeModel
 public void setLargeModel(boolean largeModel)
Configures the reciever to display a largeModel based on largeModel.

 o isLargeModel
 public boolean isLargeModel()
Returns true if the reciever is configured for displaying large models.

 o setRootVisible
 public void setRootVisible(boolean rootVisible)
Sets whether or not the root node of the model is to be displayed.

 o isRootVisible
 public boolean isRootVisible()
Returns true if root is currently visible.

 o setShowsRootHandles
 public void setShowsRootHandles(boolean newValue)
Sets whether or not the root handles are to be displayed.

 o getShowsRootHandles
 public boolean getShowsRootHandles()
Returns true if handles for the root nodes are displayed.

 o setRowHeight
 public void setRowHeight(int rowHeight)
Sets the height of each to be rowHeight. If rowHeight is less than or equal to zero the current cell renderer will be queried for each rows height. If largeModel is true and rowHeight is < 1, an IllegalArgumentException will be thrown.

 o getRowHeight
 public int getRowHeight()
Returns the height of each row. If returned value is less than or equal to 0 the height for each row is determined by the renderer.

 o isFixedRowHeight
 public boolean isFixedRowHeight()
Returns true if the height of each row is a fixed size.

 o getXOriginOfNode
 public abstract int getXOriginOfNode(VisibleTreeNode node)
Subclassers must implement this method, should return the x origin of where the particular node is goin to drawn at.

 o getSizeOfNode
 public abstract Dimension getSizeOfNode(VisibleTreeNode node,
                                         int row)
Subclassers must implement this to return the size of node.

 o getLargeBoundsOf
 protected abstract Rectangle getLargeBoundsOf(LargeTreeModelNode parent,
                                               int row,
                                               Object childUserObject)
Parent is the parent of the node being drawn for. Will be null if getting root bounds.

 o visibleNodesChanged
 public abstract void visibleNodesChanged()
Messaged when the visible nodes have changed (eg when a node is expanded, when nodes are removed from the model...).

 o pathWasExpanded
 protected abstract void pathWasExpanded(TreePath path)
Messaged from the VisibleTreeNode after it has been expanded.

 o pathWasCollapsed
 protected abstract void pathWasCollapsed(TreePath path)
Messaged from the VisibleTreeNode after it has collapsed.

 o isAbstractTreePath
 protected boolean isAbstractTreePath(TreePath path,
                                      boolean onlyIfVisible,
                                      boolean shouldCreate)
Returns true if path is an instance of AbstractTreePath and was created by this instance (updating it if it is out of date). Otherwise false is returned. Only used if largeModel is false.

 o getNodeForTreePath
 protected VisibleTreeNode getNodeForTreePath(TreePath path,
                                              boolean onlyIfVisible,
                                              boolean shouldCreate)
Returns the VisibleTreeNode identified by path. This mirrors the behavior of getNodeForPath, but tries to take advantage of path if it is an instance of AbstractTreePath. Only used if largeModel is false.

 o getNodesForTreePath
 protected VisibleTreeNode[] getNodesForTreePath(TreePath path,
                                                 boolean onlyIfVisible,
                                                 boolean shouldCreate)
Returns the path of VisibleTreeNode's to reach the path identified in path. This mirrors the behavior of getNodesForPath, but tries to take advantage of path if it is an instance of AbstractTreePath. Only used if largeModel is false.

 o ensurePathIsAbstract
 protected TreePath ensurePathIsAbstract(TreePath path,
                                         VisibleTreeNode node)
Returns an AbstractTreePath for path. If path is already an instance of AbstractTreePath, it is returned, otherwise an instance of AbstractTreePath is created. Only used if largeModel is false.

 o getNodeForPath
 public VisibleTreeNode getNodeForPath(Object path[],
                                       boolean onlyIfVisible,
                                       boolean shouldCreate)
Returns the VisibleTreeNode that represents the last item in path. If onlyIfVisibile is true and any of the nodes in path are not currently visible, null will be returned. shouldCreate is passed into getLoadedChildren, a true value will load the nodes if they have not already been loaded. Only used if largeModel is false.

 o getNodesForPath
 public VisibleTreeNode[] getNodesForPath(Object path[],
                                          boolean onlyIfVisible,
                                          boolean shouldCreate)
Returns the VisibleTreeNodes that represent path. If onlyIfVisibile is true and any of the nodes in path are not currently visible, null will be returned. shouldCreate is passed into getLoadedChildren, a true value will load the nodes if they have not already been loaded. Only used if largeModel is false.

 o updateYLocationsFrom
 protected void updateYLocationsFrom(int location)
Updates the y locations of all of the visible nodes after location. Only used if largeModel is false.

 o treeNodesChanged
 public synchronized void treeNodesChanged(TreeModelEvent e)
Invoked after nodes in the tree have changed in some way. All of the nodes are siblings. The nodes have not changed locations in the tree or altered their children arrays, but other attributes have changed and may affect the nodes' presentation.

 o createNodeAt
 protected VisibleTreeNode createNodeAt(VisibleTreeNode parent,
                                        int childIndex)
Creates a new node to represent the node at childIndex in parents children. This should be called if the node doesn't already exist and parent has been expanded at least once. The newly created node will be made visible if parent is currently expanded. This does not update the position of any cells, nor update the selection if it needs to be. If succesful in creating the new VisibleTreeNode, it is returned, otherwise null is returned. Only used if largeModel is false.

 o treeNodesInserted
 public synchronized void treeNodesInserted(TreeModelEvent e)
Invoked after nodes have been inserted into the tree.

 o treeNodesRemoved
 public synchronized void treeNodesRemoved(TreeModelEvent e)
Invoked after nodes have been removed from the tree. Note that if a subtree is removed from the tree, this method may only be invoked once for the root of the removed subtree, not once for each individual set of siblings removed.

 o treeStructureChanged
 public synchronized void treeStructureChanged(TreeModelEvent e)
Invoked after the tree has drastically changed structure. The event will identify the root of the subtree that has changed. The behavior of this is to recreate the last node that is identified by the path in the passed in event. If the node was previously expanded it will be expanded when recreated, but none of its children will be expanded. If the path returned by e.getPath() is of length one and the first element does not identify the current root node the first element should become the new root of the tree.

 o rebuild
 public void rebuild()
Sent to completely rebuild the visible tree. All nodes are collapsed.

 o updateNodeSizes
 public void updateNodeSizes(boolean updateAll)
Resets the y origin of all the visible nodes as well as messaging all the visible nodes to updatePreferredSize(). You should not normally have to call this. Expanding and contracting the nodes automaticly adjusts the locations. updateAll determines if updatePreferredSize() is call on all nodes or just those that don't have a valid size. Only used if largeModel is false.

 o getYOriginOfRow
 public int getYOriginOfRow(int row)
Returns the y origin of row.

 o getRowContainingYLocation
 public int getRowContainingYLocation(int location)
Returns the index of the row containing location. If there are no rows, -1 is returned. If location is beyond the last row index, the last row index is returned.

 o ensureLargePathIsExpanded
 protected boolean ensureLargePathIsExpanded(TreePath path,
                                             boolean expandLast)
Ensures that all the path components in path are expanded, accept for the last component which will only be expanded if expandLast is true. Returns true if succesful in finding the path.

 o ensurePathIsExpanded
 protected VisibleTreeNode[] ensurePathIsExpanded(TreePath path,
                                                  boolean expandLast)
Returns the VisibleTreeNode instances that are used to represent the user values in path, as well as insuring that all the nodes are visible. If any component of the path is not valid, null will be returned.

Only used if largeModel is false.

 o getSelectionPath
 public TreePath getSelectionPath()
Returns the path to the first selected value, or null if nothing is currently selected.

 o getSelectionPaths
 public TreePath[] getSelectionPaths()
Returns the path of the selected values, or null if nothing is current selected.

 o getSelectionRows
 public int[] getSelectionRows()
Returns all of the currently selected rows.

 o getMinSelectionRow
 public int getMinSelectionRow()
Gets the first selected row.

 o getMaxSelectionRow
 public int getMaxSelectionRow()
Gets the last selected row.

 o isPathSelected
 public boolean isPathSelected(TreePath path)
Returns true if item identified by path is currently selected.

 o isRowSelected
 public boolean isRowSelected(int row)
Returns true if the row identitifed by row is selected.

 o isExpanded
 public boolean isExpanded(TreePath path)
Returns true if the value identified by path is currently expanded, this will return false if any of the values in path are currently not being displayed.

Overrides:
isExpanded in class TreeUI
 o isExpanded
 public boolean isExpanded(int row)
Returns true if the value identified by row is currently expanded.

Overrides:
isExpanded in class TreeUI
 o isCollapsed
 public boolean isCollapsed(TreePath path)
Returns true if the value identified by path is currently collapsed, this will return false if any of the values in path are currently not being displayed.

Overrides:
isCollapsed in class TreeUI
 o isCollapsed
 public boolean isCollapsed(int row)
Returns true if the value identified by row is currently collapsed.

Overrides:
isCollapsed in class TreeUI
 o isLeaf
 public boolean isLeaf(int row)
Returns true if the node at row is a leaf.

 o makeVisible
 public void makeVisible(TreePath path)
Ensures that all of the parents of path are currently expanded. To make sure it is truyly visible, you may wish to call scrollPathToVisible, which will try and scroll the path to be visibile if the JTree is in a scroller.

Overrides:
makeVisible in class TreeUI
 o isVisible
 public boolean isVisible(TreePath path)
Returns true if all the parents of path are currently expanded.

Overrides:
isVisible in class TreeUI
 o getRowCount
 public int getRowCount()
Returns the number of visible rows.

Overrides:
getRowCount in class TreeUI
 o getPathBounds
 public Rectangle getPathBounds(TreePath path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. Will return null if any component in path is currently valid.

Overrides:
getPathBounds in class TreeUI
 o getRowBounds
 public Rectangle getRowBounds(int row)
Returns the Rectangle enclosing the label portion that the item identified by row will be drawn into.

Overrides:
getRowBounds in class TreeUI
 o getPathForRow
 public TreePath getPathForRow(int row)
Returns the path for passed in row. If row is not visible null is returned.

Overrides:
getPathForRow in class TreeUI
 o getRowForPath
 public int getRowForPath(TreePath path)
Returns the row that the last item identified in path is visible at. Will return -1 if any of the elements in path are not currently visible.

Overrides:
getRowForPath in class TreeUI
 o getRowsForPaths
 public int[] getRowsForPaths(TreePath paths[])
Returns the rows that the TreePath instances in path are being displayed at. The receiver should return an array of the same length as that passed in, and if one of the TreePaths in path is not valid its entry in the array should be set to -1.

 o getPathsForRows
 public TreePath[] getPathsForRows(int rows[])
Returns the TreePaths for the indices in rows. The receiver should return an array of the same size as that passed in, and if one of the rows is invalid it should be set to null.

 o expandPath
 public void expandPath(TreePath path)
Ensures that the last item identified in path is expanded and visible.

Overrides:
expandPath in class TreeUI
 o expandRow
 public void expandRow(int row)
Insures that the item identified by row is expanded.

Overrides:
expandRow in class TreeUI
 o collapsePath
 public void collapsePath(TreePath path)
Insures that the last item identified in path is collapsed and visible.

Overrides:
collapsePath in class TreeUI
 o collapseRow
 public void collapseRow(int row)
Insures that the item identified by row is collapsed.

Overrides:
collapseRow in class TreeUI
 o getClosestPathForLocation
 public TreePath getClosestPathForLocation(int x,
                                           int y)
Returns the path to the node that is closest to x,y. If there is nothing currently visible this will return null, otherwise it'll always return a valid path. If you need to test if the returned object is exactly at x, y you should get the bounds for the returned path and test x, y against that.

Overrides:
getClosestPathForLocation in class TreeUI
 o getClosestRowForLocation
 public int getClosestRowForLocation(int x,
                                     int y)
Returns the row to the node that is closest to x,y. If there is nothing currently visible this will return -1, otherwise it'll always return a valid row. If you need to test if the returned object is exactly at x, y you should get the bounds for the returned row and test x, y against that.

Overrides:
getClosestRowForLocation in class TreeUI
 o getValue
 public Object getValue(int row)
Returns the data model object displayed at the given row

 o getNode
 public VisibleTreeNode getNode(int row)
Returns the AbstractTreeUI.VisibleNode displayed at the given row Only used if largeModel is false.

 o visibleNodes
 public Enumeration visibleNodes()
Returns an enumeration of AbstractTreeUI.VisibleTreeNode. There is one element per visible row, and this enumerates through the rows from top to bottom. Only used if largeModel is false.

 o getMaxNodeWidth
 public int getMaxNodeWidth()
Returns the maximum node width. If not largeModel then this will repeatedly call getXOrigin() on this as well as getPreferredSize() on each node to determine the size. If this is a largeModel, then this will repeatedly get the bounds of each row (getRowBounds), in other words this is very expensive for largeModels.

 o setSelectionModel
 public void setSelectionModel(TreeSelectionModel newLSM)
Sets the TreeSelectionModel used to manage the selection to new LSM.

 o getSelectionModel
 public TreeSelectionModel getSelectionModel()
Returns the model used to maintain the selection.

 o isSelectedIndex
 public boolean isSelectedIndex(int row)
Returns true if row is selected.

 o valueChanged
 public void valueChanged(TreeSelectionEvent e)
Notification that the model has changed. Makes sure all the paths in the TreeSelectionEvent e are visible (that is there are parents are expanded).

 o createNodeForValue
 protected VisibleTreeNode createNodeForValue(Object value,
                                              int index)
Responsible for creating a VisibleTreeNode that will be used to track display information about value.

 o createLargeTreeModelNodeForValue
 protected LargeTreeModelNode createLargeTreeModelNodeForValue(Object value,
                                                               int childIndex)
Creates and returns an instance of LargeTreeModelNode.

 o getLargeParentAndChildIndexOfRow
 protected LargeTreeModelNode getLargeParentAndChildIndexOfRow(int row,
                                                               int cIndex[])
Returns the parent Expanded node for the passed in row. Will return null for the root, or any rows outside of the current range. Also, returns by refernence in cIndex the child index from the model.

 o getLargeTreeModelNodeForRow
 protected LargeTreeModelNode getLargeTreeModelNodeForRow(int row,
                                                          boolean shouldCreate)
Returns the LargeTreeModelNode for the passed in row. This will return null if row is > then number of rows, or if there isn't currently an expanded node for the passed in row.

 o getLargePathForRow
 protected TreePath getLargePathForRow(int row)
Returns the TreePath of the passed in row.

 o getLargeRowForPath
 protected int getLargeRowForPath(Object path[])
Returns the row for the given TreePath.

 o getLargeTreeModelNodeForPath
 protected LargeTreeModelNode getLargeTreeModelNodeForPath(Object path[],
                                                           boolean onlyIfVisible,
                                                           boolean shouldCreate)
Messages getLageTreeModelNodeForPath(path, onlyIfVisible, shouldCreate, path.length as long as path is non-null and the length is > 0. Otherwise returns null.

 o getLargeTreeModelNodeForPath
 protected LargeTreeModelNode getLargeTreeModelNodeForPath(Object path[],
                                                           boolean onlyIfVisible,
                                                           boolean shouldCreate,
                                                           int pathLength)
Returns the LargeTreeModelNode instance for the given path. Path should only contain non-leafs. If onlyIfVisible null will be returned if any items in the path are not expanded. If shouldCreate is true and some of the path is currently expanded, it will be created and set to expanded.

 o createTreePathFor
 protected AbstractTreePath createTreePathFor(VisibleTreeNode node)

All Packages  Class Hierarchy  This Package  Previous  Next  Index