Gwt 隐藏

Gwt 隐藏,gwt,hide,cell,Gwt,Hide,Cell,我的xml文件中有一个customcell,它包含我隐藏的垂直面板,但它会导致一些UI设计问题,因为customcell没有隐藏。有人能告诉我如何隐藏我的手机吗?。提前谢谢 <g:customCell styleName="width:15%;" ui:field="parentCell" visible="false"> <g:VerticalPanel visible="false" ui:field="SortVPanel"> <g:Gri

我的xml文件中有一个customcell,它包含我隐藏的垂直面板,但它会导致一些UI设计问题,因为customcell没有隐藏。有人能告诉我如何隐藏我的手机吗?。提前谢谢

<g:customCell styleName="width:15%;" ui:field="parentCell" 
  visible="false">
  <g:VerticalPanel  visible="false" ui:field="SortVPanel"> 
   <g:Grid width="100%">
    <g:row>
      <g:customCell >
        <g:Label styleName="float-left" wordWrap="false" width="65px" > 
            <ui:msg key="lblSort"> Sort By </ui:msg></g:Label>
         </g:customCell>

         <g:customCell styleName="cell-width83">                                        
           <c:ComboBoxComponent  />                                  
         </g:customCell>                                       
     </g:row>
  </g:Grid>
</g:VerticalPanel>
</g:customCell>
我想隐藏上面的customcell,UiField值是ui:field=parentCell

g:customcell标记不是dom元素,而是g:Grid标记的一个标记,用于知道哪些项目是单元格还是行。这意味着您不能向其添加html属性。您也不能给它一个ui:field,因为它根本不是对象

相反,您可以将它们放在位于g:customCell标记内的子小部件上,或者从Java代码中调用grid.getCellFormatter并使用其中的方法进一步格式化封装小部件的单元格