|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.etfw.toolopts.ToolOption
public class ToolOption
An individual element encapsulating a single option for display and user-manipulation/selection in an option pane
| Field Summary | |
|---|---|
Text |
argbox
Holds/displays text arguments if any |
static int |
BOOL
|
Button |
browser
Launches file/directory browser for argbox |
static int |
COMBO
|
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
|
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 |
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) |
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 Summary | |
|---|---|
ToolOption()
Creates a new ToolOption |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 Button unitCheck
public Label reqLabel
public Text argbox
public 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 Combo combopt
public 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
| Constructor Detail |
|---|
public ToolOption()
| Method Detail |
|---|
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()
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||