protected void setHeaderStyle(String style) { // Need to fetch the header panel from dockpanel. for (int i = 0; i < dockPanel.getWidgetCount(); i++) { Widget w = dockPanel.getWidget(i); DockLayoutConstant direction = dockPanel.getWidgetDirection(w); if (direction.equals(DockPanel.NORTH)) { w.setStyleName(style); } } }
private QLayoutHorizontal createRegion(QLayoutBorder container, DockLayoutConstant direction) { QLayoutHorizontal region = new QLayoutHorizontal(); region.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); region.setSpacing(2); container.add(region, direction); container.setCellWidth(region, "100%"); return region; }
public void add(Widget widget, DockLayoutConstant constraint) { m_panel.add(widget, constraint); }
/** * <p>addToTitleBar</p> * * @param widget a {@link com.google.gwt.user.client.ui.Widget} object. * @param constraint a {@link com.google.gwt.user.client.ui.DockPanel.DockLayoutConstant} object. */ public void addToTitleBar(Widget widget, DockLayoutConstant constraint) { m_titleWidget.add(widget, constraint); }
/** * <p>addToTitleBar</p> * * @param widget a {@link com.google.gwt.user.client.ui.Widget} object. * @param constraint a {@link com.google.gwt.user.client.ui.DockPanel.DockLayoutConstant} object. */ public void addToTitleBar(Widget widget, DockLayoutConstant constraint) { m_dashlet.addToTitleBar(widget, constraint); }