Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }