Package com.nomagic.uml2.ext.jmi
Class ModelPropertyChangeListeners
- java.lang.Object
-
- com.nomagic.uml2.ext.jmi.ModelPropertyChangeListeners
-
public class ModelPropertyChangeListeners extends java.lang.Object
API For adding/removing notifying uml property change listeners.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ModelPropertyChangeListeners.ListenerContainer
class
ModelPropertyChangeListeners.ListenerContainerSet
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener listener, javax.jmi.reflect.RefObject attachTo, java.lang.String propertyName)
java.util.Collection<java.beans.PropertyChangeListener>
getAllListeners()
Gets all registered listenersvoid
notifyListeners(java.beans.PropertyChangeEvent event)
void
removeAllPropertyChangeListeners(javax.jmi.reflect.RefObject removeFrom)
void
removeListener(java.beans.PropertyChangeListener listener)
void
removePropertyChangeListener(java.beans.PropertyChangeListener listener, javax.jmi.reflect.RefObject removeFrom, java.lang.String propertyName)
-
-
-
Method Detail
-
notifyListeners
public void notifyListeners(java.beans.PropertyChangeEvent event)
-
getAllListeners
public java.util.Collection<java.beans.PropertyChangeListener> getAllListeners()
Gets all registered listeners- Returns:
- collection of registered listeners
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener, @CheckForNull javax.jmi.reflect.RefObject attachTo, @CheckForNull java.lang.String propertyName)
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener, @CheckForNull javax.jmi.reflect.RefObject removeFrom, @CheckForNull java.lang.String propertyName)
- Parameters:
listener
- listenerremoveFrom
- element which events listener do not want to listen. In case null remove listeners all events from repositorypropertyName
- name of the property
-
removeAllPropertyChangeListeners
public void removeAllPropertyChangeListeners(javax.jmi.reflect.RefObject removeFrom)
-
removeListener
public void removeListener(java.beans.PropertyChangeListener listener)
-
-