看看这个 DockPanel http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwDockPanel 和它的代码:
dock.add(new HTML(constants.cwDockPanelNorth1()), DockPanel.NORTH);
dock.add(new HTML(constants.cwDockPanelSouth1()), DockPanel.SOUTH);
dock.add(new HTML(constants.cwDockPanelEast()), DockPanel.EAST);
dock.add(new HTML(constants.cwDockPanelWest()), DockPanel.WEST);
dock.add(new HTML(constants.cwDockPanelNorth2()), DockPanel.NORTH);
dock.add(new HTML(constants.cwDockPanelSouth2()), DockPanel.SOUTH);
它类似于Java中的BorderLayout吗?还是不同?
下图如何在 UiBinder 中使用 DockLayoutPanel 设置布局: 为什么不添加中心?我很困惑,还有如何在UiBinder中为上图设置docklayout?