public class GralArea9MainCmd extends MainCmd
MainCmd
for graphic applications.
It provides up to 9 areas for panels. With them a basic partitioning of panels can be done.
See GralArea9_ifc
.
This instance can used for graphical output without any inheritance in an user application.
The user application may inherit from GuiCfg
instead or use GuiCfg with a special plugin
and text-given graphic configuration. GuiCfg aggregates this class.
Follow the pattern in GuiCfg.main(String[])
to build a users application.MainCmd.Argument, MainCmd.SetArgument
Modifier and Type | Field and Description |
---|---|
protected GuiCallingArgs |
cargs
Aggregation to given instance for the command-line-argument.
|
GralMng |
gralMng |
GralArea9_ifc |
gui |
(package private) LogMessage |
log |
(package private) java.lang.String |
sArgError |
static int |
version
Version, history and license.
|
argList, bHelpIswritten, cmdLineArgs, currdir, dateFormatMsg, errCmdline, fReport, kError_writeInfoDirectly, kInfo_writeInfoDirectly, kInfoln_writeInfoDirectly, kWarning_writeInfoDirectly, listAboutInfo, listHelpInfo, logMessageImplReport, mError_writeInfoDirectly, mNewln_writeInfoDirectly, msgDisp, mWarning_writeInfoDirectly, nLevelDisplayToReport, nLogLevel, nReportLevelDisplay, outCmdline, sVersion
anytime, debug, error, eventOrder, exitSuccessfull, exitUserAbort, exitWithArgumentError, exitWithErrors, exitWithFileProblems, exitWithNotes, exitWithWarnings, fineDebug, fineEventOrder, fineInfo, info, interested, mNeverOutputToDisplay, mReportLevel, warning
Constructor and Description |
---|
GralArea9MainCmd(GuiCallingArgs cargs,
java.lang.String[] args)
ctor called in static main.
|
Modifier and Type | Method and Description |
---|---|
protected void |
callWithoutArguments()
Invoked from parseArguments if no argument is given.
|
protected boolean |
checkArguments()
Checks the cmdline arguments relation together.
|
void |
exit()
Exits the cmdline application with the maximum of setted exit error level.
|
boolean |
parseArgumentsAndInitGraphic(java.lang.String sTitle,
java.lang.String sOutputArea)
Builds the graphic and parses the command line parameters.
|
boolean |
parseArgumentsAndInitGraphic(java.lang.String sTitle,
java.lang.String sOutputArea,
char sizeShow,
java.lang.String position)
Builds the graphic and parses the command line parameters.
|
protected boolean |
testArgument(java.lang.String arg,
int nArg)
Tests one argument.
|
addAboutInfo, addArgument, addHelpInfo, addMsgConfig, addStandardHelpInfo, close, currdir, executeCmdLine, executeCmdLine, executeCmdLine, executeCmdLine, executeCmdLine, executeCmdLine, flush, flushReport, getArgument, getExitErrorLevel, getLogging_ifc, getLogMessageErrorConsole, getLogMessageOutputConsole, getLogMessageOutputFile, getReportFileName, getReportLevel, getReportLevelFromIdent, isOnline, openReportfile, parseArguments, parseArguments, report, report, reportln, reportln, sendMsg, sendMsgTime, sendMsgVaList, setcurrdir, setExitErrorLevel, setLogMessageDestination, setOutputChannels, setReportLevel, setReportLevelToIdent, startCmdLine, startCmdLine, switchToWindowOrStartCmdline, writeAboutInfo, writeDirectly, writeError, writeError, writeErrorDirectly, writeHelpInfo, writeInfo, writeInfoln, writeStackTrace, writeWarning, XXXassertion
public static final int version
MsgDispatcher
was prepared to use.
This capability is removed from here yet. It should be a part of the application. See GuiCfg.main(String[])
.
Inspector
will be initialized only if the command line argument
"-inspectorPort=" is given. That parameter in form "UDP:ip:port" is used.
#parseArgumentsAndInitGraphic(String, String, int, int, int, int)
for determination of display coordinates in the users application.
Getting size arguments from main-args.
public GralArea9_ifc gui
final LogMessage log
protected final GuiCallingArgs cargs
java.lang.String sArgError
public GralArea9MainCmd(GuiCallingArgs cargs, java.lang.String[] args)
cargs
- aggregation to command-line-argument data, it will be filled here.args
- The command-line-calling arguments from static mainsTitle
- Title in title linesOutputArea
- area for output, for example "3A3C".public boolean parseArgumentsAndInitGraphic(java.lang.String sTitle, java.lang.String sOutputArea)
sTitle
- Title for windowsOutputArea
- Use 1..3 for row and A..C for column in form for example "3A3C".
In this example the output box occupies all 3 columns (A to C) from the 3. (= bottom) row
of the 9 areas. If null is used, the default selection is "3A3C".public boolean parseArgumentsAndInitGraphic(java.lang.String sTitle, java.lang.String sOutputArea, char sizeShow, java.lang.String position)
sTitle
- Title for window as default if -title= is not given as argsOutputArea
- Use 1..3 for row and A..C for column in form for example "3A3C".
In this example the output box occupies all 3 columns (A to C) from the 3. (= bottom) row
of the 9 areas. If null is used, the default selection is "3A3C".protected boolean testArgument(java.lang.String arg, int nArg)
testArgument
in class MainCmd
argc
- String of the actual parsed argument from cmd linenArg
- number of the argument in order of the command line, the first argument is number 1.protected void callWithoutArguments()
callWithoutArguments
in class MainCmd
protected boolean checkArguments()
checkArguments
in class MainCmd
public void exit()
org.vishia.mainCmd.MainCmd