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

RFE: PropertyEditor Support for Enum

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b07
    • CPU:
      x86
    • OS:
      windows_2000
    • Verification:
      Verified

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: