【问题标题】:Wrapping GWT DialogBox footer包装 GWT 对话框页脚
【发布时间】: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


【解决方案1】:

对话框中没有页脚。您引用的元素是对话框周围边框的一部分。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-03-11
    • 2021-08-28
    • 2011-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多