T - Enumeration typepublic class JavaEnumPropertyDescriptor<T extends Enum<T>> extends EnumPropertyDescriptor
SBPropertyDescriptorSBPropertyDescriptor.SingleValueSetter_expressionInputPort, NOT_AN_EXPRESSION| Constructor and Description |
|---|
JavaEnumPropertyDescriptor(String propertyName,
Class<?> beanClass,
Class<T> enumClass)
Construct an enumerated property descriptor.
|
JavaEnumPropertyDescriptor(String propertyName,
Class<?> beanClass,
Class<T> enumClass,
T... validOptions)
Construct an enumerated property descriptor.
|
JavaEnumPropertyDescriptor(String propertyName,
Class<?> beanClass,
EnumSet<T> valueSet)
Construct an enumerated property descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getEnumClass()
Get enumeration class
|
protected SBPropertyDescriptor.Setter |
getSetter() |
getValues, isValidValue, 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, setWriteMethodattributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toStringpublic JavaEnumPropertyDescriptor(String propertyName, Class<?> beanClass, Class<T> enumClass) throws IntrospectionException
propertyName - the name of the propertybeanClass - the operator class containing the propertyenumClass - the class for the enumIntrospectionException - if introspection fails@SafeVarargs public JavaEnumPropertyDescriptor(String propertyName, Class<?> beanClass, Class<T> enumClass, T... validOptions) throws 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.IntrospectionException - if introspection failspublic JavaEnumPropertyDescriptor(String propertyName, Class<?> beanClass, EnumSet<T> valueSet) throws IntrospectionException, 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.IntrospectionException - if introspection failsIllegalArgumentException - if valueSet is emptyprotected SBPropertyDescriptor.Setter getSetter() throws TypecheckException
getSetter in class EnumPropertyDescriptorTypecheckException - on type check exceptionCopyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.