コード例 #1
0
 /**
  * Creates a new table.
  *
  * @param label the label to show
  * @return table
  */
 protected YTable newTable(String label) {
   YTable table = factory.createTable();
   if (label != null) {
     YDatadescription dtd = factory.createDatadescription();
     table.setDatadescription(dtd);
     dtd.setLabel(label);
   }
   return table;
 }
コード例 #2
0
 /**
  * Creates a new list.
  *
  * @param label the label to show
  * @return list
  */
 protected YList newList(String label) {
   YList list = factory.createList();
   if (label != null) {
     YDatadescription dtd = factory.createDatadescription();
     list.setDatadescription(dtd);
     dtd.setLabel(label);
   }
   return list;
 }
コード例 #3
0
 /**
  * Creates a new combo box.
  *
  * @param label the label to show
  * @return checkBox
  */
 protected YComboBox newComboBox(String label) {
   YComboBox comboBox = factory.createComboBox();
   if (label != null) {
     YDatadescription dtd = factory.createDatadescription();
     comboBox.setDatadescription(dtd);
     dtd.setLabel(label);
   }
   return comboBox;
 }
コード例 #4
0
 /**
  * Creates a new text area.
  *
  * @param label the label to show
  * @return textArea
  */
 protected YTextArea newTextArea(String label) {
   YTextArea area = factory.createTextArea();
   if (label != null) {
     YDatadescription dtd = factory.createDatadescription();
     area.setDatadescription(dtd);
     dtd.setLabel(label);
   }
   return area;
 }
コード例 #5
0
 /**
  * Creates a new text field.
  *
  * @param label the label to show
  * @return textField
  */
 protected YTextField newText(String label) {
   YTextField field = factory.createTextField();
   if (label != null) {
     YDatadescription dtd = factory.createDatadescription();
     field.setDatadescription(dtd);
     dtd.setLabel(label);
   }
   return field;
 }
コード例 #6
0
 /**
  * Creates a new label.
  *
  * @param label the label to show
  * @return label
  */
 protected YLabel newLabel(String label) {
   YLabel field = factory.createLabel();
   if (label != null) {
     YDatadescription dtd = factory.createDatadescription();
     field.setDatadescription(dtd);
     dtd.setLabel(label);
   }
   return field;
 }