public class SwitchControl extends ParameterControl
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JCheckBox |
control |
private javax.swing.JLabel |
label |
private com.martiansoftware.jsap.Switch |
sw |
TOOL_TIP_WIDTH| Constructor and Description |
|---|
SwitchControl(com.martiansoftware.jsap.Switch param) |
SwitchControl(com.martiansoftware.jsap.Switch param,
com.martiansoftware.jsap.JSAPResult result) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getCommandLine() |
javax.swing.JComponent |
getEditor() |
javax.swing.JLabel |
getLabel() |
boolean |
isRequired() |
(package private) boolean |
isValid() |
createFlagString, createParameterControl, formatToolTip, validateprivate final com.martiansoftware.jsap.Switch sw
private final javax.swing.JCheckBox control
private javax.swing.JLabel label
public SwitchControl(com.martiansoftware.jsap.Switch param)
param - The Switch this Editor is for.public SwitchControl(com.martiansoftware.jsap.Switch param,
com.martiansoftware.jsap.JSAPResult result)
param - The Switch this Editor is for.result - initial value;public javax.swing.JComponent getEditor()
getEditor in class ParameterControlpublic java.lang.String[] getCommandLine()
getCommandLine in class ParameterControlpublic javax.swing.JLabel getLabel()
getLabel in class ParameterControlboolean isValid()
isValid in class ParameterControlpublic boolean isRequired()
isRequired in class ParameterControl