/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }