|
JSR-209 (Final Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Pluggable look and feel interface for JTree.
Method Summary | |
void |
cancelEditing(JTree tree)
Cancels the current editing session. |
TreePath |
getClosestPathForLocation(JTree tree,
int x,
int y)
Returns the path to the node that is closest to x,y. |
TreePath |
getEditingPath(JTree tree)
Returns the path to the element that is being edited. |
Rectangle |
getPathBounds(JTree tree,
TreePath path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. |
TreePath |
getPathForRow(JTree tree,
int row)
Returns the path for passed in row. |
int |
getRowCount(JTree tree)
Returns the number of rows that are being displayed. |
int |
getRowForPath(JTree tree,
TreePath path)
Returns the row that the last item identified in path is visible at. |
boolean |
isEditing(JTree tree)
Returns true if the tree is being edited. |
void |
startEditingAtPath(JTree tree,
TreePath path)
Selects the last item in path and tries to edit it. |
boolean |
stopEditing(JTree tree)
Stops the current editing session. |
Method Detail |
public Rectangle getPathBounds(JTree tree, TreePath path)
public TreePath getPathForRow(JTree tree, int row)
public int getRowForPath(JTree tree, TreePath path)
public int getRowCount(JTree tree)
public TreePath getClosestPathForLocation(JTree tree, int x, int y)
public boolean isEditing(JTree tree)
public boolean stopEditing(JTree tree)
public void cancelEditing(JTree tree)
public void startEditingAtPath(JTree tree, TreePath path)
public TreePath getEditingPath(JTree tree)
|
JSR-209 (Final Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |