【问题标题】:Gwt image button using uibinder使用 uibinder 的 Gwt 图像按钮
【发布时间】:2011-09-19 05:04:21
【问题描述】:

如何使用 uibinder 在 GWT 中创建图像按钮。我当前的代码如下所示:

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
    xmlns:g="urn:import:com.google.gwt.user.client.ui">
    <ui:with type="com.test.client.Resources" field="res"></ui:with>
    <g:HTMLPanel>   
        <g:Image resource="{res.facebook_32}"/>
        <g:PushButton>
            <g:downFace image="{res.facebook_32}"></g:downFace>
            <g:upFace image="{res.facebook_32}"></g:upFace>
        </g:PushButton>
    </g:HTMLPanel>
</ui:UiBinder> 

图像打印正确,因此图像资源正常工作。

【问题讨论】:

    标签: java gwt


    【解决方案1】:

    这里的目标是什么?常规图像可以充当按钮。是你追求的事件吗?

    【讨论】:

    • 检查,可行。只有箭头不会变成“点击手”。
    猜你喜欢
    • 2011-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-31
    • 1970-01-01
    • 1970-01-01
    • 2012-07-31
    相关资源
    最近更新 更多