All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.basic.AbstractTreeUI
java.lang.Object
|
+----java.awt.swing.plaf.ComponentUI
|
+----java.awt.swing.plaf.TreeUI
|
+----java.awt.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.
largeModel- If this is true, VisibleTreeNode is not used, instead
LargeTreeModelNode will be used to track the state of the tree.
largeRoot- Root node, used if largeModel is set to true.
largeRowCount- Number of rows, only used for largeModel.
rootVisible- Is the root being displayed?
rowHeight- Height to use for each row.
showsRootHandles- true if there should be handles at the top level.
treeCacheRoot- The root node of the internal cache of nodes that have been shown.
treeModel- The model that is currently being compressed.
treeSelectionModel- Used to determine if a node is selected.
updateNodeSizes- When messaged to paint() if this is true updateNodeSizes()
will be messaged before painting to relayout the location and
sizes of the nodes.
visibleNodes- The array of nodes that are currently visible, in the order they
are displayed.
AbstractTreeUI()
-
collapsePath(TreePath)
- Insures that the last item identified in path is collapsed and
visible.
collapseRow(int)
- Insures that the item identified by row is collapsed.
createLargeTreeModelNodeForValue(Object, int)
- Creates and returns an instance of LargeTreeModelNode.
createNodeAt(VisibleTreeNode, int)
- Creates a new node to represent the node at childIndex in
parents children.
createNodeForValue(Object, int)
- Responsible for creating a VisibleTreeNode that will be used
to track display information about value.
createTreePathFor(VisibleTreeNode)
-
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.
ensurePathIsAbstract(TreePath, VisibleTreeNode)
- Returns an AbstractTreePath for path.
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.
expandPath(TreePath)
- Ensures that the last item identified in path is expanded and
visible.
expandRow(int)
- Insures that the item identified by row is expanded.
getClosestPathForLocation(int, int)
- Returns the path to the node that is closest to x,y.
getClosestRowForLocation(int, int)
- Returns the row to the node that is closest to x,y.
getLargeBoundsOf(LargeTreeModelNode, int, Object)
- Parent is the parent of the node being drawn for.
getLargeParentAndChildIndexOfRow(int, int[])
- Returns the parent Expanded node for the passed in row.
getLargePathForRow(int)
- Returns the TreePath of the passed in row.
getLargeRowForPath(Object[])
- Returns the row for the given TreePath.
getLargeTreeModelNodeForPath(Object[], boolean, boolean)
- Messages getLageTreeModelNodeForPath(path, onlyIfVisible, shouldCreate,
path.length as long as path is non-null and the length is > 0.
getLargeTreeModelNodeForPath(Object[], boolean, boolean, int)
- Returns the LargeTreeModelNode instance for the given path.
getLargeTreeModelNodeForRow(int, boolean)
- Returns the LargeTreeModelNode for the passed in row.
getMaxNodeWidth()
- Returns the maximum node width.
getMaxSelectionRow()
- Gets the last selected row.
getMinSelectionRow()
- Gets the first selected row.
getModel()
- Returns the TreeModel that is being displayed for.
getNode(int)
- Returns the AbstractTreeUI.VisibleNode displayed at the given row
Only used if largeModel is false.
getNodeForPath(Object[], boolean, boolean)
- Returns the VisibleTreeNode that represents the last item in
path.
getNodeForTreePath(TreePath, boolean, boolean)
- Returns the VisibleTreeNode identified by path.
getNodesForPath(Object[], boolean, boolean)
- Returns the VisibleTreeNodes that represent
path.
getNodesForTreePath(TreePath, boolean, boolean)
- Returns the path of VisibleTreeNode's to reach the path identified
in path.
getPathBounds(TreePath)
- Returns the Rectangle enclosing the label portion that the
last item in path will be drawn into.
getPathForRow(int)
- Returns the path for passed in row.
getPathsForRows(int[])
- Returns the
TreePath
s for the indices in
rows
.
getRowBounds(int)
- Returns the Rectangle enclosing the label portion that the
item identified by row will be drawn into.
getRowContainingYLocation(int)
- Returns the index of the row containing location.
getRowCount()
- Returns the number of visible rows.
getRowForPath(TreePath)
- Returns the row that the last item identified in path is visible
at.
getRowHeight()
- Returns the height of each row.
getRowsForPaths(TreePath[])
- Returns the rows that the TreePath instances in
path
are being displayed at.
getSelectionModel()
- Returns the model used to maintain the selection.
getSelectionPath()
- Returns the path to the first selected value, or null if
nothing is currently selected.
getSelectionPaths()
- Returns the path of the selected values, or null if nothing is
current selected.
getSelectionRows()
- Returns all of the currently selected rows.
getShowsRootHandles()
- Returns true if handles for the root nodes are displayed.
getSizeOfNode(VisibleTreeNode, int)
- Subclassers must implement this to return the size of node.
getValue(int)
- Returns the data model object displayed at the given row
getXOriginOfNode(VisibleTreeNode)
- Subclassers must implement this method, should return the x
origin of where the particular node is goin to drawn at.
getYOriginOfRow(int)
- Returns the y origin of row.
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).
isCollapsed(int)
- Returns true if the value identified by row is currently collapsed.
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.
isExpanded(int)
- Returns true if the value identified by row is currently expanded.
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.
isFixedRowHeight()
- Returns true if the height of each row is a fixed size.
isLargeModel()
- Returns true if the reciever is configured for displaying large
models.
isLeaf(int)
- Returns true if the node at
row
is a leaf.
isPathSelected(TreePath)
- Returns true if item identified by path is currently selected.
isRootVisible()
- Returns true if root is currently visible.
isRowSelected(int)
- Returns true if the row identitifed by row is selected.
isSelectedIndex(int)
- Returns true if row is selected.
isVisible(TreePath)
- Returns true if all the parents of path are currently expanded.
makeVisible(TreePath)
- Ensures that all of the parents of path are currently expanded.
pathWasCollapsed(TreePath)
- Messaged from the VisibleTreeNode after it has collapsed.
pathWasExpanded(TreePath)
- Messaged from the VisibleTreeNode after it has been expanded.
rebuild()
- Sent to completely rebuild the visible tree.
setLargeModel(boolean)
- Configures the reciever to display a largeModel based on
largeModel
.
setModel(TreeModel)
- Sets the model the data is going to come from.
setRootVisible(boolean)
- Sets whether or not the root node of the model is to be displayed.
setRowHeight(int)
- Sets the height of each to be rowHeight.
setSelectionModel(TreeSelectionModel)
- Sets the TreeSelectionModel used to manage the selection to
new LSM.
setShowsRootHandles(boolean)
- Sets whether or not the root handles are to be displayed.
treeNodesChanged(TreeModelEvent)
- Invoked after nodes in the tree have changed in some way.
treeNodesInserted(TreeModelEvent)
- Invoked after nodes have been inserted into the tree.
treeNodesRemoved(TreeModelEvent)
- Invoked after nodes have been removed from the tree.
treeStructureChanged(TreeModelEvent)
- Invoked after the tree has drastically changed structure.
updateNodeSizes(boolean)
- Resets the y origin of all the visible nodes as well as messaging
all the visible nodes to updatePreferredSize().
updateYLocationsFrom(int)
- Updates the y locations of all of the visible nodes after
location.
valueChanged(TreeSelectionEvent)
- Notification that the model has changed.
visibleNodes()
- Returns an enumeration of AbstractTreeUI.VisibleTreeNode.
visibleNodesChanged()
- Messaged when the visible nodes have changed (eg when a
node is expanded, when nodes are removed from the model...).
treeModel
protected transient TreeModel treeModel
- The model that is currently being compressed.
rootVisible
protected boolean rootVisible
- Is the root being displayed?
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.
visibleNodes
protected Vector visibleNodes
- The array of nodes that are currently visible, in the order they
are displayed.
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.
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.
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.
treeSelectionModel
protected TreeSelectionModel treeSelectionModel
- Used to determine if a node is selected.
largeRoot
protected LargeTreeModelNode largeRoot
- Root node, used if largeModel is set to true.
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.
largeRowCount
protected int largeRowCount
- Number of rows, only used for largeModel.
AbstractTreeUI
public AbstractTreeUI()
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.
getModel
public TreeModel getModel()
- Returns the TreeModel that is being displayed for.
setLargeModel
public void setLargeModel(boolean largeModel)
- Configures the reciever to display a largeModel based on
largeModel
.
isLargeModel
public boolean isLargeModel()
- Returns true if the reciever is configured for displaying large
models.
setRootVisible
public void setRootVisible(boolean rootVisible)
- Sets whether or not the root node of the model is to be displayed.
isRootVisible
public boolean isRootVisible()
- Returns true if root is currently visible.
setShowsRootHandles
public void setShowsRootHandles(boolean newValue)
- Sets whether or not the root handles are to be displayed.
getShowsRootHandles
public boolean getShowsRootHandles()
- Returns true if handles for the root nodes are displayed.
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.
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.
isFixedRowHeight
public boolean isFixedRowHeight()
- Returns true if the height of each row is a fixed size.
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.
getSizeOfNode
public abstract Dimension getSizeOfNode(VisibleTreeNode node,
int row)
- Subclassers must implement this to return the size of node.
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.
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...).
pathWasExpanded
protected abstract void pathWasExpanded(TreePath path)
- Messaged from the VisibleTreeNode after it has been expanded.
pathWasCollapsed
protected abstract void pathWasCollapsed(TreePath path)
- Messaged from the VisibleTreeNode after it has collapsed.
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.
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.
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.
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.
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.
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.
updateYLocationsFrom
protected void updateYLocationsFrom(int location)
- Updates the y locations of all of the visible nodes after
location.
Only used if largeModel is false.
treeNodesChanged
public 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.
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.
treeNodesInserted
public void treeNodesInserted(TreeModelEvent e)
- Invoked after nodes have been inserted into the tree.
treeNodesRemoved
public 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.
treeStructureChanged
public 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.
rebuild
public void rebuild()
- Sent to completely rebuild the visible tree. All nodes are collapsed.
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.
getYOriginOfRow
public int getYOriginOfRow(int row)
- Returns the y origin of row.
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.
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.
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.
getSelectionPath
public TreePath getSelectionPath()
- Returns the path to the first selected value, or null if
nothing is currently selected.
getSelectionPaths
public TreePath[] getSelectionPaths()
- Returns the path of the selected values, or null if nothing is
current selected.
getSelectionRows
public int[] getSelectionRows()
- Returns all of the currently selected rows.
getMinSelectionRow
public int getMinSelectionRow()
- Gets the first selected row.
getMaxSelectionRow
public int getMaxSelectionRow()
- Gets the last selected row.
isPathSelected
public boolean isPathSelected(TreePath path)
- Returns true if item identified by path is currently selected.
isRowSelected
public boolean isRowSelected(int row)
- Returns true if the row identitifed by row is selected.
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
isExpanded
public boolean isExpanded(int row)
- Returns true if the value identified by row is currently expanded.
- Overrides:
- isExpanded in class TreeUI
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
isCollapsed
public boolean isCollapsed(int row)
- Returns true if the value identified by row is currently collapsed.
- Overrides:
- isCollapsed in class TreeUI
isLeaf
public boolean isLeaf(int row)
- Returns true if the node at
row
is a leaf.
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
isVisible
public boolean isVisible(TreePath path)
- Returns true if all the parents of path are currently expanded.
- Overrides:
- isVisible in class TreeUI
getRowCount
public int getRowCount()
- Returns the number of visible rows.
- Overrides:
- getRowCount in class TreeUI
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
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
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
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
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.
getPathsForRows
public TreePath[] getPathsForRows(int[] rows)
- Returns the
TreePath
s 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.
expandPath
public void expandPath(TreePath path)
- Ensures that the last item identified in path is expanded and
visible.
- Overrides:
- expandPath in class TreeUI
expandRow
public void expandRow(int row)
- Insures that the item identified by row is expanded.
- Overrides:
- expandRow in class TreeUI
collapsePath
public void collapsePath(TreePath path)
- Insures that the last item identified in path is collapsed and
visible.
- Overrides:
- collapsePath in class TreeUI
collapseRow
public void collapseRow(int row)
- Insures that the item identified by row is collapsed.
- Overrides:
- collapseRow in class TreeUI
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
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
getValue
public Object getValue(int row)
- Returns the data model object displayed at the given row
getNode
public VisibleTreeNode getNode(int row)
- Returns the AbstractTreeUI.VisibleNode displayed at the given row
Only used if largeModel is false.
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.
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.
setSelectionModel
public void setSelectionModel(TreeSelectionModel newLSM)
- Sets the TreeSelectionModel used to manage the selection to
new LSM.
getSelectionModel
public TreeSelectionModel getSelectionModel()
- Returns the model used to maintain the selection.
isSelectedIndex
public boolean isSelectedIndex(int row)
- Returns true if row is selected.
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).
createNodeForValue
protected VisibleTreeNode createNodeForValue(Object value,
int index)
- Responsible for creating a VisibleTreeNode that will be used
to track display information about value.
createLargeTreeModelNodeForValue
protected LargeTreeModelNode createLargeTreeModelNodeForValue(Object value,
int childIndex)
- Creates and returns an instance of LargeTreeModelNode.
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.
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.
getLargePathForRow
protected TreePath getLargePathForRow(int row)
- Returns the TreePath of the passed in row.
getLargeRowForPath
protected int getLargeRowForPath(Object[] path)
- Returns the row for the given TreePath.
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.
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.
createTreePathFor
protected AbstractTreePath createTreePathFor(VisibleTreeNode node)
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature