at.tuwien.ifs.commons.gui.jsap
Class UnflaggedOptionControl

java.lang.Object
  extended by at.tuwien.ifs.commons.gui.jsap.ParameterControl
      extended by at.tuwien.ifs.commons.gui.jsap.UnflaggedOptionControl

public class UnflaggedOptionControl
extends ParameterControl

Version:
$Id: UnflaggedOptionControl.java 3867 2010-10-21 15:50:10Z mayer $
Author:
Jakob Frank

Field Summary
private  OptionEditor editor
           
private  com.martiansoftware.jsap.UnflaggedOption opt
           
 
Fields inherited from class at.tuwien.ifs.commons.gui.jsap.ParameterControl
TOOL_TIP_WIDTH
 
Constructor Summary
UnflaggedOptionControl(com.martiansoftware.jsap.UnflaggedOption opt)
           
UnflaggedOptionControl(com.martiansoftware.jsap.UnflaggedOption opt, com.martiansoftware.jsap.JSAPResult result)
           
 
Method Summary
 String[] getCommandLine()
           
 OptionEditor getEditor()
           
 boolean isRequired()
           
(package private)  boolean isValid()
           
 
Methods inherited from class at.tuwien.ifs.commons.gui.jsap.ParameterControl
createFlagString, createParameterControl, formatToolTip, getLabel, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editor

private OptionEditor editor

opt

private final com.martiansoftware.jsap.UnflaggedOption opt
Constructor Detail

UnflaggedOptionControl

public UnflaggedOptionControl(com.martiansoftware.jsap.UnflaggedOption opt)
Parameters:
opt - The UnflaggedOption this editor is for.

UnflaggedOptionControl

public UnflaggedOptionControl(com.martiansoftware.jsap.UnflaggedOption opt,
                              com.martiansoftware.jsap.JSAPResult result)
Parameters:
opt - The UnflaggedOption this editor is for.
Method Detail

getEditor

public OptionEditor 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

isRequired

public boolean isRequired()
Overrides:
isRequired in class ParameterControl

isValid

boolean isValid()
Specified by:
isValid in class ParameterControl