public class FlagOption extends AbstractOption
Modifier and Type | Field and Description |
---|---|
protected boolean |
isSet |
cliChar, illegalNameCharacters, name, purpose
Constructor and Description |
---|
FlagOption(String name,
char cliChar,
String purpose) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultCLIString()
Gets the Command Line Interface text
|
JComponent |
getEditComponent()
Gets the GUI component to edit
|
String |
getStateString()
Gets the state of this option in human readable form
|
String |
getValueAsCLIString()
Gets the value of a Command Line Interface text as a string
|
boolean |
isSet() |
void |
set() |
void |
setValue(boolean v) |
void |
setValueViaCLIString(String s)
Sets value of this option via the Command Line Interface text
|
void |
unset() |
copy, getCLIChar, getDescription, getName, getPurpose, nameIsLegal, resetToDefault
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
measureByteSize
public void setValue(boolean v)
public void set()
public void unset()
public boolean isSet()
public String getDefaultCLIString()
Option
public String getValueAsCLIString()
Option
public void setValueViaCLIString(String s)
Option
s
- the Command Line Interface textpublic String getStateString()
Option
getStateString
in interface Option
getStateString
in class AbstractOption
public JComponent getEditComponent()
Option
getEditComponent
in interface Option
getEditComponent
in class AbstractOption
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.