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 SummaryConstructors 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 SummaryAll 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- 
RMPropertyChangeEventpublic RMPropertyChangeEvent(java.lang.Object aSource, java.lang.String aProperty, java.lang.Object oldValue, java.lang.Object newValue, int anIndex)Creates a property change event.
 - 
RMPropertyChangeEventpublic RMPropertyChangeEvent(java.lang.Object aParent, java.beans.PropertyChangeEvent anEvent)Creates a shape property change event.
 
- 
 - 
Method Detail- 
getParentpublic java.lang.Object getParent() Returns parent if this change is forwarded from a parent object.
 - 
getEventpublic static RMPropertyChangeEvent getEvent(java.util.EventObject anEvent) Returns the given EventObject as a shape property change event.
 - 
undoChangepublic void undoChange() Undoes this change.
 - 
redoChangepublic void redoChange() Redoes this change.
 - 
doChangeprotected void doChange(java.lang.Object oldValue, java.lang.Object newValue)Does this change with given new/old values.
 - 
mergepublic RMPropertyChangeEvent merge(RMPropertyChangeEvent anEvent) Attempts to merge the given property change into this property change.
 - 
toStringpublic java.lang.String toString() Simple to string.- Overrides:
- toStringin class- java.beans.PropertyChangeEvent
 
 
- 
 
-