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);
、 java.lang.AssertionError: nullで失敗します