Java 类com.google.gwt.user.client.ui.DockPanel.DockLayoutConstant 实例源码

项目:onecmdb    文件:OneCMDBBaseScreen.java   
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);
        }
    }
}
项目:qafe-platform    文件:QTable.java   
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;
}
项目:OneCMDBwithMaven    文件:OneCMDBBaseScreen.java   
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);
        }
    }
}
项目:opennmszh    文件:Dashlet.java   
public void add(Widget widget, DockLayoutConstant constraint) {
    m_panel.add(widget, constraint);
}
项目:OpenNMS    文件:Dashlet.java   
public void add(Widget widget, DockLayoutConstant constraint) {
    m_panel.add(widget, constraint);
}
项目:opennmszh    文件:Dashlet.java   
/**
 * <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);
}
项目:opennmszh    文件:DashletView.java   
/**
 * <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);
}
项目:OpenNMS    文件:Dashlet.java   
/**
 * <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);
}
项目:OpenNMS    文件:DashletView.java   
/**
 * <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);
}