public WWidget[] fixAddRow(WWidget[] widgets) { WWidget[] widgetsToReturn = new WWidget[1]; TextField tf = new TextField(form_.getInteractionState(), form_); tf.setText(((TextField) widgets[0]).text()); widgetsToReturn[0] = tf; return widgetsToReturn; }
public WWidget[] getWidgets(TestNominalValue type) { TextField tf = new TextField(form_.getInteractionState(), form_); WWidget[] widgets = new WWidget[1]; widgets[0] = tf; tf.setText(type.getValue()); return widgets; }
public WWidget[] getWidgets(AttributeNominalValue type) { TextField tf = new TextField(form_.getInteractionState(), form_); WWidget[] widgets = new WWidget[1]; widgets[0] = tf; if (type != null) { tf.setText(type.getValue()); } return widgets; }