How can I add rows to a Google Web Toolkit flextab

2019-04-24 22:58发布

问题:

Where can I find a UiBinder template for the FlexTable?

I am using Google Web Toolkit (GWT).

回答1:

I found a link text that said if you do not need to handle events, you can just use straight HTML instead of FlexTable for layout:

<g:HTMLPanel>
   <table>
    <tr><td>Info:</td><td><g:TextBox ui:field="infoTextBox"/></td></tr>
  </table>
</g:HTMLPanel> 


回答2:

AFAIK, there's no custom "template" for FlexTable (as there is for, for example, DockLayoutPanel). Besides, FlexTable is used when you have content added/removed dynamically - which means you won't be adding stuff via UiBinder templates (that doesn't even makes sense), you'd do that in the class bound to that UiBinder template. The same goes for initial content of the table - you just have to insert it programmatically.



标签: gwt flextable