对话框实际上是<div>
元素的集合。基本上有标题鲍尔,主宗主和页脚。默认情况下,将元素添加到对话框中会将它们置于主要内容中。
我想要的是将一些东西扔进页脚。基本上是这个div: <div class="dialogBottomCenterInner">
我在从对话框继承的类中制作了此方法,以包装页脚:
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);
失败了java.lang.AssertionError:null
对话框中没有页脚。您所指的元素是包围对话框的边框的一部分。