Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/377.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java UiBinder中的gwt按钮_Java_Gwt_Uibinder - Fatal编程技术网

Java UiBinder中的gwt按钮

Java UiBinder中的gwt按钮,java,gwt,uibinder,Java,Gwt,Uibinder,我需要使用UiBinder在gwt中创建一个按钮(因此它是一个带图像的按钮),但我不确定如何继续。这是我的ui.xml代码: <g:PushButton ui:field="myPushButton"/> 谢谢您可以直接使用CustomButton Javadoc中的以下代码: g:PushButton ui:field='pushButton' enabled='true'> <g:upFace> <b>click me</b&g

我需要使用
UiBinder
gwt
中创建一个按钮(因此它是一个带图像的按钮),但我不确定如何继续。这是我的
ui.xml
代码:

<g:PushButton ui:field="myPushButton"/>
谢谢

您可以直接使用CustomButton Javadoc中的以下代码:

g:PushButton ui:field='pushButton' enabled='true'>
   <g:upFace>
     <b>click me</b>
   </g:upFace>
   <g:upHoveringFace>
     <b>Click ME!</b>
   </g:upHoveringFace>

   <g:downFace image='{downButton}'/>
   <g:downHoveringFace image='{downButton}'/>
 </g:PushButton>
g:butdown ui:field='butdown'enabled='true'>
点击我
点击我!
JavaDoc中还有更多内容:

g:PushButton ui:field='pushButton' enabled='true'>
   <g:upFace>
     <b>click me</b>
   </g:upFace>
   <g:upHoveringFace>
     <b>Click ME!</b>
   </g:upHoveringFace>

   <g:downFace image='{downButton}'/>
   <g:downHoveringFace image='{downButton}'/>
 </g:PushButton>