public class IntOption extends AbstractOption
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentVal |
protected int |
defaultVal |
protected int |
maxVal |
protected int |
minVal |
cliChar, illegalNameCharacters, name, purpose| Constructor and Description |
|---|
IntOption(String name,
char cliChar,
String purpose,
int defaultVal) |
IntOption(String name,
char cliChar,
String purpose,
int defaultVal,
int minVal,
int maxVal) |
| Modifier and Type | Method and Description |
|---|---|
static int |
cliStringToInt(String s) |
String |
getDefaultCLIString()
Gets the Command Line Interface text
|
JComponent |
getEditComponent()
Gets the GUI component to edit
|
int |
getMaxValue() |
int |
getMinValue() |
int |
getValue() |
String |
getValueAsCLIString()
Gets the value of a Command Line Interface text as a string
|
static String |
intToCLIString(int i) |
void |
setValue(int v) |
void |
setValueViaCLIString(String s)
Sets value of this option via the Command Line Interface text
|
copy, getCLIChar, getDescription, getName, getPurpose, getStateString, nameIsLegal, resetToDefaultcopy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmeasureByteSizeprotected int currentVal
protected int defaultVal
protected int minVal
protected int maxVal
public void setValue(int v)
public int getValue()
public int getMinValue()
public int getMaxValue()
public String getDefaultCLIString()
Optionpublic String getValueAsCLIString()
Optionpublic void setValueViaCLIString(String s)
Options - the Command Line Interface textpublic static int cliStringToInt(String s)
public static String intToCLIString(int i)
public JComponent getEditComponent()
OptiongetEditComponent in interface OptiongetEditComponent in class AbstractOptionCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.