Package com.inductiveautomation.rm.base
Class RMPropertyChangeEvent
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
java.beans.IndexedPropertyChangeEvent
com.inductiveautomation.rm.base.RMPropertyChangeEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RMXString.CharsChange
,RMXString.StyleChange
,TextRun.CharsChange
An (Indexed) PropertyChangeEvent subclass to describe shape property changes. Index should be less than zero if not
really an indexed property change.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionRMPropertyChangeEvent
(Object aParent, PropertyChangeEvent anEvent) Creates a shape property change event.RMPropertyChangeEvent
(Object aSource, String aProperty, Object oldValue, Object newValue, int anIndex) Creates a property change event. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Does this change with given new/old values.static RMPropertyChangeEvent
getEvent
(EventObject anEvent) Returns the given EventObject as a shape property change event.Returns parent if this change is forwarded from a parent object.merge
(RMPropertyChangeEvent anEvent) Attempts to merge the given property change into this property change.void
Redoes this change.toString()
Simple to string.void
Undoes this change.Methods inherited from class java.beans.IndexedPropertyChangeEvent
getIndex
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
Method Details
-
getParent
Returns parent if this change is forwarded from a parent object. -
getEvent
Returns the given EventObject as a shape property change event. -
undoChange
public void undoChange()Undoes this change. -
redoChange
public void redoChange()Redoes this change. -
doChange
Does this change with given new/old values. -
merge
Attempts to merge the given property change into this property change. -
toString
Simple to string.- Overrides:
toString
in classPropertyChangeEvent
-