xq.gwt.mvc.controller.BooleanPropertyController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of XqGwtMvc Show documentation
Show all versions of XqGwtMvc Show documentation
A framework for implementing the MVP variant of the Model View Controller design pattern in the context of GWT
The newest version!
package xq.gwt.mvc.controller;
import xq.gwt.mvc.model.BooleanPropertyModel;
import xq.gwt.mvc.view.BooleanPropertyView;
public class BooleanPropertyController extends AbstractPropertyController {
protected BooleanPropertyModel booleanModel;
protected BooleanPropertyView booleanView;
public BooleanPropertyController(BooleanPropertyView booleanView){
super(booleanView);
this.booleanView = booleanView;
}
public void setPropertyModel(BooleanPropertyModel booleanModel) {
this.booleanModel = booleanModel;
super.setPropertyModel(booleanModel);
}
@Override
public void updateModel() {
if (booleanModel != null)
booleanModel.setValue(booleanView.getBoolean());
}
@Override
public void updateView() {
if (booleanView != null)
booleanView.setBoolean(booleanModel.getValue());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy