Ejemplo n.º 1
0
 public void initData() {
   if (this.entity != null) {
     txtId.setValue(entity.getId());
     txtCompany.setText(entity.getCompany());
     txtName.setText(entity.getProductName());
     txtCount.setValue(entity.getCount());
     txtMinCount.setValue(entity.getMinCount());
     txtPrice.setValue(entity.getPrice());
     txtCode.setText(entity.getCode());
   }
   if (this.action == Action.CREATE) {
     btnProcessAction.setText("Save");
   } else if (this.action == Action.UPDATE) {
     btnProcessAction.setText("Update");
   }
 }