java.beans.PropertyChangeListener
, java.io.Serializable
, java.util.EventListener
, TreeNodeChangeListener
public class SimpleTreeNodeChangeListener extends java.lang.Object implements TreeNodeChangeListener, java.io.Serializable
TreeNodeChangeListener
writes
all the events to the standard out stream.Constructor | Description |
---|---|
SimpleTreeNodeChangeListener() |
Creates an
TreeNodeChangeListener that writes all events to the
standard output. |
Modifier and Type | Method | Description |
---|---|---|
org.apache.log4j.Logger |
getLogger() |
|
void |
nodeAdded(javax.swing.tree.TreeNode treeNode) |
The
TreeNode passed to this method has just been added to the
a containing element. |
void |
nodeRemoved(TreeNodeRemovedEvent evt) |
The
TreeNodeRemovedEvent passed to this method provides information
about the node that has been removed from a containing parent and does
hence no longer belong to the SBMLDocument anymore. |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
|
java.lang.String |
toString(java.beans.PropertyChangeEvent evt) |
public SimpleTreeNodeChangeListener()
TreeNodeChangeListener
that writes all events to the
standard output.public org.apache.log4j.Logger getLogger()
public void nodeAdded(javax.swing.tree.TreeNode treeNode)
TreeNodeChangeListener
TreeNode
passed to this method has just been added to the
a containing element.nodeAdded
in interface TreeNodeChangeListener
treeNode
- This element is now part of the SBMLDocument
.public void nodeRemoved(TreeNodeRemovedEvent evt)
TreeNodeChangeListener
TreeNodeRemovedEvent
passed to this method provides information
about the node that has been removed from a containing parent and does
hence no longer belong to the SBMLDocument
anymore. In addition, a
pointer to its previous parent is also provided. In this way, an
implementing class can identify the location within the tree where it was
before.nodeRemoved
in interface TreeNodeChangeListener
evt
- The event containing information about the removed TreeNode
.public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public java.lang.String toString(java.beans.PropertyChangeEvent evt)