Liking cljdoc? Tell your friends :D

javax.swing.plaf.TreeUI

Pluggable look and feel interface for JTree.

Pluggable look and feel interface for JTree.
raw docstring

->tree-uiclj

(->tree-ui)

Constructor.

Constructor.
raw docstring

cancel-editingclj

(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`
raw docstring

editing?clj

(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`
raw docstring

get-closest-path-for-locationclj

(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`
raw docstring

get-editing-pathclj

(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`
raw docstring

get-path-boundsclj

(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`
raw docstring

get-path-for-rowclj

(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`
raw docstring

get-row-countclj

(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`
raw docstring

get-row-for-pathclj

(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`
raw docstring

start-editing-at-pathclj

(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`
raw docstring

stop-editingclj

(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`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close