public class WeakBindableModelSupport extends java.lang.Object implements BindableModel
BindableModel. Uses WeakReferences to
attach bindings to models.| Constructor and Description |
|---|
WeakBindableModelSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Binding binding)
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()
Shortcut call for a generic model update.
|
public void bind(Binding binding)
bind in interface BindableModelpublic void update()
public <T extends java.lang.Enum<T> & ModelUpdate> void modelUpdated(T... changed)
modelUpdated in interface BindableModelchanged - list of change types to indicatepublic void unbind(Binding toUnbind)
unbind in interface BindableModelpublic void unbindAll()