protected class Compiler.Phase_gui extends Compiler.Phase
abbrev, currentOptionElement, name, option_qualifier
validating
Modifier | Constructor and Description |
---|---|
protected |
Phase_gui() |
Modifier and Type | Method and Description |
---|---|
protected void |
makeGuiField(Class cl,
String type)
Wraps the Java class and calls
makeGuiField(MetaType, String) |
protected void |
makeGuiField(Class cl,
String type,
String args)
Wraps the Java class and calls
makeGuiField(MetaType, String, String) |
protected void |
makeGuiField(MetaType cl,
String type)
Supplies empty args and and calls
makeGuiField(MetaType, String, String) |
protected void |
makeGuiField(MetaType cl,
String type,
String args)
Add a statement to the "populate()" method to generate the input field,
and to the conversion methods, and a variable to store its access.
|
void |
makeNoArgSwitch()
Make gui input field and aux methods for an option without arguments (switch)
|
void |
translate(Element_optionlist olist)
Main entry point, generates the gui representatives and adds them to the
guiclass . |
void |
visit(Element_bool el)
Make gui input field and aux methods for an argument of boolean type
|
void |
visit(Element_comment element)
Generate the GUI label for a separating comment.
|
void |
visit(Element_enum el)
Make gui input field and aux methods for an argument of a particular enumeration type
|
void |
visit(Element_enumset el)
Make gui input field and aux methods for an argument of a particular enum set type
|
void |
visit(Element_float el)
Make gui input field and aux methods for an argument of float type
|
void |
visit(Element_int el)
Make gui input field and aux methods for an argument of integer type
|
void |
visit(Element_option element)
Generate all GUI elements and auxiliary methods for the visited option.
|
void |
visit(Element_rat el)
Make gui input field and aux methods for an argument of Rational type
|
void |
visit(Element_rep el)
Make all gui objects and aux methods for a repeting group of arguments.
|
void |
visit(Element_string el)
Make gui input field and aux methods for an argument of String type
|
void |
visit(Element_uri el)
Make gui input field and aux methods for an argument of uri/file name type
|
bothtags_formatted, bothtags, ERROR, longestname, longesttag, shortestname, shortesttag, WARNING
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
visit
public void translate(Element_optionlist olist)
guiclass
. (This was created by the main method
compile(Element_optionlist, String, String, String, String, Format, MessageReceiver)
and stored globally.public void visit(Element_comment element)
public void visit(Element_option element)
visit
in class Compiler.Phase
protected void makeGuiField(Class cl, String type)
makeGuiField(MetaType, String)
protected void makeGuiField(Class cl, String type, String args)
makeGuiField(MetaType, String, String)
protected void makeGuiField(MetaType cl, String type)
makeGuiField(MetaType, String, String)
protected void makeGuiField(MetaType cl, String type, String args)
cl
- the class of the GUI widget
(for instance eu.bandm.tools.option.runtime.Gui.Field_in
)type
- the text fragment indicating the type, to construct the method call.args
- additional arguments (as Text) added to the factory method call.public void visit(Element_int el)
public void visit(Element_float el)
public void visit(Element_rat el)
public void makeNoArgSwitch()
public void visit(Element_bool el)
public void visit(Element_string el)
public void visit(Element_uri el)
public void visit(Element_enum el)
public void visit(Element_enumset el)
public void visit(Element_rep el)
see also the complete user documentation .