Class NopBindableModel

java.lang.Object
com.palantir.ptoss.cinch.core.NopBindableModel
All Implemented Interfaces:
BindableModel

public class NopBindableModel extends Object implements BindableModel
A BindableModel implementation which does nothing. Can be used as a superclass to an immutable class that needs to implement BindableModel.
  • Constructor Details

    • NopBindableModel

      public NopBindableModel()
  • Method Details

    • bind

      public void bind(Binding to)
      Description copied from interface: BindableModel
      Attach the binding to the model. Whenever the model is updated then the binding will be triggered.
      Specified by:
      bind in interface BindableModel
    • unbind

      public void unbind(Binding binding)
      Description copied from interface: BindableModel
      Removes the passed binding from this model.
      Specified by:
      unbind in interface BindableModel
    • modelUpdated

      public <T extends Enum<T> & ModelUpdate> void modelUpdated(T... changed)
      Description copied from interface: BindableModel
      Alert the bindings that the model has updated with the specified change types.
      Specified by:
      modelUpdated in interface BindableModel
      Parameters:
      changed - list of change types to indicate