Package com.inductiveautomation.rm.base
Class RMPropertyChangeUtils
java.lang.Object
com.inductiveautomation.rm.base.RMPropertyChangeUtils
Utilities for property changes.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidPerforms the given change by using RMKey.setValue or RMKeyList add/remove.static voiddoChanges(Object aSource, List<PropertyChangeEvent> theChanges) Performs a list of changes.static voiddoChanges(List<PropertyChangeEvent> theChanges) Performs a list of changes.static intgetIndex(PropertyChangeEvent anEvent) Returns the index for a property change event (assuming it's indexed).static ObjectgetParent(PropertyChangeEvent anEvent) Returns the parent for a property change event (assuming it's forwarded from a parent).static PropertyChangeEventmerge(PropertyChangeEvent anEvent1, PropertyChangeEvent anEvent2) Attempts to merge the second property change into the first property change.static RMPropertyChangeEventmergeImpl(PropertyChangeEvent anEvent1, PropertyChangeEvent anEvent2) Attempts to merge the second property change into the first property change.static voidredoChange(PropertyChangeEvent anEvent) Re-performs the given change.static voidredoChange(Object aSource, PropertyChangeEvent anEvent) Re-performs the given change on the given object.static voidundoChange(PropertyChangeEvent anEvent) Reverses the given change.static voidundoChange(Object aSource, PropertyChangeEvent anEvent) Reverses the given change.static voidundoChanges(Object aSource, List<PropertyChangeEvent> theChanges) Reverts a list of changes.static voidundoChanges(List<PropertyChangeEvent> theChanges) Reverts a list of changes.
- 
Constructor Details- 
RMPropertyChangeUtilspublic RMPropertyChangeUtils()
 
- 
- 
Method Details- 
getParentReturns the parent for a property change event (assuming it's forwarded from a parent).
- 
getIndexReturns the index for a property change event (assuming it's indexed).
- 
undoChangeReverses the given change.
- 
undoChangeReverses the given change.
- 
redoChangeRe-performs the given change.
- 
redoChangeRe-performs the given change on the given object.
- 
doChangesPerforms a list of changes.
- 
doChangesPerforms a list of changes.
- 
undoChangesReverts a list of changes.
- 
undoChangesReverts a list of changes.
- 
doChangepublic static void doChange(Object aSource, String aProperty, Object oldValue, Object newValue, int anIndex) Performs the given change by using RMKey.setValue or RMKeyList add/remove.
- 
mergeAttempts to merge the second property change into the first property change.
- 
mergeImplpublic static RMPropertyChangeEvent mergeImpl(PropertyChangeEvent anEvent1, PropertyChangeEvent anEvent2) Attempts to merge the second property change into the first property change.
 
-