包装GWT对话框页脚
DialogBox实际上是一组包装GWT对话框页脚,gwt,Gwt,DialogBox实际上是一组元素。基本上有标题栏、主要内容和页脚。默认情况下,向DialogBox添加元素会将它们放入主内容中 我想要的是在页脚上扔点东西。基本上就是这个div: 我在继承自DialogBox的类中创建了此方法来包装页脚: public HTMLPanel getFooter() { Element td = getCellElement(2, 1); td.setId("footer"); //html at this point = <div clas
元素。基本上有标题栏、主要内容和页脚。默认情况下,向DialogBox添加元素会将它们放入主内容中
我想要的是在页脚上扔点东西。基本上就是这个div:
我在继承自DialogBox的类中创建了此方法来包装页脚:
public HTMLPanel getFooter() {
Element td = getCellElement(2, 1);
td.setId("footer"); //html at this point = <div class="dialogBottomCenterInner" id="footer"></div>
HTMLPanel panel = HTMLPanel.wrap(td);
return panel;
}
public HTMLPanel getFooter(){
元素td=getCellElement(2,1);
td.setId(“footer”);//此时的html=
HTMLPanel=HTMLPanel.wrap(td);
返回面板;
}
不幸的是,它在HTMLPanel.wrap(td)处失败代码>带有
java.lang.AssertionError:null对话框中没有页脚。您引用的元素是包围对话框的边框的一部分。将div添加到对话框页脚的目的是什么?只是把它放在对话框的底部吗?