Class NopBindableModel

  • All Implemented Interfaces:
    BindableModel

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(Binding to)
      Attach the binding to the model.
      <T extends java.lang.Enum<T> & ModelUpdate>
      void
      modelUpdated​(T... changed)
      Alert the bindings that the model has updated with the specified change types.
      void unbind​(Binding binding)
      Removes the passed binding from this model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NopBindableModel

        public NopBindableModel()
    • Method Detail

      • 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
      • modelUpdated

        public <T extends java.lang.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