Class FileOrFolderField
java.lang.Object
com.inet.taskplanner.server.api.field.Field
com.inet.taskplanner.server.api.field.FolderField
com.inet.taskplanner.server.api.field.FileOrFolderField
A field that allows the definition of a file or a folder.
-
Field Summary
Fields inherited from class com.inet.taskplanner.server.api.field.FolderField
PROTOCOL_FILE
-
Constructor Summary
ConstructorsConstructorDescriptionFileOrFolderField
(String key, String label) Creates the field for choosing a file -
Method Summary
Methods inherited from class com.inet.taskplanner.server.api.field.FolderField
getAllAvailableProtocols, patchResultPlaceholderInValue, patchSeriesPlaceholderInValue, setProtocols
Methods inherited from class com.inet.taskplanner.server.api.field.Field
getConditions, getKey, getLabel, getPlaceholder, getType, getValue, isUpdateValuesOnChange, isValueSavable, replaceSeriesPlaceholders, setConditions, setKey, setLabel, setPlaceholder, setType, setType, setUpdateValuesOnChange, setValue, setValueSavable
-
Constructor Details
-
FileOrFolderField
Creates the field for choosing a file- Parameters:
key
- the key of the fieldlabel
- the label to be displayed in front of the field- Since:
- taskplanner 3.0
-
-
Method Details
-
setFilter
Sets the filter of allowed file names. E.g. "*.pdf"- Parameters:
filter
- the file name filters- Since:
- taskplanner 3.0
-