【发布时间】:2015-08-05 18:21:56
【问题描述】:
我对 gwt 非常陌生,我需要将现有应用程序更改为 gwtbootstrap 以使用 uibinder 的模板。
我搜索了基本的安装说明。下载后文件在哪里。 来自https://github.com/gwtbootstrap3/gwtbootstrap3/tree/master/gwtbootstrap3
【问题讨论】:
标签: gwt uibinder gwt-bootstrap gwtbootstrap3
我对 gwt 非常陌生,我需要将现有应用程序更改为 gwtbootstrap 以使用 uibinder 的模板。
我搜索了基本的安装说明。下载后文件在哪里。 来自https://github.com/gwtbootstrap3/gwtbootstrap3/tree/master/gwtbootstrap3
【问题讨论】:
标签: gwt uibinder gwt-bootstrap gwtbootstrap3
如果你没有 Maven
1) 下载 JAR 文件并将其添加到类路径中 http://mvnrepository.com/artifact/org.gwtbootstrap3/gwtbootstrap3
2) 在你的 GWT 模块中继承 GwtBootstrap3 模块:
<module>
<inherits name="org.gwtbootstrap3.GwtBootstrap3"/>
...
</module>
3) 使用 UiBinder XML 中的小部件:
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:b="urn:import:org.gwtbootstrap3.client.ui">
<b:Container>
<b:PageHeader>Yay buttons!</b:PageHeader>
<b:Button>Some button</b:Button>
<b:Button type="DANGER" size="LARGE">Dangerous button</b:Button>
</b:Container>
</ui:UiBinder>
【讨论】: