pivot.wtk.content
Class TreeViewNodeEditor

java.lang.Object
  extended by pivot.wtk.content.TreeViewNodeEditor
All Implemented Interfaces:
Editor, TreeView.NodeEditor

public class TreeViewNodeEditor
extends java.lang.Object
implements TreeView.NodeEditor

Default tree view node editor, which allows the user to edit the text of a tree node in a TextInput. It is only intended to work with TreeNode data and TreeViewNodeRenderer renderers.

Author:
tvolkert

Constructor Summary
TreeViewNodeEditor()
           
 
Method Summary
 void cancel()
           
 void edit(TreeView treeView, Sequence<java.lang.Integer> path)
          Notifies the editor that editing should begin.
 boolean isEditing()
           
 void save()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeViewNodeEditor

public TreeViewNodeEditor()
Method Detail

edit

public void edit(TreeView treeView,
                 Sequence<java.lang.Integer> path)
Description copied from interface: TreeView.NodeEditor
Notifies the editor that editing should begin.

Specified by:
edit in interface TreeView.NodeEditor
Parameters:
treeView - The tree view containing the node to be edited.
path - The path to the node to edit.

isEditing

public boolean isEditing()
Specified by:
isEditing in interface Editor

save

public void save()
Specified by:
save in interface Editor

cancel

public void cancel()
Specified by:
cancel in interface Editor