public final class IntegerListParameter extends ListParameter<Integer>
acceptDuplicates, mustSort| Constructor and Description |
|---|
IntegerListParameter(String name,
String label,
String description,
List<Integer> defaultValue,
boolean isOptional,
boolean isVisible,
String commandLinePattern,
Integer maximum,
Integer minimum)
Cria um parâmetro.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIntegerListParameterListener(IntegerListParameterListener listener)
Adiciona um observador a este parâmetro.
|
protected IntegerParameterValidator |
createItemValidator()
Cria o validador dos itens da lista.
|
String |
getIDLType()
Obtém o identificador do tipo IDL do parâmetro se ele possuium uma
interface IDL.
|
protected Integer |
getItemValueFromText(String itemValue)
Decodifica um texto criando um elemento.
|
Integer |
getMaximum()
Obtém o valor máximo.
|
Integer |
getMinimum()
Obtém o valor mínimo.
|
String |
getType()
Obtém um texto que representa o tipo deste parâmetros.
|
boolean |
setMaximum(Integer maximum)
Atribui o máximo a este parâmetro.
|
boolean |
setMinimum(Integer minimum)
Atribui o mínimo a este parâmetro.
|
addElement, createParameterValidator, getCommandItemValue, getCommandValue, getExpressionValue, getItemComparator, getItemValueAsText, getValueAsText, mustSort, removeElement, removeElementObj, setElement, setValueAsTextaddSimpleParameterListener, exportValue, fireValueWasChangedEvent, fireVisiblityWasChangedEvent, getCommandLine, getCommandLinePattern, getDefaultValue, getDescription, getLabel, getParameterValidator, getSimpleParameterListeners, getValue, ignoreIfDisabled, ignoreIfInvisible, importValue, isEnabled, isOptional, isSetDefaultValue, isVisible, removeSimpleParameterListener, resetValue, setDefaultValue, setEnabled, setIgnoreIfDisabled, setIgnoreIfInvisible, setLabel, setValue, setVisible, validatepublic IntegerListParameter(String name, String label, String description, List<Integer> defaultValue, boolean isOptional, boolean isVisible, String commandLinePattern, Integer maximum, Integer minimum)
name - O nome (Não aceita null).label - O rótulo (Não aceita null).description - A descrição (Não aceita null).defaultValue - O valor-padrão (Aceita null).isOptional - Indica se é o valor é opcional/obrigatório.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.maximum - O máximo (Aceita null; se o mínimo existir ele tem
que ser maior ou igual a ele).minimum - O mínimo (Aceita null; se o máximo existir ele tem
que ser menor ou igual a ele).public void addIntegerListParameterListener(IntegerListParameterListener listener)
listener - O observador (Não aceita null).public Integer getMaximum()
null se ele não existir.public Integer getMinimum()
null se ele não existir.public String getType()
getType in class SimpleParameter<List<Integer>>public String getIDLType()
getIDLType in class SimpleParameter<List<Integer>>null se não possuir
interface IDL.public boolean setMaximum(Integer maximum)
maximum - O máximo (Aceita null; se o mínimo existir ele tem
que ser maior ou igual a ele).true em caso de sucesso ou false se o valor máximo
atual for igual ao valor máximo fornecido.public boolean setMinimum(Integer minimum)
minimum - O mínimo (Aceita null; se o máximo existir ele tem
que ser menor ou igual a ele).true em caso de sucesso ou false se o valor mínimo
atual for igual ao valor mínimo fornecido.protected Integer getItemValueFromText(String itemValue) throws ParseException
getItemValueFromText in class ListParameter<Integer>itemValue - O valor do elemento codificado (Aceita null).ParseException - Se o valor codificado não representar um elemento
que possa ser armazenado neste parâmetro.protected IntegerParameterValidator createItemValidator()
createItemValidator in class ListParameter<Integer>Copyright © 2016. All rights reserved.