什么是最好的方法来设计GWT应用程序? [英] What is the best approach towards styling GWT applications?

查看:167
本文介绍了什么是最好的方法来设计GWT应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GWT中的一般方法是使用面板,然后应用自定义CSS主题以获得自定义外观。虽然我可以通过CSS修补来实现我的GWT应用程序的一定程度的个性化,我想知道别人通常如何处理造型。

General approach in GWT is to use Panels and then apply custom CSS themes to get a customized look. While I can achieve a certain extent of personalization of my GWT app through CSS tinkering, I was wondering how others generally approach styling.

我遇到的一些建议通过使用HTMLPanel来管理使用纯HTML的布局。这样,一个人可以直接在应用程序中使用HTML模型,而无需对所有布局进行编码。

Some of the suggestions I came across the web were to manage layout with plain HTML, through use of HTMLPanel's. This way one can straightaway use the HTML mock-up within the application without having to code all the layout.

因此,您认为最好的和最不痛苦的方法方法布局和自定义样式的GWT应用程序?

So what in your opinion is the best and least painful way to approach layout and custom styling of GWT application?

推荐答案

这一切都取决于你,你的经验,你的团队等: / p>

It all depends - on you, your experience, your team, etc:


  1. 面板,小部件和合成的通常/较老的方法将更容易与更熟悉的工作:


    • 如果您是Java程序员经历了像Swing等框架(我认为这是GWT团队的点),

    • 或者如果你从一般的桌面世界。

  1. The usual/older approach of Panels, Widgets and Compositing will be easier to work with/more familiar:
    • If you are a Java programmer experienced with frameworks like Swing, etc. (I think that was the point of the GWT team),
    • Or if you come from the "desktop world" in general.

  • 推荐如果你刚刚开始使用GWT的经验(看来UiBinder在这里留下来,并且允许比上述方法更多的灵活性),

  • 推荐如果你有Web开发的经验(或使用标记的桌面框架,如.NET的XAML等)将在熟悉的HTML / XML世界中工作,

  • 如果你在一个更大的团队工作,你有指定的设计师负责web应用程序的外观不知道/关心GWT)。

上述方法都不是完美的 - 这就是为什么值得了解他们的强项和弱项 - 但是最终决定应该是你自己的,因为你知道你/你的团队能力最好:)

None of the above approaches is perfect - that's why it's worth to know their strong and weak points - but the end decision should be yours alone, since you know your/your team's capabilities best :)

这篇关于什么是最好的方法来设计GWT应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆