Package com.inductiveautomation.rm.base
Class RMPropertyChangeUtils
- java.lang.Object
-
- com.inductiveautomation.rm.base.RMPropertyChangeUtils
-
public class RMPropertyChangeUtils extends java.lang.ObjectUtilities for property changes.
-
-
Constructor Summary
Constructors Constructor Description RMPropertyChangeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddoChange(java.lang.Object aSource, java.lang.String aProperty, java.lang.Object oldValue, java.lang.Object newValue, int anIndex)Performs the given change by using RMKey.setValue or RMKeyList add/remove.static voiddoChanges(java.lang.Object aSource, java.util.List<java.beans.PropertyChangeEvent> theChanges)Performs a list of changes.static voiddoChanges(java.util.List<java.beans.PropertyChangeEvent> theChanges)Performs a list of changes.static intgetIndex(java.beans.PropertyChangeEvent anEvent)Returns the index for a property change event (assuming it's indexed).static java.lang.ObjectgetParent(java.beans.PropertyChangeEvent anEvent)Returns the parent for a property change event (assuming it's forwarded from a parent).static java.beans.PropertyChangeEventmerge(java.beans.PropertyChangeEvent anEvent1, java.beans.PropertyChangeEvent anEvent2)Attempts to merge the second property change into the first property change.static RMPropertyChangeEventmergeImpl(java.beans.PropertyChangeEvent anEvent1, java.beans.PropertyChangeEvent anEvent2)Attempts to merge the second property change into the first property change.static voidredoChange(java.beans.PropertyChangeEvent anEvent)Re-performs the given change.static voidredoChange(java.lang.Object aSource, java.beans.PropertyChangeEvent anEvent)Re-performs the given change on the given object.static voidundoChange(java.beans.PropertyChangeEvent anEvent)Reverses the given change.static voidundoChange(java.lang.Object aSource, java.beans.PropertyChangeEvent anEvent)Reverses the given change.static voidundoChanges(java.lang.Object aSource, java.util.List<java.beans.PropertyChangeEvent> theChanges)Reverts a list of changes.static voidundoChanges(java.util.List<java.beans.PropertyChangeEvent> theChanges)Reverts a list of changes.
-
-
-
Method Detail
-
getParent
public static java.lang.Object getParent(java.beans.PropertyChangeEvent anEvent)
Returns the parent for a property change event (assuming it's forwarded from a parent).
-
getIndex
public static int getIndex(java.beans.PropertyChangeEvent anEvent)
Returns the index for a property change event (assuming it's indexed).
-
undoChange
public static void undoChange(java.beans.PropertyChangeEvent anEvent)
Reverses the given change.
-
undoChange
public static void undoChange(java.lang.Object aSource, java.beans.PropertyChangeEvent anEvent)Reverses the given change.
-
redoChange
public static void redoChange(java.beans.PropertyChangeEvent anEvent)
Re-performs the given change.
-
redoChange
public static void redoChange(java.lang.Object aSource, java.beans.PropertyChangeEvent anEvent)Re-performs the given change on the given object.
-
doChanges
public static void doChanges(java.util.List<java.beans.PropertyChangeEvent> theChanges)
Performs a list of changes.
-
doChanges
public static void doChanges(java.lang.Object aSource, java.util.List<java.beans.PropertyChangeEvent> theChanges)Performs a list of changes.
-
undoChanges
public static void undoChanges(java.util.List<java.beans.PropertyChangeEvent> theChanges)
Reverts a list of changes.
-
undoChanges
public static void undoChanges(java.lang.Object aSource, java.util.List<java.beans.PropertyChangeEvent> theChanges)Reverts a list of changes.
-
doChange
public static void doChange(java.lang.Object aSource, java.lang.String aProperty, java.lang.Object oldValue, java.lang.Object newValue, int anIndex)Performs the given change by using RMKey.setValue or RMKeyList add/remove.
-
merge
public static java.beans.PropertyChangeEvent merge(java.beans.PropertyChangeEvent anEvent1, java.beans.PropertyChangeEvent anEvent2)Attempts to merge the second property change into the first property change.
-
mergeImpl
public static RMPropertyChangeEvent mergeImpl(java.beans.PropertyChangeEvent anEvent1, java.beans.PropertyChangeEvent anEvent2)
Attempts to merge the second property change into the first property change.
-
-