How can I add rows to a Google Web Toolkit flextable in the UiBinder?

牧云@^-^@ 提交于 2019-12-07 00:10:43

问题


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.



来源:https://stackoverflow.com/questions/2279934/how-can-i-add-rows-to-a-google-web-toolkit-flextable-in-the-uibinder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!