Interface ConfigurationNotificationEvent<VIEWT>

Type Parameters:
VIEWT - Type of the subtree or the value that has been changed.

public interface ConfigurationNotificationEvent<VIEWT>
Event object propagated on configuration change. Passed to listeners after configuration changes are applied.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    newName(Class<?> viewClass)
    Returns new value of the key of a named list item for the parent (any from the root) or current configuration.
    Returns updated value of the configuration.
    <T> T
    newValue(Class<T> viewClass)
    Returns new value of the parent (any from the root) or current configuration.
    @Nullable String
    oldName(Class<?> viewClass)
    Returns old value of the key of a named list item for the parent (any from the root) or current configuration.
    Returns the previous value of the updated configuration.
    <T> T
    oldValue(Class<T> viewClass)
    Returns old value of the parent (any from the root) or current configuration.
    long
    Returns monotonously increasing counter, linked to the specific storage for current configuration values.
  • Method Details

    • oldValue

      @Nullable VIEWT oldValue()
      Returns the previous value of the updated configuration.

      NOTE: For a new configuration/property will be null.

    • oldValue

      @Nullable <T> T oldValue(Class<T> viewClass)
      Returns old value of the parent (any from the root) or current configuration.

      For example, if we changed the child configuration, then we can get both the parent and the current child configuration.

      Type Parameters:
      T - Configuration type.
      Parameters:
      viewClass - Configuration interface, for example RootView.class.
    • newValue

      @Nullable VIEWT newValue()
      Returns updated value of the configuration.
    • newValue

      @Nullable <T> T newValue(Class<T> viewClass)
      Returns new value of the parent (any from the root) or current configuration.

      For example, if we changed the child configuration, then we can get both the parent and the current child configuration.

      Type Parameters:
      T - Configuration type.
      Parameters:
      viewClass - Configuration interface, for example RootView.class.
    • storageRevision

      long storageRevision()
      Returns monotonously increasing counter, linked to the specific storage for current configuration values. Gives a unique change identifier inside a specific configuration storage.
      Returns:
      Counter value.
    • oldName

      @Nullable @Nullable String oldName(Class<?> viewClass)
      Returns old value of the key of a named list item for the parent (any from the root) or current configuration.

      For example, if a column of a table has changed, then we can get the name of the table and columns for which the changes have occurred.

      Parameters:
      viewClass - Configuration interface, for example TableView.class.
    • newName

      @Nullable @Nullable String newName(Class<?> viewClass)
      Returns new value of the key of a named list item for the parent (any from the root) or current configuration.

      For example, if a column of a table has changed, then we can get the name of the table and columns for which the changes have occurred.

      Parameters:
      viewClass - Configuration interface, for example TableView.class.