public class ToolOption extends Object
Modifier and Type | Field and Description |
---|---|
Text |
argbox
Holds/displays text arguments if any
|
static int |
BOOL |
Button |
browser
Launches file/directory browser for argbox
|
static int |
COMBO |
Combo |
combopt |
String |
confArgString
Name of the configuration value associated with the argument of this
option, if any
|
String |
confDefString
Name of the configuration value associated with the default argument of
this option, if any
|
String |
confStateString
Name of the configuration value associated with the toggle button state
for this option
|
int |
defNum
The default numerical value for numerical arguments, if any
|
boolean |
defState
Sets the default state of the check button
|
String |
defText
The default value for the argument, if any
|
static int |
DIR |
boolean |
fieldrequired |
static int |
FILE |
String |
fileLike |
boolean |
isArgument
If true this option is for an argument, if false it is for an environment
variable
|
String[] |
items
List of items availabel in the combo widget
|
int |
maxNum
The maximum numerical value for numerical arguments, if any
|
int |
minNum
The minimum numerical value for numerical arguments, if any
|
static int |
NUMBER |
Spinner |
numopt |
String |
optID |
StringBuffer |
optionLine
The whole option as sent to the system, up to the argument component
|
String |
optLabel
Text for the option button
|
String |
optName
The name, or prefix of the option
|
Label |
reqLabel
The label used if this option is required
|
boolean |
required
If true this option is always used and has just a title rather than a
checkbox
|
String |
setOff |
String |
setOn |
static int |
SUBOPT |
static int |
TEXT |
static int |
TOGGLE |
String |
toolTip
Context sensitive help info
|
int |
type
Specifies the type of option(bool,text,dir,file or combo)
|
Button |
unitCheck
The check button to activate/deactivate this option if it is optional
|
String |
valueToolTip
Context sensitive help info for entry widget
|
boolean |
visible
If false this option can not be seen or manipulated in the UI.
|
Constructor and Description |
---|
ToolOption()
Creates a new ToolOption
|
Modifier and Type | Method and Description |
---|---|
String |
getArg() |
String |
getID() |
String |
getName() |
boolean |
getSelected() |
void |
setArg(int arg)
Sets the arg widgt's value with a numerical input, if valid
|
void |
setArg(String arg)
Set's the arg widget's value with a string input, if valid
|
void |
setEnabled(boolean set)
Sets the tool option's widget to the enabled condition of the boolean input
|
void |
setIsArgument(boolean isarg)
Sets if this is an argument or an env variable.
|
boolean |
setSelected(boolean set)
Sets this option's selected status.
|
void |
setWidgetsEnabled(boolean bool)
Enable or disable (true or false) whichever widget this option uses to
take its argument value
|
protected boolean |
usesTextBox()
Determines if this option includes a text box
|
public static final int BOOL
public static final int TEXT
public static final int DIR
public static final int FILE
public static final int COMBO
public static final int NUMBER
public static final int SUBOPT
public static final int TOGGLE
public String[] items
public Button unitCheck
public Label reqLabel
public Text argbox
public Button browser
public boolean defState
public int type
public String optName
public String optID
public String defText
public int defNum
public int minNum
public int maxNum
public String optLabel
public String toolTip
public String valueToolTip
public boolean required
public boolean visible
public Combo combopt
public Spinner numopt
public boolean isArgument
public String setOn
public String setOff
public boolean fieldrequired
public StringBuffer optionLine
public String confStateString
public String confArgString
public String confDefString
public String fileLike
public String getArg()
public String getID()
public String getName()
public boolean getSelected()
public void setArg(int arg)
public void setArg(String arg)
arg
- public void setEnabled(boolean set)
set
- public void setIsArgument(boolean isarg)
isarg
- public boolean setSelected(boolean set)
set
- public void setWidgetsEnabled(boolean bool)
bool
- protected boolean usesTextBox()
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.