Interface BindableModel

All Known Implementing Classes:
AbstractScheduleModel, AlarmJournalTable, BasicScheduleModel, CompositeScheduleModel, DefaultBindableModel, EditingModel, HolidayModel, NopBindableModel, PasswordEditor.PasswordModel, RosterModel, ScheduleAdjustment, ScheduleModel, UserModel, WeakBindableModel, WeakBindableModelSupport

public interface BindableModel
A model that can have bindings applied to it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bind(Binding toBind)
    Attach the binding to the model.
    <T extends Enum<T> & ModelUpdate>
    void
    modelUpdated(T... changed)
    Alert the bindings that the model has updated with the specified change types.
    void
    unbind(Binding toUnbind)
    Removes the passed binding from this model.
  • Method Details

    • bind

      void bind(Binding toBind)
      Attach the binding to the model. Whenever the model is updated then the binding will be triggered.
    • unbind

      void unbind(Binding toUnbind)
      Removes the passed binding from this model.
    • modelUpdated

      <T extends Enum<T> & ModelUpdate> void modelUpdated(T... changed)
      Alert the bindings that the model has updated with the specified change types.
      Parameters:
      changed - list of change types to indicate