Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6219769

RFE: PropertyEditor Support for Enum

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 5.0
    • client-libs
    • b07
    • x86
    • windows_2000
    • Verified

      A DESCRIPTION OF THE REQUEST :
      The PropertyEditorManager only supports a one to one relation for classes. Now for an Enum there could easily be a generic PropertyEditor, that returns the proper enum for a given string representing the name.

      JUSTIFICATION :
      Otherwise Enum's can not be used in JavaBean properties.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      After the PropertyManager unsuccessfully searched the searchPath it should check if the targetType is an Enum. If it is it should return the EnumPropertyEdit, which it initializes with the targetType (thus the generic class nows which actual Enum to take)

      The Text given (setAsText) to the EnumPropertyEditor should be Enum.name().

      ACTUAL -
      Not there
      ###@###.### 2005-1-20 22:03:47 GMT

            malenkov Sergey Malenkov (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: