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, validate
private 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 ParameterControl
public java.lang.String[] getCommandLine()
getCommandLine
in class ParameterControl
public javax.swing.JLabel getLabel()
getLabel
in class ParameterControl
boolean isValid()
isValid
in class ParameterControl
public boolean isRequired()
isRequired
in class ParameterControl