code: public void setAsText(String text) throws IllegalArgumentException {
          if (text == null || text.equals("")) {
              setValue(null);
              return;
          }
          Enum<?> value = Enum.valueOf(enumClass, text);
          setValue(value);
      }
docs: Parse the value from the given text is not supported by this editor