public class EnumPropertyDescriptor extends SBPropertyDescriptor
SBPropertyDescriptor
SBPropertyDescriptor.SingleValueSetter
_expressionInputPort, NOT_AN_EXPRESSION
Constructor and Description |
---|
EnumPropertyDescriptor(String propertyName,
Class<?> beanClass,
String[] values)
Construct an enumerated property descriptor.
|
EnumPropertyDescriptor(String propertyName,
Class<?> beanClass,
String readMethodName,
String writeMethodName,
String[] values)
Construct an enumerated property descriptor with customized read/write method names.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getValues()
Return the list of allowable values for the property.
|
void |
setValues(String[] values)
Set the list of allowable values for the property.
|
deprecated, description, displayName, getExpressionInputPort, getMaskDisplay, getMultiLine, getUIHints, isDeprecated, isExpression, isRequired, mask, multiline, optional, setDeprecated, setMaskStringDisplay, setMultiLine, setRequired, setUIHints
createPropertyEditor, equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
public EnumPropertyDescriptor(String propertyName, Class<?> beanClass, String[] values) throws IntrospectionException
propertyName
- the name of the propertybeanClass
- the operator class containing the propertyvalues
- the set of allowable values for the propertyIntrospectionException
- if introspection failspublic EnumPropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName, String[] values) throws IntrospectionException
propertyName
- the name of the propertybeanClass
- the operator class containing the propertyreadMethodName
- the name of the method used to read the propertywriteMethodName
- the name of the method used to write the propertyvalues
- the set of allowable values for the propertyIntrospectionException
- if introspection failspublic String[] getValues()
public void setValues(String[] values)
values
- allowable values for this property