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 java.lang.String |
TYPE_VALUE
Texto que representa o tipo desse parâmetro
|
fileType, listeners, usesFilteracceptDuplicates, mustSort| Constructor and Description |
|---|
OutputFileListParameter(java.lang.String name,
java.lang.String label,
java.lang.String description,
java.util.List<FileURLValue> defaultValue,
boolean isOptional,
boolean isVisible,
java.lang.String commandLinePattern,
java.lang.String fileType,
FileParameterMode mode,
boolean mustSort,
boolean usesFilter,
boolean mustForceExtension)
Cria um parâmetro do tipo arquivo.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIDLType()
Obtém o identificador do tipo IDL do parâmetro se ele possuium uma
interface IDL.
|
java.lang.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 |
setValue(java.util.List<FileURLValue> files)
Atribui um valor corrente a este parâmetro.
|
addListener, createItemValidator, createParameterValidator, exportValue, getCommandItemValue, getExpressionValue, getFileType, getItemValueFromText, getMode, getValueAsText, importValue, moveDown, moveUp, mustExist, removeListener, setFileType, 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 java.lang.String TYPE_VALUE
public OutputFileListParameter(java.lang.String name,
java.lang.String label,
java.lang.String description,
java.util.List<FileURLValue> defaultValue,
boolean isOptional,
boolean isVisible,
java.lang.String commandLinePattern,
java.lang.String fileType,
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.fileType - O tipo 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 java.lang.String getType()
getType in class SimpleParameter<java.util.List<FileURLValue>>public java.lang.String getIDLType()
getIDLType in class SimpleParameter<java.util.List<FileURLValue>>null se não possuir
interface IDL.public boolean mustForceExtension()
public boolean setValue(java.util.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<java.util.List<FileURLValue>>files - O valor (Aceita null).true se ele for modificado ou false se o valor
corrente for igual ao valor fornecido.Copyright © 2015. All Rights Reserved.