Ejemplo n.º 1
0
 /**
  * This is a support method to create the table cells of one row from one or more BusinessDatas.
  * You may overwrite this method if you need a custom mapping from BusinessData attributes to
  * table columns that you were unable to specify in the UI designer.
  *
  * @return the returned Object[] is needed in the constructor of a <tt>TableRow</tt>.
  */
 public Object[] customerTableCreateCells(org.openxma.dsl.reference.dto.CustomerView customers) {
   Object[] cells = new Object[4];
   cells[0] = customers.getFirstName();
   cells[1] = customers.getLastName();
   cells[2] = customers.getBirthDate();
   cells[3] = customers.getEmailAddress();
   return cells;
 }
Ejemplo n.º 2
0
 /** Copies attribute values of the provided BusinessDatas into widget models. */
 public void businessDataToAtomicWM(org.openxma.dsl.reference.dto.CustomerView customer) {
   customer_firstName.set(customer.getFirstName());
   customer_lastName.set(customer.getLastName());
 }