API for seesaw.tree - Seesaw


Full namespace name: seesaw.tree

Overview





Public Variables and Functions



fire-event*

function
Usage: (fire-event* this event-type event)
Dispatches a TreeModelEvent to all model listeners. event-type is one of
 :tree-nodes-changed, :tree-nodes-inserted, :tree-nodes-removed or
 :tree-structure-changed. Note, do not use this function directly.
Instead use one of the helper functions in (seesaw.tree).


node-changed

function
Usage: (node-changed tree-model node-path)
Fire a node changed event. parent-path is the path to the parent of the
changed node. child is the changed node.

Fire this event if the appearance of a node has changed in any way.

See:
  (seesaw.tree/nodes-changed)
  (seesaw.tree/simple-tree-model)


node-inserted

function
Usage: (node-inserted tree-model node-path)
Fire a node insertion event. parent-path is the path to the parent of the
newly inserted child. child is the newly inserted node.

See:
  (seesaw.tree/nodes-inserted)
  (seesaw.tree/simple-tree-model)


node-removed

function
Usage: (node-removed tree-model parent-path index child)
Fire a node removed event on a tree model created with 
(simple-tree-model). parent-path is the path to the parent node,
index is the index of the removed node and child is the removed node.

See:
  (seesaw.tree/nodes-removed)
  (seesaw.tree/simple-tree-model)


node-structure-changed

function
Usage: (node-structure-changed tree-model node-path)
Fire a node structure changed event on a tree model created with 
(simple-tree-model). node-path is the sequence of nodes from the model
root to the node whose structure changed.

Call this when the entire structure under a node has changed.

See:
  (seesaw.tree/simple-tree-model)


nodes-changed

function
Usage: (nodes-changed tree-model parent-path children)
Fire a node changed event. parent-path is the path to the parent of the
changed children. children is the changed nodes.

Fire this event if the appearance of a node has changed in any way.

See:
  (seesaw.tree/node-changed)
  (seesaw.tree/simple-tree-model)


nodes-inserted

function
Usage: (nodes-inserted tree-model parent-path children)
Fire a node insertion event. parent-path is the path to the parent of the
newly inserted children. children is the newly inserted nodes.

See:
  (seesaw.tree/node-inserted)
  (seesaw.tree/simple-tree-model)


nodes-removed

function
Usage: (nodes-removed tree-model parent-path indices children)
Fire a node removed event on a tree model created with 
(simple-tree-model). parent-path is the path to the parent node,
indices is a seq of the indices of the removed nodes and children
is a seq of the removed nodes.

See:
  (seesaw.tree/simple-tree-model)
  (seesaw.tree/node-removed)


simple-tree-model

function
Usage: (simple-tree-model branch? children root)
Create a simple, read-only TreeModel for use with seesaw.core/tree.
 The arguments are the same as clojure.core/tree-seq. Changes to the
underlying model can be reported with the various node-xxx event
functions in seesaw.tree.

See:
  http://docs.oracle.com/javase/6/docs/api/javax/swing/tree/TreeModel.html
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.