Package jadex.commons
Class SimplePropertyChangeSupport
- java.lang.Object
-
- jadex.commons.SimplePropertyChangeSupport
-
- All Implemented Interfaces:
java.io.Serializable
public class SimplePropertyChangeSupport extends java.lang.Object implements java.io.Serializable
This class offers part of the functionality of the original Java-PropertyChangeSupport class. It had to be rewritten in order to support the bytecode enhancements of javaflow- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimplePropertyChangeSupport(java.lang.Object sourceBean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.void
firePropertyChange(PropertyChangeEvent evt)
Fire an existing PropertyChangeEvent to any registered listeners.void
firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
Report an int bound property update to any registered listeners.void
firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Report a bound property update to any registered listeners.void
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
-
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.- Parameters:
listener
- The PropertyChangeListener to be added.
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.- Parameters:
listener
- The PropertyChangeListener to be removed.
-
firePropertyChange
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Report a bound property update to any registered listeners. No event is fired if old and new are equal and non-null.- Parameters:
propertyName
- The programmatic name of the property that was changed.oldValue
- The old value of the property.newValue
- The new value of the property.
-
firePropertyChange
public void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
Report an int bound property update to any registered listeners. No event is fired if old and new are equal and non-null.- Parameters:
propertyName
- The programmatic name of the property that was changed.oldValue
- The old value of the property.newValue
- The new value of the property.
-
firePropertyChange
public void firePropertyChange(PropertyChangeEvent evt)
Fire an existing PropertyChangeEvent to any registered listeners. No event is fired if the given event's old and new values are equal and non-null.- Parameters:
evt
- The PropertyChangeEvent object.
-
-