How to use AbsolutePanel in UiBinder XML file

I would like to make an absolute layout using the indicated panel, only using the ui.xml file, however it is not clear if this is possible, since the documentation focuses on the code and generally ignores the layout language. I assume that the textbook does not mention this, it is impossible, but I would like to know for sure.

+5
source share
2 answers

I know this is old, but they updated the uibinder for AbsolutePanel

Use in UiBinder Templates

AbsolutePanel UiBinder , . . , .

:

<g:AbsolutePanel>
   <g:at left='10' top='20'>
     <g:Label>Lorem ipsum...</g:Label>
   </g:at>
   <g:Label>...dolores est.</g:Label>
 </g:AbsolutePanel>
+9

- . GWT, , DockLayoutPanel. : :

<g:AbsolutePanel ui:field="absolutePanel">
    <g:Button x="50px" y="50px">Test</g:Button>
</g:AbsolutePanel>

"bean" ( Java Beans; getSomethingCool, somethingCool="kewl" UiBinder, get/set ), Button setX/Y. , setX/Y ( CSS ..) . , / - , GWT .

+2

All Articles