xq.gwt.mvc.controller.EntityArrayPropertyController 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!
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package xq.gwt.mvc.controller;
import xq.gwt.mvc.model.EntityArrayPropertyModel;
import xq.gwt.mvc.view.EntityArrayPropertyView;
/**
*
* @author admin
*/
public class EntityArrayPropertyController extends AbstractPropertyController{
private static final long serialVersionUID = -8832264155650756938L;
protected EntityArrayPropertyView entitiesView;
protected EntityArrayPropertyModel entitiesModel;
public EntityArrayPropertyController(EntityArrayPropertyView view){
super(view);
this.entitiesView = view;
}
public void setPropertyModel(EntityArrayPropertyModel model){
this.entitiesModel = model;
super.setPropertyModel(model);
}
@Override
public void updateModel() {
if (entitiesModel != null)
entitiesModel.setValue(entitiesView.getEntities());
}
@Override
public void updateView() {
if (entitiesView != null)
entitiesView.setEntities(entitiesModel.getValue());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy