public class GuiCfg extends java.lang.Object
initMain()
: initializes the GUI
stepMain()
: Will be invoked in the main loop.
finishMain()
: invoked on exit.
main(String[])
. It is a complete ready to run application.
The content of the GUI can be controlled by a script. The command line arguments are parsed in
GralArea9MainCmd
, the universal or basic MainCmd for gral-GUI applications.
GralCfgZbnf
in the initMain()
routine.
Modifier and Type | Field and Description |
---|---|
GralMng |
_gralMng
Especially for debug access to the singleton instance, start with _ to present on top of variables.
|
protected GralUserAction |
actionFile |
(package private) GuiCallingArgs |
cargs
The calling arguments of this class.
|
private GralUserAction |
cmdInvoke
Registered as user action.
|
(package private) GralGraphicTimeOrder |
configGuiWithZbnf
Code snippet to run the ZBNF-configurator (text controlled GUI)
|
Report |
console
To Output log informations.
|
GralArea9_ifc |
gui |
GralMng_ifc |
guiAccess |
GralCfgData |
guiCfgData
The configuration data for graphical appearance.
|
GralArea9Window |
guiW |
(package private) GralGraphicTimeOrder |
initGraphic
Code snippet for initializing the GUI area (panel).
|
private Inspector |
inspector
Composition of a Inspector-Target instance.
|
MainCmd_ifc |
mainCmd |
protected GralTabbedPanel |
mainTabPanel |
GralMngBuild_ifc |
panelBuildIfc
Panel-Management-interface for the panels.
|
protected GralPlugUser2Gral_ifc |
plugUser2Gui |
private static GuiCfg |
singleton |
protected GralPlugUser_ifc |
user
Some actions may be processed by a user implementation.
|
static int |
version
The version, history and license.
|
Constructor and Description |
---|
GuiCfg(GuiCallingArgs cargs,
GralArea9MainCmd cmdGui,
GralPlugUser_ifc plugUser,
GralPlugUser2Gral_ifc plugUser2Gui,
java.util.List<java.lang.String> cfgConditions)
ctor for the main class of the application.
|
Modifier and Type | Method and Description |
---|---|
void |
appendTextInfoBox(java.lang.CharSequence text) |
void |
execute() |
protected void |
finishMain()
This routine is called on end of main-execution.
|
static GuiCfg |
get() |
GralPlugUser_ifc |
getPluggedUser() |
protected void |
initGuiAreas(java.lang.String sMainArea)
Initializes the areas for the panels and configure the panels.
|
protected void |
initMain() |
protected void |
initMenuGralDesigner() |
static void |
main(java.lang.String[] args)
The command-line-invocation (primary command-line-call).
|
void |
setTextInfoBox(java.lang.CharSequence text) |
void |
showInfoBox(java.lang.CharSequence text) |
protected void |
stepMain() |
(package private) void |
stop() |
protected void |
userInit()
Will be overridden...
|
public static final int version
GuiCfg(GuiCallingArgs, GralArea9MainCmd, GralPlugUser_ifc, GralPlugUser2Gral_ifc, List)
:
cfgConditions.
#showMethods
GralPlugUser_ifc
which may be null: A plugin may be instantiated
by reflection with String given class name. It may be possible to give it as parameter too.
GralPlugUser2Gral_ifc
which may be null.
Idea: a derived class should support it. Other Idea: either both via reflection or both maybe direct.
GralCfgDesigner
.
_gralMng
now.
Generally an application may have more as one tabbed panels.
initMain()
as override-able method instead direct call of initializing.
GuiCallingArgs
as primary class, not an inner class here.
GralArea9MainCmd
as extra primary class.
GralPanelContent
instead the special InspcGuiPanelContent.
userInit()
as override-able method instead direct call of user.init().
Advantage: User can do anything in the derived class.
private final Inspector inspector
public final Report console
final GuiCallingArgs cargs
public final GralCfgData guiCfgData
protected GralPlugUser_ifc user
protected final GralPlugUser2Gral_ifc plugUser2Gui
public final GralArea9_ifc gui
public final GralArea9Window guiW
public final MainCmd_ifc mainCmd
public GralMng _gralMng
public GralMngBuild_ifc panelBuildIfc
public GralMng_ifc guiAccess
protected GralTabbedPanel mainTabPanel
GralGraphicTimeOrder initGraphic
GralGraphicTimeOrder configGuiWithZbnf
private final GralUserAction cmdInvoke
protected GralUserAction actionFile
public GuiCfg(GuiCallingArgs cargs, GralArea9MainCmd cmdGui, GralPlugUser_ifc plugUser, GralPlugUser2Gral_ifc plugUser2Gui, java.util.List<java.lang.String> cfgConditions)
MainCmdWin
.
cargs
- The given calling arguments.cmdGui
- The GUI-organization.plugUser2Gui
- maybe possible a instances which plugs the user instance to the GUI.
This instance may be defined in the context which calls this constructor.
Note: A user instance may be instantiated with the cmd line calling argument "-plugin=JAVACLASSPATH"public GralPlugUser_ifc getPluggedUser()
protected void userInit()
protected void initGuiAreas(java.lang.String sMainArea)
protected void initMenuGralDesigner()
protected void initMain()
protected void stepMain()
protected void finishMain()
Closeable.close()
.public final void execute()
public void showInfoBox(java.lang.CharSequence text)
public void setTextInfoBox(java.lang.CharSequence text)
public void appendTextInfoBox(java.lang.CharSequence text)
public static void main(java.lang.String[] args)
args
- Some calling arguments are taken. This is the GUI-configuration especially.void stop()