Class RMPropertyChangeEvent

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RMXString.CharsChange, RMXString.StyleChange, TextRun.CharsChange

public class RMPropertyChangeEvent extends IndexedPropertyChangeEvent
An (Indexed) PropertyChangeEvent subclass to describe shape property changes. Index should be less than zero if not really an indexed property change.
See Also:
  • Constructor Details

    • RMPropertyChangeEvent

      public RMPropertyChangeEvent(Object aSource, String aProperty, Object oldValue, Object newValue, int anIndex)
      Creates a property change event.
    • RMPropertyChangeEvent

      public RMPropertyChangeEvent(Object aParent, PropertyChangeEvent anEvent)
      Creates a shape property change event.
  • Method Details

    • getParent

      public Object getParent()
      Returns parent if this change is forwarded from a parent object.
    • getEvent

      public static RMPropertyChangeEvent getEvent(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(Object oldValue, Object newValue)
      Does this change with given new/old values.
    • merge

      Attempts to merge the given property change into this property change.
    • toString

      public String toString()
      Simple to string.
      Overrides:
      toString in class PropertyChangeEvent