|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
tudresden.ocl.injection.reverseeng.RevengTreeNode
Abstract super class for each node in the treeview.
Nested Class Summary |
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
Field Summary | |
private DefaultTreeModel |
m_dtmModel
The model which this node is part of. |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
RevengTreeNode(DefaultTreeModel dtmModel)
Create a new RevengTreeNode. |
Method Summary | |
boolean |
canRootExplorer()
True, if RevengGUI can root its explorer in this node. |
void |
collapsed()
Called to indicate that the node was just collapsed. |
RevengTreeNode |
createLogicalParent()
Return a RevengTreeNode that represents the logical parent layer to this node. |
abstract void |
fill()
Fill in the children of this node. |
abstract Icon |
getIcon(boolean fExpanded)
Return the icon associated with the tree node. |
protected DefaultTreeModel |
getModel()
Retrieve the model to which this node belongs. |
List |
getPropertyPages()
Get the property panes to be shown in the right hand panel of the GUI. |
String |
getToolTip()
Return the tool tip to be associated with this node. |
boolean |
isDirty()
Return true, if the node is part of a file that needs to be saved. |
protected void |
nodeChanged()
Thread-safe invocation of getModel().nodeChanged (this); |
protected void |
nodeStructureChanged()
Thread-safe invocation of getModel().nodeStructureChanged (this); |
void |
onDescriptorModified(AbstractDescriptor.AbstractDescriptorEvent ade)
|
void |
save()
Save the file to which this node belongs. |
void |
setModified()
Notification that the data underlying this node has changed. |
void |
startDirtyChangeNotification(RevengGUI rguiObserver)
Start to call rguiObserver's onDirtyChanged method whenever the dirty state of this node changes. |
void |
stopDirtyChangeNotification()
Stop calling rguiObserver's onDirtyChanged method whenever the dirty state of this node changes. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private DefaultTreeModel m_dtmModel
Constructor Detail |
public RevengTreeNode(DefaultTreeModel dtmModel)
dtmModel
- the model which this node is part of. Must not be null!Method Detail |
protected DefaultTreeModel getModel()
public abstract Icon getIcon(boolean fExpanded)
fExpanded
- if true, the node is currently expanded.public abstract void fill()
public void collapsed()
public List getPropertyPages()
public void setModified()
protected void nodeChanged()
protected void nodeStructureChanged()
public String getToolTip()
public boolean isDirty()
public void startDirtyChangeNotification(RevengGUI rguiObserver)
public void stopDirtyChangeNotification()
public void save() throws IOException
IOException
public void onDescriptorModified(AbstractDescriptor.AbstractDescriptorEvent ade)
onDescriptorModified
in interface AbstractDescriptor.AbstractDescriptorListener
public boolean canRootExplorer()
public RevengTreeNode createLogicalParent()
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |