public class JavaEnumPropertyDescriptor<T extends java.lang.Enum<T>> extends EnumPropertyDescriptor
SBPropertyDescriptorSBPropertyDescriptor.SingleValueSetter_expressionInputPort, NOT_AN_EXPRESSION| Constructor and Description |
|---|
JavaEnumPropertyDescriptor(java.lang.String propertyName,
java.lang.Class<?> beanClass,
java.lang.Class<T> enumClass)
Construct an enumerated property descriptor.
|
JavaEnumPropertyDescriptor(java.lang.String propertyName,
java.lang.Class<?> beanClass,
java.lang.Class<T> enumClass,
T... validOptions)
Construct an enumerated property descriptor.
|
JavaEnumPropertyDescriptor(java.lang.String propertyName,
java.lang.Class<?> beanClass,
java.util.EnumSet<T> valueSet)
Construct an enumerated property descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<T> |
getEnumClass() |
protected SBPropertyDescriptor.Setter |
getSetter() |
getValues, setValuesdeprecated, description, displayName, getExpressionInputPort, getMaskDisplay, getMultiLine, getUIHints, isDeprecated, isExpression, isRequired, mask, multiline, optional, setDeprecated, setMaskStringDisplay, setMultiLine, setRequired, setUIHintscreatePropertyEditor, equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethodpublic JavaEnumPropertyDescriptor(java.lang.String propertyName,
java.lang.Class<?> beanClass,
java.lang.Class<T> enumClass)
throws java.beans.IntrospectionException
propertyName - the name of the propertybeanClass - the operator class containing the propertyenumClass - the class for the enumjava.beans.IntrospectionException - if introspection fails@SafeVarargs
public JavaEnumPropertyDescriptor(java.lang.String propertyName,
java.lang.Class<?> beanClass,
java.lang.Class<T> enumClass,
T... validOptions)
throws java.beans.IntrospectionException
propertyName - the name of the propertybeanClass - the operator class containing the propertyenumClass - the class for the enumvalidOptions - the valid options for the drop-down. If absent, all.java.beans.IntrospectionException - if introspection failspublic JavaEnumPropertyDescriptor(java.lang.String propertyName,
java.lang.Class<?> beanClass,
java.util.EnumSet<T> valueSet)
throws java.beans.IntrospectionException,
java.lang.IllegalArgumentException
propertyName - the name of the propertybeanClass - the operator class containing the propertyvalueSet - A subset of an enumeration to use as values. The set must not be empty.java.beans.IntrospectionException - if introspection failsjava.lang.IllegalArgumentException - if valueSet is emptypublic java.lang.Class<T> getEnumClass()
protected SBPropertyDescriptor.Setter getSetter() throws TypecheckException
getSetter in class EnumPropertyDescriptorTypecheckException - on type check exception