コード例 #1
0
 /**
  * Inserts element into ComboxField. Note that this method is generated for all attributes,
  * regardless if it is a Combobox. Though if their owner isn't a combobox, it has no effect
  *
  * @param theStudent the name of the class
  */
 void comboboxStudentstudentNrAddItem(Student theStudent) {
   ((JComboBox) cellValueColumn2)
       .addItem(
           controller.convertToString(
               theStudent.getStudentNr(),
               TypeTool.getAttributeClassNameMethod(theStudent, "studentNr")));
 }
コード例 #2
0
 /**
  * Inserts element into ComboxField. Note that this method is generated for all attributes,
  * regardless if it is a Combobox. Though if their owner isn't a combobox, it has no effect
  *
  * @param theStudent the name of the class
  */
 void comboboxStudentnameAddItem(Student theStudent) {
   ((JComboBox) cellValueColumn1)
       .addItem(
           controller.convertToString(
               theStudent.getName(), TypeTool.getAttributeClassNameMethod(theStudent, "name")));
 }