|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.content.TreeViewNodeEditor
public class TreeViewNodeEditor
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.
Constructor Summary | |
---|---|
TreeViewNodeEditor()
|
Method Summary | |
---|---|
void |
cancel()
Cancels an edit that is in progress by reverting any edits the user has made. |
void |
edit(TreeView treeView,
Sequence.Tree.Path path)
Notifies the editor that editing should begin. |
protected TextInput |
getEditor()
Gets the text input that serves as the editor component. |
boolean |
isEditing()
Tells whether or not an edit is currently in progress. |
void |
save()
Saves an edit that is in progress by updating the appropriate data object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeViewNodeEditor()
Method Detail |
---|
protected final TextInput getEditor()
isEditing()
public void edit(TreeView treeView, Sequence.Tree.Path path)
edit
in interface TreeView.NodeEditor
treeView
- The tree view containing the node to be edited.path
- The path to the node to edit.TreeView.setNodeEditor(NodeEditor)
public boolean isEditing()
Editor
isEditing
in interface Editor
public void save()
save
in interface Editor
public void cancel()
Editor
cancel
in interface Editor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |