问题标签 [gwt-widgets]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
988 浏览

gwt - GWT CSS String Parser

Does gwt have a built in parser for converting css based strings to java constructs?

IE I'm interested in writing my own widget that takes for instance height/width:

I could easily do some regex on this but I thought I'd see if there was some sort of built in mechanism for this, I'd hate to re-invent...

Also, I of course thought about just accepting double width, Style.Unit widthUnit in the constructor, but UiObject's setWidth takes a CSS string, so I still have to do some String munging, albeit the other way around. Ideally I'd have 2 constructors to achieve both possibilities with a simple mechanism to parse the Strings / dimensions and Units properly.

EDIT:

Forgot to mention the REASON that i'd like to parse out these values:

I'm trying to write a simple scroll panel (think iphone nav) so when a user clicks a button, a new 'item' scrolls in from the right.

On the backend this would be:
1) Fetch new scroll item
2) Extend scroll wrapper to accompany new item (this is where i need actual widths)
2) Append to item scroll wrapper
3) Animate scroll wrapper (by sliding left the width of 1 item) to expose newly added item to visible section of panel wrapper

The reason I need original widths is because I'd like to extend my scroller panel by the width of the item added to it. If I'm just getting strings, I can't exactly say setWidth( currentWidth + itemWidth)

Basically I'm trying to mimic JQuery Tools Scroller

0 投票
2 回答
590 浏览

eclipse - 拖放环境开始在 gwt 中开发

是否有任何拖放环境可以使用 GWT 小部件。或者任何用户友好的 IDE 或 IDE 上的插件,我记得使用 MyEclips 之类的东西来开发 Hibernate 比使用 .xml 文件更好。

0 投票
2 回答
6441 浏览

gwt - SmartGwt - 如何更改文本颜色?

是否可以更改 Gwt Widgets 中文本的颜色..

例如,假设我有一个带有 TreeGridFields 的 TreeGrid。

我可以更改打印树中的项目时呈现的颜色吗?

谢谢。

0 投票
1 回答
3623 浏览

gwt - GWT 值列表框编辑器

我对如何将 GWT 的 ValueListBox 与编辑器一起使用感到困惑。我收到此错误:

这是相关的代码。

这是带有 xmlns:g='urn:import:com.google.gwt.user.client.ui'> 的 ui.xml 中的内容

我肯定在这里遗漏了一些明显的东西。非常感谢。

0 投票
1 回答
4361 浏览

gwt - GWT 通知小部件?

你知道那里是否有任何用于 GWT 的通知小部件,比如这里的这个?

http://demo.vaadin.com/sampler#NotificationHumanized

0 投票
2 回答
1951 浏览

gwt - 全选 GWT SuggestBox 的焦点

我一直在搜索和搜索,但找不到在焦点上选择 GWT SuggestBox 小部件中所有文本的可用示例。我知道您必须将 focusListener 附加到小部件,但是然后呢?有人可以提供一个可行的例子吗?

0 投票
1 回答
360 浏览

gwt - 使用 GWT 的 TabLayoutPanel 在选项卡旁边添加任意文本

目前,我有一个带有几个选项卡的 TabLayoutPanel,每个选项卡内部都有一组面包屑。我希望能够在选项卡旁边(在 TabBar 本身内部)显示我的面包屑。我还没有看到有人这样做的任何例子,我开始相信我最终可能会自己重写他们的 TabLayoutPanel 类并在需要的地方实现它,但显然我宁愿不走那条路,除非别无选择.

有人对此有任何指导吗?

0 投票
2 回答
993 浏览

gwt - 自定义小部件和 @UiHandler

是否可以让自定义小部件对鼠标事件使用 @UiHandler 表示法?例如,当使用 GWT Designer 时,您可以右键单击自定义小部件,选择添加事件处理程序,然后选择 onClick。而不仅仅是 onAttachOrDetach。

问候亚历克斯

0 投票
4 回答
909 浏览

java - 将 GWT 中的字符串列表表示为编辑器中的小部件

我正在构建一个 GWT 应用程序。

我想将项目列表(List < String >)与编辑器相关联。

是否有任何支持编辑项目列表的内置小部件?

将显示逗号分隔值并知道如何将它们呈现回代理的东西。

0 投票
2 回答
472 浏览

eclipse - Flow Panel in a Dock Layout Panel issue

I am working on a project that uses Google Web Toolkit (GWT). I am using a dock layout panel to layout a webpage. In the CENTER, I have a flow panel that adds a set of children with different sizes. When the number of widgets becomes large, then CENTER panel doesn't re-size to include these new widgets. How can I make the dock layout panel resize the center panel so that all the children widgets of the flow panel in the center panel are all shown clearly? I would greatly appreciate it if anyone could provide some information on this. I know that the dock layout panel uses absolute positioning but the flow panel I have is set to dynamically resize when the flow panel has multiple widgets.

Thanks,

MPH