Gwt 如何在uibinder网格中设置指定单元格中的文本
如果需要5行和5列,我认为必须在UiBinder中使用适当数量的Gwt 如何在uibinder网格中设置指定单元格中的文本,gwt,grid,uibinder,Gwt,Grid,Uibinder,如果需要5行和5列,我认为必须在UiBinder中使用适当数量的g:row和g:cell(或g:customCell)来定义它们。没有与setText等效的方法,但是您可以使用g:cell(并且g:customCell相当于setWidget)。 asdf 如果您想要5行5列,我认为您必须在UiBinder中使用适当数量的g:row和g:cell(或g:customCell)来定义它们。没有与setText等效的方法,但是您可以使用g:cell(并且g:customCell相当于setWid
g:row
和g:cell
(或g:customCell
)来定义它们。没有与setText
等效的方法,但是您可以使用g:cell
(并且g:customCell
相当于setWidget
)。
asdf
如果您想要5行5列,我认为您必须在UiBinder中使用适当数量的g:row
和g:cell
(或g:customCell
)来定义它们。没有与setText
等效的方法,但是您可以使用g:cell
(并且g:customCell
相当于setWidget
)。
asdf
<g:Grid>
<g:row>
<g:customCell>
<g:HTMLPanel styleName="{style.loginPrompt}">
<div>
<ui:msg description="LoginPrompt">Please <b>Log In</b></ui:msg>
</div>
</g:HTMLPanel>
</g:customCell>
</g:row>
...
Grid g = new Grid(5, 5);
g.setText(0, 1, "asdf");
<g:Grid>
<g:row>
<g:customCell><!-- whatever --></g:customCell>
<g:cell>asdf</g:cell>
<!-- continue here for 5 rows, 5 cells per row -->