public void changeData(AttributeNominalValue type, WWidget[] widgets) { for (AttributeNominalValue anv : attribute_.getAttributeNominalValues()) { if (type.getNominalValueIi().equals(anv.getNominalValueIi())) { anv.setValue(((TextField) widgets[0]).text()); break; } } }
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; }