Gwt image button using uibinder

How to create an image button in GWT using uibinder. My current code is as follows:

<!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> 

The image is printed correctly, so the image resource is working correctly.

+4
source share
1 answer

What is the purpose here? A regular image can behave like a button. Are these the events that you are after?

+5
source

All Articles