xq.gwt.mvc.controller.PasswordPropertyController Maven / Gradle / Ivy
package xq.gwt.mvc.controller;
import xq.gwt.mvc.model.PasswordPropertyModel;
import xq.gwt.mvc.view.PasswordPropertyView;
public class PasswordPropertyController extends AbstractPropertyController {
protected PasswordPropertyModel passwordModel;
protected PasswordPropertyView passwordView;
public PasswordPropertyController(PasswordPropertyView passwordView){
super(passwordView);
this.passwordView = passwordView;
}
public void setPropertyModel(PasswordPropertyModel passwordModel) {
this.passwordModel = passwordModel;
super.setPropertyModel(passwordModel);
}
@Override
public void updateModel() {
if (passwordModel != null)
passwordModel.setValue(passwordView.getText());
}
@Override
public void updateView() {
if (passwordView != null)
passwordView.setText(passwordModel.getValue());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy