com.pnp.xfeature.editparts
Class FeatureNodeTreeEditPart

java.lang.Object
  extended by AbstractTreeEditPart
      extended by com.pnp.xfeature.editparts.FeatureNodeTreeEditPart
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class FeatureNodeTreeEditPart
extends AbstractTreeEditPart
implements java.beans.PropertyChangeListener

Editpart that controls nodes of tree outline view.

Author:
Ondrej Rohlik, 27.1.2005

Constructor Summary
FeatureNodeTreeEditPart(FeatureNodeModel model)
          cals superclass implementation
 
Method Summary
 void activate()
          Upon activation, attach to the model element as a property change listener.
 boolean addChildNode(FeatureNodeModel fnm)
          traverses the tree to find the FeatureDiagramTreeEditPart with model that has id equal to parentId and adds the paremeter to the tree as a child of this edit part
 void deactivate()
          Upon deactivation, detach from the model element as a property change listener.
 FeatureNodeModel getCastedModel()
          return the the featre model typed as FeatureNodeModel
 void propertyChange(java.beans.PropertyChangeEvent event)
          updates the tree item on name change or on insertion of new node
 boolean removeChildNode(FeatureNodeModel fnm)
          traverse the tree to find the FeatureDiagramTreeEditPart with model that has id equal to parentId and removes this feature node
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureNodeTreeEditPart

public FeatureNodeTreeEditPart(FeatureNodeModel model)
cals superclass implementation

Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
updates the tree item on name change or on insertion of new node

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

activate

public void activate()
Upon activation, attach to the model element as a property change listener.


deactivate

public void deactivate()
Upon deactivation, detach from the model element as a property change listener.


getCastedModel

public FeatureNodeModel getCastedModel()
return the the featre model typed as FeatureNodeModel


addChildNode

public boolean addChildNode(FeatureNodeModel fnm)
traverses the tree to find the FeatureDiagramTreeEditPart with model that has id equal to parentId and adds the paremeter to the tree as a child of this edit part


removeChildNode

public boolean removeChildNode(FeatureNodeModel fnm)
traverse the tree to find the FeatureDiagramTreeEditPart with model that has id equal to parentId and removes this feature node



Copyright © 2004 - 2008 ETH Zurich and P&P Software GmbH, All Rights Reserved.