GWT涂鸦(1)——Starter Project

The module XML file

位置:src/包/项目名.gwt.xml

内容:

模块:项目名全小写

继承User
继承Standard theme

entry-point:client包下的项目文件名为类名的类

源client
源shared

The Host Page

位置:war/项目名.html

内容:

meta tag
css: 项目名.css
js: 模块名/模块名.nocache.js

 

    <h1>Web Application Starter Project</h1>
    <table align="center">
      <tr>
        <td colspan="2" style="font-weight:bold;">Please enter your name:</td>        
      </tr>
      <tr>
        <td id="nameFieldContainer"></td>
        <td id="sendButtonContainer"></td>
      </tr>
      <tr>
        <td colspan="2" style="color:red;" id="errorLabelContainer"></td>
      </tr>
    </table>

 

 

 

The Application Style Sheet

位置:war/项目名.css

内容:...

 

The Entry Point Class

位置:src/包.client/项目名.java

内容:

创建异步service的接口实现proxy对象作为private final属性:依赖服务注入;

创建组件 对象作为private final属性(@question临时变量or属性 );

实现EntryPoint.onModuleLoad():布局+组件设置+事件设置;

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值