public final class GralCfgData
extends java.lang.Object
GralCfgZbnf
or others.
It is changed by user handling on GUI.
It can be written out in a new configuration fileModifier and Type | Class and Description |
---|---|
class |
GralCfgData.Conditional |
static class |
GralCfgData.DataReplace
ZBNF: DataReplace::= <$?
|
static class |
GralCfgData.GuiCfgButton
ZBNF: Button::= ... ;
Class for instance to capture and store the Button data.
|
static class |
GralCfgData.GuiCfgColor |
static class |
GralCfgData.GuiCfgCoord
ZBNF: |
|
static class |
GralCfgData.GuiCfgCurveLine
ZBNF: {
|
static class |
GralCfgData.GuiCfgCurveview
ZBNF: Table::= ... ;
Class for instance to capture and store the Table data.
|
static class |
GralCfgData.GuiCfgImage
ZBNF: Text::= ... ;
Class for instance to capture and store the Table data.
|
static class |
GralCfgData.GuiCfgInputFile
ZBNF: ShowField::= ... ;
Class for instance to capture and store the Table data.
|
static class |
GralCfgData.GuiCfgLed
ZBNF: Text::= ... ;
Class for instance to capture and store the Table data.
|
static class |
GralCfgData.GuiCfgLine
ZBNF: Line::= ... ;
Class for instance to capture and store the Table data.
|
static class |
GralCfgData.GuiCfgShowField
ZBNF: ShowField::= ... ;
Class for instance to capture and store the Table data.
|
static class |
GralCfgData.GuiCfgTable
ZBNF: Table::= ... ;
Class for instance to capture and store the Table data.
|
static class |
GralCfgData.GuiCfgText
ZBNF: Text::=
|
static class |
GralCfgData.GuiCfgType
ZBNF: Text::= ... ;
Class for instance to capture and store the Table data.
|
static class |
GralCfgData.GuiCfgWidget
This is the base class of all configuration data for one widget.
|
Modifier and Type | Field and Description |
---|---|
private GralCfgData.Conditional |
actualConditional |
(package private) java.util.List<java.lang.String> |
cfgConditions |
(package private) GralCfgPanel |
currPanel
The current panel where a widget is associated to, with or without panel definition.
|
(package private) GralCfgWindow |
currWindow
The current window where new config elements are written in in order of configuration.
|
java.util.Map<java.lang.String,java.lang.String> |
dataReplace
Map of replacements of paths to data.
|
private GralCfgData.DataReplace |
dataReplaceTempInstance
ZBNF: DataReplace::= <$?
|
(package private) GralCfgWindow |
firstWindow
The first window to create.
|
private java.util.Map<java.lang.String,GralCfgPanel> |
idxPanels
Map of panels.
|
(package private) java.util.Map<java.lang.String,GralCfgData.GuiCfgWidget> |
idxTypes |
private java.util.Map<java.lang.String,GralCfgElement> |
idxWindow
Map of panels.
|
(package private) java.util.List<GralCfgElement> |
listElementsInTextfileOrder
TODO widgets sorted to panels and tabs!
|
private GralCfgElement |
newGuiElement
The element is created if the text if
set_Element(String) is invoked
before newGuiElement is invoked. |
static int |
version
Version and history
2022-09-23
GralCfgData.GuiCfgWidget.set_data(String) now sets default also the name. |
Constructor and Description |
---|
GralCfgData(java.util.List<java.lang.String> conditions) |
Modifier and Type | Method and Description |
---|---|
void |
add_Conditional(GralCfgData val)
It is called on end of conditional block.
|
void |
add_Element(GralCfgElement value)
ZBNF: filled on "GuiDialogZbnfControlled::= ...
|
void |
add_Type(GralCfgData.GuiCfgType data)
ZBNF: Type::= typeName ( param );
|
void |
clear() |
java.util.Set<java.util.Map.Entry<java.lang.String,GralCfgPanel>> |
getPanels() |
java.util.Set<java.util.Map.Entry<java.lang.String,GralCfgElement>> |
getWindows() |
GralCfgData |
new_Conditional()
ZBNF: DataReplace: < ?
|
GralCfgData.DataReplace |
new_DataReplace()
From ZBNF: DataReplace: < DataReplace>
|
GralCfgElement |
new_Element()
ZBNF: filled on "GuiDialogZbnfControlled::= ...
|
GralCfgData |
new_ElseConditional()
ZBNF: DataReplace: < ?
|
GralCfgData.GuiCfgType |
new_Type()
ZBNF: Type::= typeName ( param );
|
void |
set_DataReplace(GralCfgData.DataReplace value)
From ZBNF: DataReplace: < DataReplace>
|
void |
set_Element(java.lang.String val)
ZBNF: DataReplace: < Element>
|
void |
set_elseCondition() |
void |
set_ifCondition(java.lang.String cond) |
void |
set_xSize(int value)
ZBNF: size( <#?
|
void |
set_ySize(int value)
ZBNF: size( <#?
|
(package private) void |
stop() |
(package private) void |
XXXprocessConfiguration(GralMngBuild_ifc panel) |
java.lang.String |
XXXreplacePathPrefix(java.lang.String path,
java.lang.String[] target) |
public static final int version
GralCfgData.GuiCfgWidget.set_data(String)
now sets default also the name.
Hence Show(data=path); is sufficient for a simple show field. The path is also the name for access.
new_Type()
.
GralCfgData.GuiCfgCurveLine.colorValue
= -1 initially to check whether it is given,
see GralCfgBuilder#buildWidget(GralCfgElement)
org.vishia.zbnf.ZbnfJavaOutput
to write result info in this class.
final java.util.List<java.lang.String> cfgConditions
private GralCfgData.Conditional actualConditional
private final GralCfgData.DataReplace dataReplaceTempInstance
private GralCfgElement newGuiElement
set_Element(String)
is invoked
before newGuiElement
is invoked. The association is temporary valid for the current element.public final java.util.Map<java.lang.String,java.lang.String> dataReplace
java.util.Map<java.lang.String,GralCfgData.GuiCfgWidget> idxTypes
final java.util.List<GralCfgElement> listElementsInTextfileOrder
GralCfgWindow firstWindow
GralCfgWindow currWindow
GralCfgPanel currPanel
private final java.util.Map<java.lang.String,GralCfgPanel> idxPanels
add_Element(GralCfgElement)
private final java.util.Map<java.lang.String,GralCfgElement> idxWindow
add_Element(GralCfgElement)
public void clear()
public java.util.Set<java.util.Map.Entry<java.lang.String,GralCfgPanel>> getPanels()
public java.util.Set<java.util.Map.Entry<java.lang.String,GralCfgElement>> getWindows()
public void set_ySize(int value)
public void set_xSize(int value)
public GralCfgData.DataReplace new_DataReplace()
public void set_DataReplace(GralCfgData.DataReplace value)
public GralCfgData new_Conditional()
public GralCfgData new_ElseConditional()
public void add_Conditional(GralCfgData val)
val
- public void set_ifCondition(java.lang.String cond)
public void set_elseCondition()
public GralCfgElement new_Element()
public void add_Element(GralCfgElement value)
java.text.ParseException
public void set_Element(java.lang.String val)
public GralCfgData.GuiCfgType new_Type()
public void add_Type(GralCfgData.GuiCfgType data)
void XXXprocessConfiguration(GralMngBuild_ifc panel)
public java.lang.String XXXreplacePathPrefix(java.lang.String path, java.lang.String[] target)
void stop()