|
instrument/JTree API Documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a specialized user object for use in conjunction with
MutableTreeNode
or DefaultMutableTreeNode
type tree nodes.
Objects implementing NodeInfo
are useful when you want to
build instrumented trees with specialized tree nodes. While you
will be best served to use DefaultMutableTreeNode
type nodes,
the NodeInfo
interface
gives you complete freedom in what kind of
user objects to put into those nodes.
You will often want your NodeInfo
classes to also implement Copyable
.
This will allow undo/redo and copy/paste to function properly in the
instrumented tree.
NodeInfo
,
Copyable
Method Summary | |
java.lang.String |
getContents()
Returns the contents of the node encoded as text |
java.lang.Object |
getContentsModel()
Returns the data model of the contents |
java.lang.String |
getTitle()
Returns the title of this node as a human-presentable string |
Method Detail |
public java.lang.String getTitle()
public java.lang.String getContents()
public java.lang.Object getContentsModel()
|
instrument/JTree API Documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |