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 |
---|---|
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.
|
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.
|
public static final int version
org/vishia/gral/cfg/Syntax.zbnf
as file inside jar (ressource).
It is read with getSyntaxFromJar()
@Deprecated public final java.lang.String XXXsyntaxStd
GralCfgZbnf(Report, File)
is used.
This syntax is used with the constructorpublic GralCfgZbnf()
public GralCfgZbnf(Report log, java.io.File fileSyntax)
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
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.