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