Package com.palantir.ptoss.cinch.core
Class WeakBindableModelSupport
java.lang.Object
com.palantir.ptoss.cinch.core.WeakBindableModelSupport
- All Implemented Interfaces:
- BindableModel
A stand-alone implementation of 
BindableModel.  Uses WeakReferences to
 attach bindings to models.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAttach the binding to the model.<T extends Enum<T> & ModelUpdate>
 voidmodelUpdated(T... changed) Alert the bindings that the model has updated with the specified change types.voidRemoves the passed binding from this model.voidRemoves all bindings from this model.voidupdate()Shortcut call for a generic model update.
- 
Constructor Details- 
WeakBindableModelSupportpublic WeakBindableModelSupport()
 
- 
- 
Method Details- 
bindAttach the binding to the model. Whenever the model is updated then the binding will be triggered.- Specified by:
- bindin interface- BindableModel
 
- 
updatepublic void update()Shortcut call for a generic model update.
- 
modelUpdatedAlert 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
 
- 
unbindRemoves the passed binding from this model.- Specified by:
- unbindin interface- BindableModel
 
- 
unbindAllpublic void unbindAll()Removes all bindings from this model.
 
-