|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ConForM.CoopnTools.CoKer.CoopnMultiTextOption
Textual array options in CO-OPN tools environments. The values of these options may be given by decoding a specific option with parameter in the command line or by an apposite graphical dialog.
Field Summary | |
protected java.lang.String |
badOptionSText
|
protected java.lang.String |
badOptionText
|
protected javax.swing.JTextField |
component
|
protected java.lang.String[] |
defaultValue
|
protected java.io.PrintWriter |
errStream
|
protected java.lang.String |
helpText
|
protected java.lang.String |
label
|
protected int |
level
|
protected java.lang.String |
name
|
protected java.lang.String |
paramText
|
protected java.lang.String |
trigger
|
protected java.lang.String |
triggerText
|
Fields inherited from interface ConForM.CoopnTools.CoKer.CoopnOption |
ALL, BASIC, EXTENDED |
Constructor Summary | |
CoopnMultiTextOption(java.lang.String trigger,
int level,
java.lang.String[] defaultValue,
CoopnEnvMgr envMgr)
Creates a new textual option with the default resource file. |
|
CoopnMultiTextOption(java.lang.String trigger,
int level,
java.lang.String defaultValue,
CoopnEnvMgr envMgr)
Creates a new textual option with the default resource file. |
|
CoopnMultiTextOption(java.lang.String trigger,
int level,
java.lang.String resource,
java.lang.String[] defaultValue,
CoopnEnvMgr envMgr)
Creates a new textual option. |
|
CoopnMultiTextOption(java.lang.String trigger,
int level,
java.lang.String resource,
java.lang.String defaultValue,
CoopnEnvMgr envMgr)
Creates a new textual option. |
Method Summary | |
boolean |
decodeCommandLine(java.util.List elements,
java.util.Map decodedOptions)
Decode the command line. |
boolean |
decodeDialog(java.util.Map decodedOptions)
Decode the dialog component. |
javax.swing.JComponent |
getDialogComponent()
Return the SWING component associated to the option; for instance, a checkbox in the case of "-a". there is one dialog component per flag object; multiple invocations to this method of the same object will return each time the same JComponent. |
java.lang.String |
getHelpText()
Return the help text associated to the option; for instance, "specify the output file" for "-o file". |
java.lang.String |
getLabel()
Return the label of the option; for instance "output file" for "-o file". |
int |
getLevel()
Get the level of the option. |
java.lang.String |
getName()
Return the name of the option; for instance, "-o file" for option "-o file". |
java.lang.String |
parameterText()
Return the parameter text of the option; for instance, "file" for option "-o file". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String trigger
protected int level
protected java.lang.String[] defaultValue
protected java.lang.String badOptionSText
protected java.io.PrintWriter errStream
protected java.lang.String label
protected java.lang.String helpText
protected java.lang.String paramText
protected java.lang.String triggerText
protected java.lang.String name
protected javax.swing.JTextField component
protected java.lang.String badOptionText
Constructor Detail |
public CoopnMultiTextOption(java.lang.String trigger, int level, java.lang.String resource, java.lang.String[] defaultValue, CoopnEnvMgr envMgr)
trigger
- the trigger text, for instance "a"level
- the level of option, one of ALL, BASIC or
EXTENDEDresource
- the resource file for the trigger, or null
for the default resource file; following
string keys are serached: LABELx and HELPx,
where x is the triggerdefaultValue
- the default valueenvMgr
- the associated environment managerpublic CoopnMultiTextOption(java.lang.String trigger, int level, java.lang.String[] defaultValue, CoopnEnvMgr envMgr)
trigger
- the trigger text, for instance "a"level
- the level of option, one of ALL, BASIC or
EXTENDEDdefaultValue
- the default valueenvMgr
- the associated environment managerpublic CoopnMultiTextOption(java.lang.String trigger, int level, java.lang.String resource, java.lang.String defaultValue, CoopnEnvMgr envMgr)
trigger
- the trigger text, for instance "a"level
- the level of option, one of ALL, BASIC or
EXTENDEDresource
- the resource file for the trigger, or null
for the default resource file; following
string keys are serached: LABELx and HELPx,
where x is the triggerdefaultValue
- the default value, as a string of elements
separated by the system path separator.envMgr
- the associated environment managerpublic CoopnMultiTextOption(java.lang.String trigger, int level, java.lang.String defaultValue, CoopnEnvMgr envMgr)
trigger
- the trigger text, for instance "a"level
- the level of option, one of ALL, BASIC or
EXTENDEDdefaultValue
- the default value, as a string of elements
separated by the system path separator.envMgr
- the associated environment managerMethod Detail |
public java.lang.String parameterText()
parameterText
in interface CoopnParamOption
public java.lang.String getName()
getName
in interface CoopnOption
public java.lang.String getLabel()
getLabel
in interface CoopnOption
public java.lang.String getHelpText()
getHelpText
in interface CoopnOption
public javax.swing.JComponent getDialogComponent()
getDialogComponent
in interface CoopnOption
public int getLevel()
getLevel
in interface CoopnOption
public boolean decodeCommandLine(java.util.List elements, java.util.Map decodedOptions)
decodeCommandLine
in interface CoopnOption
elements
- A list of StringdecodedOptions
- The mapping of optionspublic boolean decodeDialog(java.util.Map decodedOptions)
decodeDialog
in interface CoopnOption
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |