GWT:RichTextToolbar 在哪里?
我编写了简单的 GUI 页面:
public class Test01 {
RootPanel r = RootPanel.get();
public Test01() {
RichTextArea richTextArea = new RichTextArea();
r.add(richTextArea, 85, 134);
richTextArea.setSize("412px", "260px");
}
}
当我运行它时,我看到 RichTextArea 的简单矩形。但示例中周围有很多按钮,例如加粗字体的按钮等。在我的例子中,它们都在哪里?在示例代码中我看到 RichTextTollbar 类的用法在哪里?
谢谢。
I wrote simple GUI page:
public class Test01 {
RootPanel r = RootPanel.get();
public Test01() {
RichTextArea richTextArea = new RichTextArea();
r.add(richTextArea, 85, 134);
richTextArea.setSize("412px", "260px");
}
}
and when I run it, I see simple rectangle for RichTextArea. But there are numerous buttons around it in the sample, for example button to make bold font and etc. Where are all of them in my case? In the sample code I see the usage of RichTextTollbar class where is it?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
RichTextToolbar
位于 GWT SDK 的 Showcase 示例中:http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/samples/showcase/src/com/google/gwt/sample/showcase/客户端/内容/文本/RichTextToolbar.java
RichTextToolbar
is in the Showcase sample from the GWT SDK:http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/samples/showcase/src/com/google/gwt/sample/showcase/client/content/text/RichTextToolbar.java
你想要的东西并没有在 GWT 中实现,RichTextArea 只给你改变这些东西的能力。
您要查找的是这样的内容:
http://code.google.com /p/gwt-html-editor/
这些是社区制作的小部件。
That what you want is not implemented in GWT, RichTextArea only gives you the ability to change those things.
What you're looking for is something like this:
http://code.google.com/p/gwt-html-editor/
Those are community made widgets.