【发布时间】:2012-10-08 14:34:13
【问题描述】:
DialogBox 实际上是一组<div> 元素。基本上有 TitleBar、MainContent 和 Footer。默认情况下,将元素添加到 DialogBox 会将它们放入主内容中。
我想要的是在页脚中添加一些东西。它基本上是这个 div:<div class="dialogBottomCenterInner">
我在继承自 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;
}
不幸的是,它在HTMLPanel.wrap(td);with 失败了
java.lang.AssertionError: null
【问题讨论】:
-
将 div 添加到对话框页脚的目的是什么?难道只是放在对话框的底部吗?
标签: gwt