org.argouml.model.uml
Class ExplorerNSUMLEventAdaptor

java.lang.Object
  extended byjava.beans.PropertyChangeSupport
      extended byorg.argouml.model.uml.ExplorerNSUMLEventAdaptor
All Implemented Interfaces:
java.util.EventListener, ru.novosoft.uml.MElementListener, java.io.Serializable

public class ExplorerNSUMLEventAdaptor
extends java.beans.PropertyChangeSupport
implements ru.novosoft.uml.MElementListener

Event adaptor for the explorer to decouple the explorer from the nsuml model.

See Also:
Serialized Form

Field Summary
private static ExplorerNSUMLEventAdaptor instance
           
 
Fields inherited from class java.beans.PropertyChangeSupport
 
Constructor Summary
private ExplorerNSUMLEventAdaptor()
          Creates a new instance of ExplorerUMLEventAdaptor
 
Method Summary
private  void firePropertyChanged(java.lang.String propertyName, java.lang.Object source)
          source of the model element changed translates to the new value.
static ExplorerNSUMLEventAdaptor getInstance()
           
 void listRoleItemSet(ru.novosoft.uml.MElementEvent e)
          fires a umlModelStructureChanged event.
 void propertySet(ru.novosoft.uml.MElementEvent e)
          fires a modelElementChanged event.
 void recovered(ru.novosoft.uml.MElementEvent e)
          fires a modelElementAdded event.
 void removed(ru.novosoft.uml.MElementEvent e)
          Not used.
 void roleAdded(ru.novosoft.uml.MElementEvent e)
          fires a modelElementAdded event.
 void roleRemoved(ru.novosoft.uml.MElementEvent e)
          fires a modelElementRemoved event.
 
Methods inherited from class java.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static ExplorerNSUMLEventAdaptor instance
Constructor Detail

ExplorerNSUMLEventAdaptor

private ExplorerNSUMLEventAdaptor()
Creates a new instance of ExplorerUMLEventAdaptor

Method Detail

getInstance

public static ExplorerNSUMLEventAdaptor getInstance()

listRoleItemSet

public void listRoleItemSet(ru.novosoft.uml.MElementEvent e)
fires a umlModelStructureChanged event. If a element changes, this will be catched by this method and reflected in the tree.

Specified by:
listRoleItemSet in interface ru.novosoft.uml.MElementListener
See Also:
MElementListener.listRoleItemSet(ru.novosoft.uml.MElementEvent)

propertySet

public void propertySet(ru.novosoft.uml.MElementEvent e)
fires a modelElementChanged event. If a element changes, this will be catched by this method and reflected in the tree.

Specified by:
propertySet in interface ru.novosoft.uml.MElementListener
See Also:
MElementListener.propertySet(ru.novosoft.uml.MElementEvent)

recovered

public void recovered(ru.novosoft.uml.MElementEvent e)
fires a modelElementAdded event. If a element changes, this will be catched by this method and reflected in the tree.

Specified by:
recovered in interface ru.novosoft.uml.MElementListener
See Also:
MElementListener.recovered(ru.novosoft.uml.MElementEvent)

removed

public void removed(ru.novosoft.uml.MElementEvent e)
Not used. If a element changes, this will be catched by this method and reflected in the tree.

Specified by:
removed in interface ru.novosoft.uml.MElementListener
See Also:
MElementListener.removed(ru.novosoft.uml.MElementEvent)

roleAdded

public void roleAdded(ru.novosoft.uml.MElementEvent e)
fires a modelElementAdded event. If a element changes, this will be catched by this method and reflected in the tree.

Specified by:
roleAdded in interface ru.novosoft.uml.MElementListener
See Also:
MElementListener.roleAdded(ru.novosoft.uml.MElementEvent)

roleRemoved

public void roleRemoved(ru.novosoft.uml.MElementEvent e)
fires a modelElementRemoved event. removed value translates to the new value. If a element changes, this will be catched by this method and reflected in the tree.

Specified by:
roleRemoved in interface ru.novosoft.uml.MElementListener
See Also:
MElementListener.roleRemoved(ru.novosoft.uml.MElementEvent)

firePropertyChanged

private void firePropertyChanged(java.lang.String propertyName,
                                 java.lang.Object source)
source of the model element changed translates to the new value.



ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook