从“本机 GWT”迁移至 GXT

发布于 2025-01-03 21:11:50 字数 225 浏览 1 评论 0原文

我正在考虑将我的 GWT 应用程序从“本机 GWT”迁移到 GXT,但是我想知道 GXT 中是否有一个主题看起来像 GWT 的本机主题,com.google.gwt.user.theme .standard.Standard

另外,在我的“本机 GWT”应用程序中,我将自己的 CSS 应用于一些小部件。 GXT 小部件的 CSS 格式是否与本机 GWT 小部件相同?例如按钮、菜单栏、面板等。

I am thinking of migrating my GWT app from "native GWT" to GXT, however I want to know whether there is a theme in GXT that looks just like the native theme of GWT, com.google.gwt.user.theme.standard.Standard

Also in my "native GWT" application I apply my own css to some widgets. Does the CSS-format for widgets the same with GXT as it is with the native GWT widgets? Like for Button, MenuBar, Panels etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

老旧海报 2025-01-10 21:11:50

基本上 GXT 2 只有两个主题(蓝色和灰色)。没有这样一个看起来像原生 GWT 的主题,但这就是为什么你应该选择 GXT,因为它有丰富的组件,你不必关心你的 css 和其他东西。改变你的风格也不容易。

Ext GWT 2.0,小部件负责创建它们的 DOM 结构
直接地。这可以通过手动创建元素或通过
使用 HTML 片段。小部件的 HTML 是从创建的
字符串、来自 XTemplate 或通过组装 DOM 元素。 CSS
然后,小部件将类名应用于元素。有了这个
方法,小部件的视图与小部件本身紧密绑定,并且
CSS 类名通常被硬编码到小部件中。

因为构建的方式确实很难改变组件的样式。但新版本 3.0 有一种新方法,可以更轻松地更改您的样式,您还可以与本机 gwt 小部件结合使用。

您可以查看网站

Basically GXT 2 has just two themes (blue and gray). There is no such a theme that looks like native GWT, but thats why you should choose GXT, becuose it has rich components and you don't have to take care of your css and other stuffs. Also is not easy to change you style.

Ext GWT 2.0, widgets are responsible for creating their DOM structure
directly. This is done either by manually creating the elements or by
using an HTML fragment. The HTML for the widget is created from
strings, from an XTemplate, or by assembling DOM elements. The CSS
class names are then applied to the elements by the widgets. With this
approach, a widget’s view is tightly bound to the widget itself and
CSS class names are generally hardcoded into the widget.

Because the way how was build is really difficult to change the style of your component. But the new version 3.0 has a new approach that make easier to change your style and you can also combine with native gwt widget.

You can check the website

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文