at.tuwien.ifs.commons.gui.jsap
Class SwitchControl
java.lang.Object
at.tuwien.ifs.commons.gui.jsap.ParameterControl
at.tuwien.ifs.commons.gui.jsap.SwitchControl
public class SwitchControl
- extends ParameterControl
- Version:
- $Id: SwitchControl.java 3867 2010-10-21 15:50:10Z mayer $
- Author:
- Jakob Frank
Constructor Summary |
SwitchControl(com.martiansoftware.jsap.Switch param)
|
SwitchControl(com.martiansoftware.jsap.Switch param,
com.martiansoftware.jsap.JSAPResult result)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sw
private final com.martiansoftware.jsap.Switch sw
control
private final JCheckBox control
label
private JLabel label
SwitchControl
public SwitchControl(com.martiansoftware.jsap.Switch param)
- Parameters:
param
- The Switch this Editor is for.
SwitchControl
public SwitchControl(com.martiansoftware.jsap.Switch param,
com.martiansoftware.jsap.JSAPResult result)
- Parameters:
param
- The Switch this Editor is for.result
- initial value;
getEditor
public JComponent getEditor()
- Overrides:
getEditor
in class ParameterControl
- Returns:
- The Control of this parameter
getCommandLine
public String[] getCommandLine()
- Specified by:
getCommandLine
in class ParameterControl
- Returns:
- The commandline part of this parameter
getLabel
public JLabel getLabel()
- Overrides:
getLabel
in class ParameterControl
isValid
boolean isValid()
- Specified by:
isValid
in class ParameterControl
isRequired
public boolean isRequired()
- Overrides:
isRequired
in class ParameterControl