I recently started work on a GUI project using some form of declarative language. I mean, I need to describe the hierarchy of objects without specifying the type of GUI widgets that will be used to “show” this hierarchy. For example, for some existing H hierarchy , using JSON notation (or something like that):
H =
{
"title" : "Label_1"
"children" :
[
{
"title" : "Label_2"
"children":
[
{
"title": "Field_A"
"type": "Integer"
"value": 10
},
{
"title": "Field_B"
"type": "String"
"value": "YES"
}
]
}
]
}
Someone can create a simple window that will be shown to the user by clicking the button labeled "Label_1". The window can then be entitled "Label_2" and have two fields labeled "Field_A" and "Field_B", taking integer and logical values, respectively.
Someone else might put this hierarchy in a list of trees, for example
--------------------------------------------------------
>Label_1 |
>Label_2 |
>Field_A | 10
>Field_B | YES
: , - - ? JSON? , (- / ). , . , , .
.