Package com.palantir.ptoss.cinch.core
Class NopBindableModel
- java.lang.Object
 - 
- com.palantir.ptoss.cinch.core.NopBindableModel
 
 
- 
- All Implemented Interfaces:
 BindableModel
public class NopBindableModel extends java.lang.Object implements BindableModel
ABindableModelimplementation which does nothing. Can be used as a superclass to an immutable class that needs to implementBindableModel. 
- 
- 
Constructor Summary
Constructors Constructor Description NopBindableModel() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(Binding to)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 binding)Removes the passed binding from this model. 
 - 
 
- 
- 
Method Detail
- 
bind
public void bind(Binding to)
Description copied from interface:BindableModelAttach the binding to the model. Whenever the model is updated then the binding will be triggered.- Specified by:
 bindin interfaceBindableModel
 
- 
unbind
public void unbind(Binding binding)
Description copied from interface:BindableModelRemoves the passed binding from this model.- Specified by:
 unbindin interfaceBindableModel
 
- 
modelUpdated
public <T extends java.lang.Enum<T> & ModelUpdate> void modelUpdated(T... changed)
Description copied from interface:BindableModelAlert the bindings that the model has updated with the specified change types.- Specified by:
 modelUpdatedin interfaceBindableModel- Parameters:
 changed- list of change types to indicate
 
 - 
 
 -