* @param model the model
*/
public void bind(final ModelData model) {
DeferredCommand.addCommand(new Command() {
public void execute() {
BindingEvent e = new BindingEvent(Bindings.this, model);
if (fireEvent(Events.BeforeBind, e)) {
if (Bindings.this.model != null) {
unbind();
}
Bindings.this.model = model;