public class DefaultBindableModel extends java.lang.Object implements BindableModel, java.io.Serializable
BindableModel - should be subclassed by implementations.| Constructor and Description |
|---|
DefaultBindableModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Binding toBind)
Attach the binding to the model.
|
<T extends java.lang.Enum<T> & ModelUpdate> |
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.
|
void |
unbindAll()
Removes all bindings from this model.
|
void |
update()
Performs a model update of type
ModelUpdates.UNSPECIFIED - convenience method
for most models. |
public void bind(Binding toBind)
bind in interface BindableModelpublic void unbind(Binding toUnbind)
unbind in interface BindableModelpublic void unbindAll()
public <T extends java.lang.Enum<T> & ModelUpdate> void modelUpdated(T... changed)
modelUpdated in interface BindableModelchanged - list of change types to indicatepublic void update()
ModelUpdates.UNSPECIFIED - convenience method
for most models.