public class GralCfgZbnf extends java.lang.Object
GralCfgData
, which contains all data of read configuration
after invoking the read method. That configuration data are associated in
GralCfgBuilder#GuiCfgBuilder(GralCfgData, GralMngBuild_ifc, File)
and used in
GralCfgBuilder.buildGui(org.vishia.msgDispatch.LogMessage, int)
to build the GUI appearance.
The building of the GUI with the GralCfgData
can be done without this script reader too,
but this class reads that data from a script.Modifier and Type | Field and Description |
---|---|
private MainCmdLogging_ifc |
console |
(package private) java.io.File |
currentDir
The current directory is that directory, where the config file is located.
|
private java.io.File |
fileSyntax |
private ZbnfParser |
parser |
static int |
version
Version and history
2018-09-17 Now the syntax is contained in
org/vishia/gral/cfg/Syntax.zbnf as file inside jar (ressource). |
java.lang.String |
XXXsyntaxStd
Deprecated.
|
private ZbnfJavaOutput |
zbnfJavaOutput |
Constructor and Description |
---|
GralCfgZbnf() |
GralCfgZbnf(Report log,
java.io.File fileSyntax) |
Modifier and Type | Method and Description |
---|---|
void |
configureWithZbnf(java.lang.CharSequence configurationZbnf,
GralCfgData destination)
Configures the GUI using a description in a file.
|
java.lang.String |
configureWithZbnf(java.io.File fileConfigurationZbnf,
GralCfgData destination)
Configures the GUI using a description in a file.
|
(package private) java.lang.String |
getSyntaxFromJar() |
public static final int version
org/vishia/gral/cfg/Syntax.zbnf
as file inside jar (ressource).
It is read with getSyntaxFromJar()
private final ZbnfParser parser
private final ZbnfJavaOutput zbnfJavaOutput
private final MainCmdLogging_ifc console
private final java.io.File fileSyntax
@Deprecated public final java.lang.String XXXsyntaxStd
GralCfgZbnf(Report, File)
is used.
This syntax is used with the constructorjava.io.File currentDir
public GralCfgZbnf()
public GralCfgZbnf(Report log, java.io.File fileSyntax)
java.lang.String getSyntaxFromJar()
public java.lang.String configureWithZbnf(java.io.File fileConfigurationZbnf, GralCfgData destination)
#configureWithZbnf(String, String)
.
Because the configuration is containing in a user-accessible file, it may be faulty.
Than a error message was written on the own Report output. Therefore this routine
should be called after the main application is started. See example in appl.menu.Menu
.sTitle
- Title line for the applicationfileConfigurationZbnf
- File containing the configuration. The file should be exist and able to read.public void configureWithZbnf(java.lang.CharSequence configurationZbnf, GralCfgData destination) throws java.text.ParseException
#configureWithZbnf(String, String)
.
Because the configuration is containing in a user-accessible file, it may be faulty.
Than a error message was written on the own Report output. Therefore this routine
should be called after the main application is started. See example in appl.menu.Menu
.sTitle
- Title line for the applicationfileConfigurationZbnf
- File containing the configuration. The file should be exist and able to read.java.text.ParseException