是否有基于元数据的声明这样的&GT产生的UI库;&GT ;? [英] Is there a library that generates UIs based on metadata declarations like this>>?
问题描述
你知道一个库,它允许我们通过刚才说,它应该生成,生成UI?
Do you know about a library that allows us to generate UI by just stating that it should be generated?
我想一定谁实施了机制,使我们能够改变code是这样一个人:
I think there must be a person who have implemented a mechanism allowing us to transform code like this:
class Main {
@Command
int add(int a, int b) {
return a+b;
}
}
成,也就是说,有2个文本框和一个按钮对话框?或进入一个WebForm?你有这个想法,对吧?
into, say, a dialog with 2 text fields and a button? Or into a webform? You've got the idea, right?
类型的用户界面和语言并不重要,如果它允许我们简单地说,这应该是一个命令,没有这些大量散落在应用程序的XML文件。
The type of UI and the language doesn't matter, if it allows us to simply say, "This should be a command" without those lots of XML files scattered all over the application.
和,顺便说一句,你怎么看待这种元编程的?
And, btw, what do you think about this kind of meta-programming?
推荐答案
你有没有看裸对象的?
这篇关于是否有基于元数据的声明这样的&GT产生的UI库;&GT ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!