开发 GUI 构建器应用程序
我正在寻找一个很好的框架来开发 GUI 构建器应用程序。 我们有一个应用程序,其中需要 100 多个自定义数据输入表单及其打印格式,并且每个客户都需要对这些进行一些修改。 我们使用基于java的开源templatnig框架开发了一个产品,以便将布局和字段定义存储在数据库中并动态呈现给用户。 我们也有一个应用程序来设计这些形式,但不能做视觉设计。
现在我正在尝试制作一个可视化表单设计器应用程序来生成这些表单。 任何人都可以建议一些可以使用的开源框架吗? 我可以使用 Eclipse 可视化编辑器吗? 还是使用 AntLR 开发某种 HTML 解析器,然后解析来自 Dreamweaver 等现有 GUI 构建器的 HTML 输出以获得所需的输出?
感谢和问候,
--卡南
I am looking for a nice framework for developing a GUI builder Application. We have an application where 100Os of custom data entry forms and their print formats are required and each client will need some modifications on these. We have a developed a product using java based open source templatnig frameworks so that the layout and field definition are stored in database and rendered dynamically to the user. We also have an appication to design these forms but cannot do visual design.
Now I am trying to make a Visual Form Designer application for generating these forms. Can any one suggest some open source frameworks than can be used? Can I use Eclipse Visual Editor? Or is it better to develop some kind of parser for HTML using AntLR and then parse the HTML output from already existing GUI builders like Dreamweaver to get the desired output?
Thanks and Regards,
-- Kannan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦,好问题!
我不知道您可以使用任何现成的框架。 然而,根据您的需求,我认为自己推出应该不会太难。
首先,您可能不想给用户太多的自由。 自由只会让他们有机会把事情搞砸,并使最终的形式难以使用。 根据您的描述,我认为这些字段是预定义的,因此用户只需自定义哪些字段出现在给定表单上,以及按什么顺序。 顺序可以是简单的事情,例如从上到下。 可以使用一些半智能自动布局来节省屏幕空间。 添加将字段分组在一起的功能可能也很有用,并且分组将导致某种标准的“组”小部件。
接受这样的简化功能,您实际上并不需要完整的 GUI 编辑器的灵活性。 几个列表视图,也许一个属性表和一个预览窗口就足以为您的用户提供他们所需的功能。
当然,这仅适用于屏幕形式。 打印表单的布局可能比较棘手,因为人们可能希望将尽可能多的字段塞进很小的空间,以便整个表单可以放在一页或其他东西上。 我真的没有任何建议给你,但也许类似的“简化”方法和一些智能自动布局可以工作。
总的来说,我的建议是:保持简单! (S...;)
Oooh, great question!
I wouldn't know any readily availble framework that you can use. Depending on your needs however, I think rolling your own shouldn't be too hard.
First of all, you probably wouldn't want to give the users too much freedom. Freedom only gives them the opportunity to mess things up and make the resultant forms hard to use. I think from your description that the fields are pre-defined, so that the user only needs to customize which fields appear on a given form, and in what order. Order can be a simple thing like top-to-bottom. Some semi-intelligent automatic layouting could be used to conserve screen space. Adding a feature to group fields together would probably also be useful, and grouping would lead to some kind of standard "group" widget.
Accepting simplified functionality like this, you don't really need the flexibility of a full gui editor. A couple of listviews, maybe a property sheet and a preview window will be enough to give your users the functionality they need.
Of course, this only holds for screen forms. Print forms may be trickier to layout, as people may want to cram as many fields as possible into very little space so the entire form can fit on a single page or something. I really don't have any suggestions for you there, but maybe a similar "simplified" approach with some intelligent auto-layouting could work.
Overall, my advice would be: Keep It Simple! (S... ;)