Class JavaEnumPropertyDescriptor<T extends Enum<T>>

    • Constructor Detail

      • JavaEnumPropertyDescriptor

        public JavaEnumPropertyDescriptor​(String propertyName,
                                          Class<?> beanClass,
                                          Class<T> enumClass)
                                   throws IntrospectionException
        Construct an enumerated property descriptor.
        Parameters:
        propertyName - the name of the property
        beanClass - the operator class containing the property
        enumClass - the class for the enum
        Throws:
        IntrospectionException - if introspection fails
      • JavaEnumPropertyDescriptor

        @SafeVarargs
        public JavaEnumPropertyDescriptor​(String propertyName,
                                          Class<?> beanClass,
                                          Class<T> enumClass,
                                          T... validOptions)
                                   throws IntrospectionException
        Construct an enumerated property descriptor.
        Parameters:
        propertyName - the name of the property
        beanClass - the operator class containing the property
        enumClass - the class for the enum
        validOptions - the valid options for the drop-down. If absent, all.
        Throws:
        IntrospectionException - if introspection fails