public class ResourceFilePropertyDescriptor extends SBPropertyDescriptor
Operator.getResourceContents(String)
, giving the value
of the String field as the argument.ResourceFilePropertyDescriptor.restrictFileHints(String[])
to improve user experience selecting a resource in StudioSBPropertyDescriptor
SBPropertyDescriptor.SingleValueSetter
_expressionInputPort, NOT_AN_EXPRESSION
Constructor and Description |
---|
ResourceFilePropertyDescriptor(PropertyDescriptor pd,
Class<?> beanClass)
Copy a property descriptor.
|
ResourceFilePropertyDescriptor(String propertyName,
Class<?> beanClass) |
ResourceFilePropertyDescriptor(String propertyName,
Class<?> beanClass,
String readMethodName,
String writeMethodName)
Construct a property descriptor with non-standard read/write method names.
|
Modifier and Type | Method and Description |
---|---|
ResourceFilePropertyDescriptor |
restrictFileHints(String[] restrictions)
Sets restrictions on the Studio UI used to display a chooser to select a resource file.
|
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 ResourceFilePropertyDescriptor(String propertyName, Class<?> beanClass) throws IntrospectionException
propertyName
- the name of the propertybeanClass
- the operator class containing the propertyIntrospectionException
- if introspection failspublic ResourceFilePropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName) 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 propertyIntrospectionException
- if introspection failspublic ResourceFilePropertyDescriptor(PropertyDescriptor pd, Class<?> beanClass) throws IntrospectionException
pd
- a property descriptor to copy frombeanClass
- the operator class containing the propertyIntrospectionException
- if introspection failspublic ResourceFilePropertyDescriptor restrictFileHints(String[] restrictions)
.xml
,
and Studio will restrict the chooser to files ending in the provided extension, case insensitively.restrictions
- see method description, must not be null