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:
java.io.Serializable
- Direct Known Subclasses:
RMXString.CharsChange,RMXString.StyleChange,TextRun.CharsChange
public class RMPropertyChangeEvent extends java.beans.IndexedPropertyChangeEventAn (Indexed) PropertyChangeEvent subclass to describe shape property changes. Index should be less than zero if not really an indexed property change.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RMPropertyChangeEvent(java.lang.Object aParent, java.beans.PropertyChangeEvent anEvent)Creates a shape property change event.RMPropertyChangeEvent(java.lang.Object aSource, java.lang.String aProperty, java.lang.Object oldValue, java.lang.Object newValue, int anIndex)Creates a property change event.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoChange(java.lang.Object oldValue, java.lang.Object newValue)Does this change with given new/old values.static RMPropertyChangeEventgetEvent(java.util.EventObject anEvent)Returns the given EventObject as a shape property change event.java.lang.ObjectgetParent()Returns parent if this change is forwarded from a parent object.RMPropertyChangeEventmerge(RMPropertyChangeEvent anEvent)Attempts to merge the given property change into this property change.voidredoChange()Redoes this change.java.lang.StringtoString()Simple to string.voidundoChange()Undoes this change.
-
-
-
Constructor Detail
-
RMPropertyChangeEvent
public RMPropertyChangeEvent(java.lang.Object aSource, java.lang.String aProperty, java.lang.Object oldValue, java.lang.Object newValue, int anIndex)Creates a property change event.
-
RMPropertyChangeEvent
public RMPropertyChangeEvent(java.lang.Object aParent, java.beans.PropertyChangeEvent anEvent)Creates a shape property change event.
-
-
Method Detail
-
getParent
public java.lang.Object getParent()
Returns parent if this change is forwarded from a parent object.
-
getEvent
public static RMPropertyChangeEvent getEvent(java.util.EventObject anEvent)
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
protected void doChange(java.lang.Object oldValue, java.lang.Object newValue)Does this change with given new/old values.
-
merge
public RMPropertyChangeEvent merge(RMPropertyChangeEvent anEvent)
Attempts to merge the given property change into this property change.
-
toString
public java.lang.String toString()
Simple to string.- Overrides:
toStringin classjava.beans.PropertyChangeEvent
-
-