[英]Gwt image button using uibinder
如何使用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>
正確打印圖像,以便圖像資源正常工作。
這里的目標是什么? 常規圖像可以表現為按鈕。 這是你追求的事件嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.