install4j API documentation
com.install4j.api.beaninfo
Class FilePropertyDescriptor
java.lang.Object
java.beans.FeatureDescriptor
java.beans.PropertyDescriptor
com.install4j.api.beaninfo.Install4JPropertyDescriptor
com.install4j.api.beaninfo.FilePropertyDescriptor
public class FilePropertyDescriptor
- extends Install4JPropertyDescriptor
Property descriptor for properties of type java.io.File and com.install4j.api.beans.ExternalFile.
Using this class is not strictly required. In principle, you could also set values for the ATTRIBUTE_* constants in the property descriptor
of an unrelated property descriptor class.
- See Also:
ExternalFile
Method Summary |
static FilePropertyDescriptor |
create(java.lang.String propertyName,
java.lang.Class beanClass,
java.lang.String displayName,
java.lang.String shortDescription,
FileSelectionMode selectionMode)
Same as create(String, Class, String, String, FileSelectionMode, String[], String)
with suffixes and filterName set to null. |
static FilePropertyDescriptor |
create(java.lang.String propertyName,
java.lang.Class beanClass,
java.lang.String displayName,
java.lang.String shortDescription,
FileSelectionMode selectionMode,
java.lang.String[] suffixes,
java.lang.String filterName)
Create a file property descriptor as with Install4JPropertyDescriptor.create(String, Class, String, String)
and additional configuration specific to file properties. |
Methods inherited from class java.beans.PropertyDescriptor |
createPropertyEditor, equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod |
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ATTRIBUTE_SELECTION_MODE
public static final java.lang.String ATTRIBUTE_SELECTION_MODE
- See Also:
create(String, Class, String, String, FileSelectionMode, String[], String)
,
Constant Field Values
ATTRIBUTE_SUFFIXES
public static final java.lang.String ATTRIBUTE_SUFFIXES
- See Also:
create(String, Class, String, String, FileSelectionMode, String[], String)
,
Constant Field Values
ATTRIBUTE_FILTER_NAME
public static final java.lang.String ATTRIBUTE_FILTER_NAME
- See Also:
create(String, Class, String, String, FileSelectionMode, String[], String)
,
Constant Field Values
create
public static FilePropertyDescriptor create(java.lang.String propertyName,
java.lang.Class beanClass,
java.lang.String displayName,
java.lang.String shortDescription,
FileSelectionMode selectionMode)
- Same as
create(String, Class, String, String, FileSelectionMode, String[], String)
with suffixes and filterName set to null.
create
public static FilePropertyDescriptor create(java.lang.String propertyName,
java.lang.Class beanClass,
java.lang.String displayName,
java.lang.String shortDescription,
FileSelectionMode selectionMode,
java.lang.String[] suffixes,
java.lang.String filterName)
- Create a file property descriptor as with
Install4JPropertyDescriptor.create(String, Class, String, String)
and additional configuration specific to file properties.
- Parameters:
selectionMode
- the file selection mode when the user invokes the file choosersuffixes
- the accepted suffixes in the file chooserfilterName
- the filter name in the file chooser
- Returns:
- the property descriptor