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 |
Report |
console
To Output log informations.
|
GralArea9_ifc |
gui |
GralMng_ifc |
guiAccess |
GralCfgData |
guiCfgData
The configuration data for graphical appearance.
|
GralArea9Window |
guiW |
MainCmd_ifc |
mainCmd |
protected GralTabbedPanel |
mainTabPanel |
GralMngBuild_ifc |
panelBuildIfc
Panel-Management-interface for the panels.
|
protected GralPlugUser2Gral_ifc |
plugUser2Gui |
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() |
protected void |
userInit()
Will be overridden...
|
public GralMng _gralMng
protected GralUserAction actionFile
public final Report console
public final GralArea9_ifc gui
public GralMng_ifc guiAccess
public final GralCfgData guiCfgData
public final GralArea9Window guiW
public final MainCmd_ifc mainCmd
protected GralTabbedPanel mainTabPanel
public GralMngBuild_ifc panelBuildIfc
protected final GralPlugUser2Gral_ifc plugUser2Gui
protected GralPlugUser_ifc user
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.
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 void appendTextInfoBox(java.lang.CharSequence text)
public final void execute()
protected void finishMain()
Closeable.close()
.public GralPlugUser_ifc getPluggedUser()
protected void initGuiAreas(java.lang.String sMainArea)
protected void initMain()
protected void initMenuGralDesigner()
public static void main(java.lang.String[] args)
args
- Some calling arguments are taken. This is the GUI-configuration especially.public void setTextInfoBox(java.lang.CharSequence text)
public void showInfoBox(java.lang.CharSequence text)
protected void stepMain()
protected void userInit()