|
instrument/JTree API Documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.pvv.bcd.instrument.JTree.DefaultNodeInfo
Default implementation of the info present on a single node.
It bases its contents model on a DefaultStyledDocument.
DefaultStyledDocument, Serialized Form| Fields inherited from interface org.pvv.bcd.instrument.JTree.DragOverData |
DRAG_BOTTOM, DRAG_CENTER, DRAG_NONE, DRAG_TOP |
| Constructor Summary | |
DefaultNodeInfo()
Creates a new default node. |
|
DefaultNodeInfo(NodeInfo ni)
Copy constructor. |
|
DefaultNodeInfo(java.lang.String newhead)
Creates a new node with the given title and an empty string for contents. |
|
DefaultNodeInfo(java.lang.String newhead,
java.lang.String newtxt)
Creates a new node with the given title and textual contents. |
|
| Method Summary | |
Copyable |
copy()
Makes a new copy of myself. |
void |
copyFrom(NodeInfo ni)
Fills data into myself from another node. |
java.lang.String |
getContents()
Retrieves the textual representation of the contents model. |
java.lang.Object |
getContentsModel()
Returns the data model of the node contents. |
int |
getCurrentEffect()
Retrieves the current drag-over effect for this node. |
java.lang.String |
getTitle()
Returns the title of the node. |
void |
setContents(java.lang.String newtxt)
Sets the contents by specifying its textual contents. |
void |
setCurrentEffect(int effect)
Sets the current drag-over effect for this node. |
void |
setTitle(java.lang.String newhead)
Sets my title. |
java.lang.String |
toString()
Returns my title. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultNodeInfo()
public DefaultNodeInfo(java.lang.String newhead)
newhead - Name for new node
public DefaultNodeInfo(java.lang.String newhead,
java.lang.String newtxt)
newhead - Name for new nodenewtxt - Textual content of new nodepublic DefaultNodeInfo(NodeInfo ni)
ni - Node to copy| Method Detail |
public java.lang.String getContents()
getContents in interface NodeInfopublic void setContents(java.lang.String newtxt)
newtxt - New textual contentspublic java.lang.Object getContentsModel()
DefaultStyledDocument.getContentsModel in interface NodeInfopublic java.lang.String getTitle()
getTitle in interface NodeInfopublic void copyFrom(NodeInfo ni)
ni - Node to copy frompublic void setTitle(java.lang.String newhead)
newhead - New titlepublic java.lang.String toString()
toString in class java.lang.Objectpublic Copyable copy()
copy in interface Copyablepublic int getCurrentEffect()
getCurrentEffect in interface DragOverDatapublic void setCurrentEffect(int effect)
setCurrentEffect in interface DragOverDataeffect - New drag-over effect.
|
instrument/JTree API Documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||