Java 使用uibinder的Gwt图像按钮
如何使用uibinder在GWT中创建图像按钮。我当前的代码如下所示:Java 使用uibinder的Gwt图像按钮,java,gwt,Java,Gwt,如何使用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
<!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>
正确打印图像,使图像资源正常工作 这里的目标是什么?常规图像可以用作按钮。是您正在关注的事件吗?检查,这很有效。只有箭头不会变为“点击手”。