Package com.palantir.ptoss.cinch.core
Class DefaultBindableModel
- java.lang.Object
- 
- com.palantir.ptoss.cinch.core.DefaultBindableModel
 
- 
- All Implemented Interfaces:
- BindableModel,- java.io.Serializable
 - Direct Known Subclasses:
- AbstractScheduleModel,- EditingModel,- HolidayModel,- PasswordEditor.PasswordModel,- RosterModel,- ScheduleAdjustment,- ScheduleModel,- UserModel
 
 public class DefaultBindableModel extends java.lang.Object implements BindableModel, java.io.Serializable Default implementation ofBindableModel- should be subclassed by implementations.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultBindableModel()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(Binding toBind)Attach the binding to the model.<T extends java.lang.Enum<T> & ModelUpdate>
 voidmodelUpdated(T... changed)Alert the bindings that the model has updated with the specified change types.voidunbind(Binding toUnbind)Removes the passed binding from this model.voidunbindAll()Removes all bindings from this model.voidupdate()Performs a model update of typeModelUpdates.UNSPECIFIED- convenience method for most models.
 
- 
- 
- 
Method Detail- 
bindpublic void bind(Binding toBind) Attach the binding to the model. Whenever the model is updated then the binding will be triggered.- Specified by:
- bindin interface- BindableModel
 
 - 
unbindpublic void unbind(Binding toUnbind) Removes the passed binding from this model.- Specified by:
- unbindin interface- BindableModel
 
 - 
unbindAllpublic void unbindAll() Removes all bindings from this model.
 - 
modelUpdatedpublic <T extends java.lang.Enum<T> & ModelUpdate> void modelUpdated(T... changed) Alert the bindings that the model has updated with the specified change types.- Specified by:
- modelUpdatedin interface- BindableModel
- Parameters:
- changed- list of change types to indicate
 
 - 
updatepublic void update() Performs a model update of typeModelUpdates.UNSPECIFIED- convenience method for most models.
 
- 
 
-