On Saturday, July 13, 2013 11:44:16 PM UTC+2, Magnus wrote:
>
> Hi Thomas!
>
> Am Samstag, 13. Juli 2013 16:17:54 UTC+2 schrieb Thomas Broyer:
>>
>> But in your case, why not simply go with a <table> (or even <div>s with a 
>> bunch of CSS)?
>> You might also want to replace your VerticalPanels with just <div>s, 
>> <FlowPanel>s if you absolutely needs widgets, or just nothing (depending on 
>> context), and Labels with <div>s or <span>s, or even better <label>s or 
>> just nothing.
>>
>
> Can you give me a minimal example?
>

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" 
xmlns:g="urn:import:com.google.gwt.user.client.ui">
 <g:HTMLPanel>
  <table cellspacing="10"><!-- you might want to use CSS instead of 
cellspacing -->
  <tr>
  <td>
  <div>Einladender</div>
  <g:ListBox visibleItemCount="1" ui:field="lst_Inviter"/>
  </td>
  <td>
  <div>Eingeladener</div>
  <g:ListBox visibleItemCount="1" ui:field="lst_Invited"/>
  </td>
  </tr>

  <tr>
  <td colspan="2">
  <div>Nachricht</div><!-- you might want to use a <label> here -->
  <g:TextBox ui:field="txt_Message"/>
  </g:customCell>
  </tr>
  </table>
 </g:HTMLPanel>
</ui:UiBinder>
 

> (BTW, why did you enclose your Grid into an HTMLPanel?)
>>
>
> I am still new to UIBinder. I just created a new UIBinder and the 
> enclosing HTMLPanel came automatically.
>
> Maybe I am missing a UIBinder documentation...?
>

UiBinder instances are factories that generate a UI structure and glue it 
> to an owning Java class. The UiBinder<U, O> interface declares two 
> parameter types:
>
>    - U is the type of root element declared in the ui.xml file, returned 
>    by thecreateAndBindUi call
>    - O is the owner type whose @UiFields are to be filled in.
>
> Source: http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to