public class ToolOption
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
org.eclipse.swt.widgets.Text |
argbox
Holds/displays text arguments if any
|
static int |
BOOL |
org.eclipse.swt.widgets.Button |
browser
Launches file/directory browser for argbox
|
static int |
COMBO |
org.eclipse.swt.widgets.Combo |
combopt |
java.lang.String |
confArgString
Name of the configuration value associated with the argument of this
option, if any
|
java.lang.String |
confDefString
Name of the configuration value associated with the default argument of
this option, if any
|
java.lang.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
|
java.lang.String |
defText
The default value for the argument, if any
|
static int |
DIR |
boolean |
fieldrequired |
static int |
FILE |
java.lang.String |
fileLike |
boolean |
isArgument
If true this option is for an argument, if false it is for an environment
variable
|
java.lang.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 |
org.eclipse.swt.widgets.Spinner |
numopt |
java.lang.String |
optID |
java.lang.StringBuffer |
optionLine
The whole option as sent to the system, up to the argument component
|
java.lang.String |
optLabel
Text for the option button
|
java.lang.String |
optName
The name, or prefix of the option
|
org.eclipse.swt.widgets.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
|
java.lang.String |
setOff |
java.lang.String |
setOn |
static int |
SUBOPT |
static int |
TEXT |
static int |
TOGGLE |
java.lang.String |
toolTip
Context sensitive help info
|
int |
type
Specifies the type of option(bool,text,dir,file or combo)
|
org.eclipse.swt.widgets.Button |
unitCheck
The check button to activate/deactivate this option if it is optional
|
java.lang.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 |
|---|---|
java.lang.String |
getArg() |
java.lang.String |
getID() |
java.lang.String |
getName() |
boolean |
getSelected() |
void |
setArg(int arg)
Sets the arg widgt's value with a numerical input, if valid
|
void |
setArg(java.lang.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 java.lang.String[] items
public org.eclipse.swt.widgets.Button unitCheck
public org.eclipse.swt.widgets.Label reqLabel
public org.eclipse.swt.widgets.Text argbox
public org.eclipse.swt.widgets.Button browser
public boolean defState
public int type
public java.lang.String optName
public java.lang.String optID
public java.lang.String defText
public int defNum
public int minNum
public int maxNum
public java.lang.String optLabel
public java.lang.String toolTip
public java.lang.String valueToolTip
public boolean required
public boolean visible
public org.eclipse.swt.widgets.Combo combopt
public org.eclipse.swt.widgets.Spinner numopt
public boolean isArgument
public java.lang.String setOn
public java.lang.String setOff
public boolean fieldrequired
public java.lang.StringBuffer optionLine
public java.lang.String confStateString
public java.lang.String confArgString
public java.lang.String confDefString
public java.lang.String fileLike
public java.lang.String getArg()
public java.lang.String getID()
public java.lang.String getName()
public boolean getSelected()
public void setArg(int arg)
public void setArg(java.lang.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.