Pluggable look and feel interface for JTree.
Pluggable look and feel interface for JTree.
(cancel-editing this tree)
Cancels the current editing session. This has no effect if the tree isn't being edited. Returns true if the editor allows the editing session to stop.
tree - javax.swing.JTree
Cancels the current editing session. This has no effect if the tree isn't being edited. Returns true if the editor allows the editing session to stop. tree - `javax.swing.JTree`
(editing? this tree)
Returns true if the tree is being edited. The item that is being edited can be returned by getEditingPath().
tree - javax.swing.JTree
returns: boolean
Returns true if the tree is being edited. The item that is being edited can be returned by getEditingPath(). tree - `javax.swing.JTree` returns: `boolean`
(get-closest-path-for-location this tree x 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.
tree - javax.swing.JTree
x - int
y - int
returns: javax.swing.tree.TreePath
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. tree - `javax.swing.JTree` x - `int` y - `int` returns: `javax.swing.tree.TreePath`
(get-editing-path this tree)
Returns the path to the element that is being edited.
tree - javax.swing.JTree
returns: javax.swing.tree.TreePath
Returns the path to the element that is being edited. tree - `javax.swing.JTree` returns: `javax.swing.tree.TreePath`
(get-path-bounds this tree 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.
tree - javax.swing.JTree
path - javax.swing.tree.TreePath
returns: java.awt.Rectangle
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. tree - `javax.swing.JTree` path - `javax.swing.tree.TreePath` returns: `java.awt.Rectangle`
(get-path-for-row this tree row)
Returns the path for passed in row. If row is not visible null is returned.
tree - javax.swing.JTree
row - int
returns: javax.swing.tree.TreePath
Returns the path for passed in row. If row is not visible null is returned. tree - `javax.swing.JTree` row - `int` returns: `javax.swing.tree.TreePath`
(get-row-count this tree)
Returns the number of rows that are being displayed.
tree - javax.swing.JTree
returns: int
Returns the number of rows that are being displayed. tree - `javax.swing.JTree` returns: `int`
(get-row-for-path this tree 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.
tree - javax.swing.JTree
path - javax.swing.tree.TreePath
returns: int
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. tree - `javax.swing.JTree` path - `javax.swing.tree.TreePath` returns: `int`
(start-editing-at-path this tree path)
Selects the last item in path and tries to edit it. Editing will fail if the CellEditor won't allow it for the selected item.
tree - javax.swing.JTree
path - javax.swing.tree.TreePath
Selects the last item in path and tries to edit it. Editing will fail if the CellEditor won't allow it for the selected item. tree - `javax.swing.JTree` path - `javax.swing.tree.TreePath`
(stop-editing this tree)
Stops the current editing session. This has no effect if the tree isn't being edited. Returns true if the editor allows the editing session to stop.
tree - javax.swing.JTree
returns: boolean
Stops the current editing session. This has no effect if the tree isn't being edited. Returns true if the editor allows the editing session to stop. tree - `javax.swing.JTree` returns: `boolean`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close