public class EnumPropertyDescriptor extends SBPropertyDescriptor
SBPropertyDescriptorSBPropertyDescriptor.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.
|
(package private) boolean |
isValidValue(String val) |
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, 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 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 failsboolean isValidValue(String val)
public String[] getValues()
public void setValues(String[] values)
values - allowable values for this propertyCopyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.