public class OutputFileListParameter extends FileListParameter
Parâmetro do tipo lista de arquivo de saída.
Ele possui 3 modos de funcionamento: aceitar apenas arquivos regulares,
aceitar apenas diretórios ou aceitar arquivos regulares e diretórios (veja
FileParameterMode).
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE
Texto que representa o tipo desse parâmetro
|
fileTypes, listeners, usesFilteracceptDuplicates, mustSort| Constructor and Description |
|---|
OutputFileListParameter(String name,
String label,
String description,
List<FileURLValue> defaultValue,
boolean isOptional,
boolean isVisible,
String commandLinePattern,
String[] fileTypes,
FileParameterMode mode,
boolean mustSort,
boolean usesFilter,
boolean mustForceExtension)
Cria um parâmetro do tipo arquivo.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Obtém um texto que representa o tipo deste parâmetros.
|
boolean |
mustForceExtension()
Indica se deve forçar a extensão do arquivo.
|
boolean |
mustWarnOverwrite()
Indica se deve avisar em caso de sobrescrita
|
boolean |
setValue(List<FileURLValue> files)
Atribui um valor corrente a este parâmetro.
|
addListener, createItemValidator, createParameterValidator, exportValue, getCommandItemValue, getExpressionValue, getFileTypes, getItemValueFromText, getMode, getValueAsText, importValue, moveDown, moveUp, mustExist, removeListener, setFileTypes, setMode, setUsesFilter, setValueAsText, usesFilteraddElement, getCommandValue, getItemComparator, getItemValueAsText, mustSort, removeElement, removeElementObj, setElementaddSimpleParameterListener, fireValueWasChangedEvent, fireVisiblityWasChangedEvent, getCommandLine, getCommandLinePattern, getDefaultValue, getDescription, getLabel, getParameterValidator, getSimpleParameterListeners, getValue, ignoreIfDisabled, ignoreIfInvisible, isEnabled, isOptional, isSetDefaultValue, isVisible, removeSimpleParameterListener, resetValue, setDefaultValue, setEnabled, setIgnoreIfDisabled, setIgnoreIfInvisible, setLabel, setVisible, validatepublic static final String TYPE
public OutputFileListParameter(String name, String label, String description, List<FileURLValue> defaultValue, boolean isOptional, boolean isVisible, String commandLinePattern, String[] fileTypes, FileParameterMode mode, boolean mustSort, boolean usesFilter, boolean mustForceExtension)
name - O nome deste parâmetro (Não aceita null).label - O rótulo deste parâmetro (Não aceita null).description - A descrição deste parâmetro (Não aceita null).defaultValue - O valor-padrão (Aceita null).isOptional - Indica se o valor do parâmetro é opcional.isVisible - Indica se o parâmetro deve ficar visível.commandLinePattern - O padrão para construção da linha de comando. O
padrão será utilizado para escrever o trecho da linha do comando
referente ao parâmetro. Esta string será passada para o método
MessageFormat.format(String,Object...). O primeiro formato ({0}) é
referente ao nome e o segundo formato ({1}) é referente ao valor. Se
null o parâmetro não produzirá saída na linha de comando.fileTypes - Os tipos dos arquivos aceitos neste parâmetro (Aceita
null).mode - O modo de funcionamento deste parâmetro (Não aceita
null).mustSort - Indica se os caminhos para os arquivos precisam ser
ordenados.mustForceExtension - Indica se o parâmetro deve forçar o uso da
extensão no arquivo (Se ele não tiver, ele colocará a extensão).usesFilter - Indica se um painel de filtro pode ser usado.public boolean mustWarnOverwrite()
mustWarnOverwrite in class FileListParameterpublic String getType()
getType in class SimpleParameter<List<FileURLValue>>public boolean mustForceExtension()
public boolean setValue(List<FileURLValue> files)
Atribui um valor corrente a este parâmetro.
Se o valor corrente for modificado, ele irá gerar o evento
SimpleParameterListener.valueWasChanged(SimpleParameter).
setValue in class SimpleParameter<List<FileURLValue>>files - O valor (Aceita null).true se ele for modificado ou false se o valor
corrente for igual ao valor fornecido.Copyright © 2016. All rights reserved.