Class WSOptionChangedEvent

java.lang.Object
ro.sync.exml.workspace.api.options.WSOptionChangedEvent

@API(type=NOT_EXTENDABLE, src=PUBLIC) public class WSOptionChangedEvent extends Object
Represents an event which indicates that the value of an option has been changed.
  • Constructor Details

    • WSOptionChangedEvent

      public WSOptionChangedEvent(String optionKey, String oldValue, String newValue)
      The constructor of the option changed event.
      Parameters:
      optionKey - The identification key of the option whose value modification generated this event.
      oldValue - The old value of the option.
      newValue - The new value of the option. When the entire set of Oxygen preferences is reset by the end user, the reported old value will be equal to the new value as the global reset no longer retains the state of the value before the reset...
    • WSOptionChangedEvent

      public WSOptionChangedEvent(String optionKey, Object oldValue, Object newValue)
      The constructor of the option changed event.
      Parameters:
      optionKey - The identification key of the option whose value modification generated this event.
      oldValue - The old value of the option.
      newValue - The new value of the option. When the entire set of Oxygen preferences is reset by the end user, the reported old value will be equal to the new value as the global reset no longer retains the state of the value before the reset...
  • Method Details

    • getOptionKey

      public String getOptionKey()
      Returns:
      Returns the identification key of the option associated with this event.
    • getOldValue

      @Deprecated public String getOldValue()
      Deprecated.
      The value may not be a plain String, use the "getOldValueObject" instead
      Returns:
      Returns the old value of the option associated with this event.
    • getOldValueObject

      public Object getOldValueObject()
      Returns:
      Returns the old value of the option associated with this event.
      Since:
      21.1
    • getNewValue

      @Deprecated public String getNewValue()
      Deprecated.
      The value may not be a plain String, use the "getNewValueObject" instead
      Returns:
      Returns the new value of the option associated with this event.
    • getNewValueObject

      public Object getNewValueObject()
      Returns:
      Returns the new value of the option associated with this event.
      Since:
      21.1