Enum Class ModelUpdates

java.lang.Object
java.lang.Enum<ModelUpdates>
com.palantir.ptoss.cinch.core.ModelUpdates
All Implemented Interfaces:
ModelUpdate, Serializable, Comparable<ModelUpdates>, Constable

public enum ModelUpdates extends Enum<ModelUpdates> implements ModelUpdate
Pre-defined ModelUpdate types with special meanings to the framework.
See Also:
  • Enum Constant Details

    • UNSPECIFIED

      public static final ModelUpdates UNSPECIFIED

      This is used for unspecified update types in the default implementations of BindableModel. Listeners that don't have a specified "on" parameter should react to these model updates.

      Note: when bound to a specific ModelUpdate, a control will not receive updates not sent specifically to any ModelUpdate - i.e. default updates. To selectively answer a specific ModelUpdate and also still get default notifications, add UNSPECIFIED to the list of ModelUpdates passed to Bound.on().

      See Also:
    • ALL

      public static final ModelUpdates ALL
      This is used to sync all listeners. All listeners, regardless of whether they have an "on" parameter, should react to these model updates.
    • DATA

      public static final ModelUpdates DATA
      You can use this to mean data, as opposed to meta-data. No special meaning to the framework.
    • META

      public static final ModelUpdates META
      This can be used to separate data from meta-data. No special meaning to the framework.
  • Method Details

    • values

      public static ModelUpdates[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ModelUpdates valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null