java.lang.Objectjava.beans.FeatureDescriptor
java.beans.PropertyDescriptor
com.install4j.api.beaninfo.Install4JPropertyDescriptor
com.install4j.api.beaninfo.FilePropertyDescriptor
public class FilePropertyDescriptor
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.
ExternalFile
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_FILTER_NAME
|
static java.lang.String |
ATTRIBUTE_SELECTION_MODE
|
static java.lang.String |
ATTRIBUTE_SUFFIXES
|
static java.lang.String |
CONTEXT_EXTERNAL_OR_INTERNAL
Special context for properties of type com.install4j.api.beansExternalFile that tells the install4j GUI to offer the user the possibility to select a file from the distribution tree instead. |
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, String)
with suffixes, filterName and context 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 context)
Same as create(String, Class, String, String, FileSelectionMode, String[], 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)
Same as create(String, Class, String, String, FileSelectionMode, String[], String, String)
with context 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,
java.lang.String context)
Create a file property descriptor as with Install4JPropertyDescriptor.create(String, Class, String, String)
and additional configuration specific to file properties. |
Methods inherited from class com.install4j.api.beaninfo.Install4JPropertyDescriptor |
---|
create, create, setContext, setDisplayName, setParentProperty, setPropertyCategory, setPropertyChangeListener, setSortKey, setVisibilityDiscriminator |
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 |
Field Detail |
---|
public static final java.lang.String ATTRIBUTE_SELECTION_MODE
create(String, Class, String, String, FileSelectionMode, String[], String)
,
Constant Field Valuespublic static final java.lang.String ATTRIBUTE_SUFFIXES
create(String, Class, String, String, FileSelectionMode, String[], String)
,
Constant Field Valuespublic static final java.lang.String ATTRIBUTE_FILTER_NAME
create(String, Class, String, String, FileSelectionMode, String[], String)
,
Constant Field Valuespublic static final java.lang.String CONTEXT_EXTERNAL_OR_INTERNAL
Method Detail |
---|
public static FilePropertyDescriptor create(java.lang.String propertyName, java.lang.Class beanClass, java.lang.String displayName, java.lang.String shortDescription, FileSelectionMode selectionMode)
create(String, Class, String, String, FileSelectionMode, String[], String, String)
with suffixes, filterName and context set to null.
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 context)
create(String, Class, String, String, FileSelectionMode, String[], String, String)
with suffixes and filterName set to null.
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(String, Class, String, String, FileSelectionMode, String[], String, String)
with context set to null.
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, java.lang.String context)
Install4JPropertyDescriptor.create(String, Class, String, String)
and additional configuration specific to file properties.
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 choosercontext
- the context. The context allows to specify different editors for the same property types.
See the CONTEXT_* properties for the built-in contexts.