public static Chofer showForm(Chofer bean, boolean readOnly) { DefaultFormModel model = new DefaultFormModel(bean); model.setReadOnly(readOnly); final ChoferForm form = new ChoferForm(model); form.open(); if (!form.hasBeenCanceled()) { return (Chofer) model.getBaseBean(); } return null; }
public static Marca showForm(Marca bean, boolean readOnly) { DefaultFormModel model = new DefaultFormModel(bean); model.setReadOnly(readOnly); final MarcaForm form = new MarcaForm(model); form.open(); if (!form.hasBeenCanceled()) { return (Marca) model.getBaseBean(); } return null; }