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

项目:ephesoft    文件:CalendarWidget.java   
public NavBar(CalendarWidget calendar) {
    super();
    this.calendar = calendar;

    setWidget(bar);
    bar.setStyleName("navbar");
    title.setStyleName("header");

    HorizontalPanel prevButtons = new HorizontalPanel();
    prevButtons.add(prevMonth);
    prevButtons.add(prevYear);

    HorizontalPanel nextButtons = new HorizontalPanel();
    nextButtons.add(nextYear);
    nextButtons.add(nextMonth);

    bar.add(prevButtons, DockPanel.WEST);
    bar.setCellHorizontalAlignment(prevButtons, DockPanel.ALIGN_LEFT);
    bar.add(nextButtons, DockPanel.EAST);
    bar.setCellHorizontalAlignment(nextButtons, DockPanel.ALIGN_RIGHT);
    bar.add(title, DockPanel.CENTER);
    bar.setVerticalAlignment(DockPanel.ALIGN_MIDDLE);
    bar.setCellHorizontalAlignment(title, HasAlignment.ALIGN_CENTER);
    bar.setCellVerticalAlignment(title, HasAlignment.ALIGN_MIDDLE);
    bar.setCellWidth(title, "100%");
}
项目:LAS    文件:LASAnnotationsPanel.java   
public LASAnnotationsPanel() {
    super();
    layoutPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
    borderPanel.add(layoutPanel, DockPanel.CENTER);
    layoutPanel.setSize("100%", "100%");
    initWidget(borderPanel);
    borderPanel.setBorderWidth(1);
    layoutPanel.setBorderWidth(0);
    // setWidth(CONSTANTS.DEFAULT_ANNOTATION_PANEL_WIDTH());
    layoutPanel.setTitle(DEFAULT_TOOLTIP);
    closeButton.setTitle(DEFAULT_CLOSE_BUTTON_TOOLTIP);
    closeButton.getElement().getStyle().setProperty("textAlign", "center");
    closeButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            setOpenAndPublish(false);
        }
    });
    layoutPanel.add(closeButton, DockPanel.EAST);
    layoutPanel.setCellHeight(closeButton, "1em");
    layoutPanel.setCellWidth(closeButton, "1em");
    closeButton.setSize("1em", "1em");
    layoutPanel.setCellHorizontalAlignment(closeButton,
            HasHorizontalAlignment.ALIGN_RIGHT);
}
项目:gwtlib    文件:MessageBox.java   
public static MessageBox prompt(String caption, String message, boolean asHTML, 
                                boolean multiline, int buttons, MessageBoxListener listener) {
  final MessageBox mb = new MessageBox();
  mb.setText(caption);
  mb.setButtons(buttons, listener);
  mb._dockPanel.add(asHTML ? new HTML(message) : new Label(message), DockPanel.NORTH);
  if(multiline) {
    mb._textArea = new TextArea();
    mb._dockPanel.add(mb._textArea, DockPanel.CENTER);
    mb.center();
    mb._textArea.setFocus(true);
  } else {
    mb._textBox = new TextBox();
    mb._dockPanel.add(mb._textBox, DockPanel.CENTER);
    mb.center();
    mb._textBox.setFocus(true);
  }
  return mb;
}
项目:onecmdb    文件:BaseScreen.java   
/**
 * Constructor
 * 
 */
public BaseScreen() {

    lblTitleText.setWordWrap(false);
    lblTitle.add(lblTitleText);
    lblTitle.setSpacing(8);
    dockPanel.setStyleName("mdv-form");
    lblTitle.setStyleName("mdv-form-title");
    lblTitle.setWidth("100%");
    dockPanel.add(lblTitle, DockPanel.NORTH);
    dockPanel.setCellWidth(lblTitle, "100%");
    lblError.setStyleName(errorStyle);
    lblLoading.setStyleName(loadingStyle);

    lblLoading.setVisible(false);
    HorizontalPanel hp = new HorizontalPanel();
    // hp.setStyleName("");
    hp.add(lblError);
    hp.add(lblLoading);
    dockPanel.add(hp, DockPanel.NORTH);

}
项目:onecmdb    文件:ConfirmNewProblemtScreen.java   
public ConfirmNewProblemtScreen() {
    super();
    setTitleText("New Problem Confirmation");
    vPanel = new VerticalPanel();
    vPanel.setHeight("100%");
    dockPanel.add(vPanel, DockPanel.CENTER);
    dockPanel.setCellHeight(vPanel, "100%");
    initWidget(this.dockPanel);
}
项目:riscoss-corporate    文件:RolePropertyPage.java   
public RolePropertyPage() {
    HorizontalPanel toolbar = new HorizontalPanel();
    toolbar.add( new Button( "Add User", new ClickHandler() {
        @Override
        public void onClick( ClickEvent event ) {
            onNewUserClicked();
        }
    } ) );

    userList = new UserList("");

    DockPanel dock = new DockPanel();
    dock.add( toolbar,DockPanel.NORTH );
    dock.add( userList, DockPanel.CENTER );

    tabPanel.add( new SimplePanel(), "Role Properties" );
    tabPanel.add( dock, "Users" );

    panel.setWidget( tabPanel );
}
项目:riscoss-corporate    文件:MissingDataDialog.java   
public MissingDataDialog( JMissingData md, String ras ) {

    this.ras = ras;

    dialog.setText( "Enter Missing Data Information" );

    inputForm.load( md );

    DockPanel dock = new DockPanel();
    dock.add( inputForm, DockPanel.CENTER );
    dock.add( new Button( "Done", new ClickHandler() {
        @Override
        public void onClick( ClickEvent event ) {
            onDone();
        }
    } ), DockPanel.SOUTH );
    dialog.setWidget( dock );

}
项目:riscoss-corporate    文件:MissingDataDialog.java   
public MissingDataDialog(RASPanel panel, JMissingData md, String ras ) {

    this.panel = panel;
    this.ras = ras;

    dialog.setText( "Enter Missing Data Information" );

    inputForm.load( md );

    DockPanel dock = new DockPanel();
    dock.add( inputForm, DockPanel.CENTER );
    dock.add( new Button( "Done", new ClickHandler() {
        @Override
        public void onClick( ClickEvent event ) {
            onDone();
        }
    } ), DockPanel.SOUTH );
    dialog.setWidget( dock );

}
项目:firefly    文件:SearchPanel.java   
private void layout() {

        formPanel.clear();
        navPanel.clear();

        if (lists.size()==1 && lists.get(0).getWidgetCount()==1) {
            navPanel.setVisible(false);
            if (navPanel.getParent() instanceof DockPanel) {
                DockPanel dp = (DockPanel)navPanel.getParent();
                dp.remove(navPanel);
            }
        }
        else {
            for (int i = 0; i < lists.size(); i++) {
                if (i != 0) {
                    SimplePanel spacer = new SimplePanel();
                    spacer.setPixelSize(1,10);
                    navPanel.add(spacer);
                }
                LinksPanel.ULList l = lists.get(i);
                if (l != null) {
                    navPanel.add(l);
                }
            }
        }        
    }
项目:firefly    文件:ToolbarDropdown.java   
public void layout() {
//        clearHeaderBar();
        mainPanel.add(content.getDisplay(), DockPanel.CENTER);
        mainPanel.add(footer.getDisplay(), DockPanel.SOUTH);
        footer.getDisplay().setStyleName("footer");
        footer.getDisplay().setVisible(showFooter);
        mainPanel.setCellHeight(content.getDisplay(), "100%");
        dpanel.setContent(mainPanel);
        GwtUtil.setStyles(mainPanel.getParent(), "width", "100%");
        if (content.getContent() != null) {
            if (showFooter) {
                content.getContent().addStyleName("shadow");
            } else {
                content.getContent().removeStyleName("shadow");
            }
        }
        updateCloseVisibility();

    }
项目:firefly    文件:ResizableLayoutManager.java   
public ResizableLayoutManager(int minWidth, int minHeight) {
        super(minWidth, minHeight);
        mainPanel = new DockPanel();
//        resizer = new Resizer();

        Window.addResizeHandler(new ResizeHandler(){
                public void onResize(ResizeEvent event) {
                    Application.getInstance().resize();
                }
            });

//        WebEventManager.getAppEvManager().addListener(Name.REGION_SHOW,
//                            new WebEventListener(){
//                                public void eventNotify(WebEvent ev) {
//                                    resizer.setVisible(Application.getInstance().hasSearchResult());
//                                }
//                            });
        setupStatusRegion(this);

    }
项目:firefly    文件:FixedLayoutManager.java   
public void layout(String loadToDiv) {

        init();
        Region loginRegion = Application.getInstance().getLoginManager().makeLoginRegion();
        if (loginRegion != null) {
            RootPanel.get("user-info").add(loginRegion.getDisplay());
        }

        Widget north = makeNorth();
        mainPanel.add(north, DockPanel.NORTH);

        Widget content = makeCenter();
        mainPanel.add(content, DockPanel.CENTER);

        RootPanel root = getRoot(loadToDiv);
        root.add(mainPanel);

        mainPanel.setCellHeight(content, "100%");

//        // now.. add the menu to the top
        getMenu().setDisplay(Application.getInstance().getToolBar().getWidget());

    }
项目:qafe-platform    文件:RendererHelper.java   
public static void addMenu(ComponentGVO vo, UIObject ui, String uuid, String parent) {
    if (vo != null && ui != null) {
        if (vo.getMenu() != null) {
            MenuBar menu = new MenuBar();
            menu.setAutoOpen(true);
            menu.setWidth("100%");
            UIObject renderedComponent = new MenuItemRenderer().render(vo.getMenu(), uuid, parent, vo.getContext());
            if (renderedComponent instanceof MenuBar) {
                menu.addItem(vo.getMenu().getDisplayname(), (MenuBar) renderedComponent);
            } else if (renderedComponent instanceof MenuItem) {
                menu.addItem((MenuItem) renderedComponent);
            }
            if (ui instanceof DockPanel) {
                ((DockPanel) ui).add(menu, DockPanel.NORTH);
            } else if (ui instanceof Grid || ui instanceof VerticalPanel || ui instanceof HorizontalPanel)
                ((Panel) ui).add(menu);
        }
    }

}
项目:qafe-platform    文件:PanelRenderer.java   
protected void performCommonTasks(PanelGVO component, UIObject panel, String uuid, String parent) {
    if (component != null && panel != null) {
        panel.setTitle(component.getTooltip());
        UIObject[] children = renderChildComponents(component.getLayout().getComponents(), uuid, parent, component.getContext());
        if (children != null) {
            for (int i = 0; i < children.length; i++) {
                if (children[i] != null) {
                    if (children[i] instanceof Widget) {
                        if (panel instanceof DockPanel) {
                            ((DockPanel) panel).add((Widget) children[i], DockPanel.NORTH);
                        } else if (panel instanceof HasWidgets) {
                            ((HasWidgets) panel).add((Widget) children[i]);
                        }
                        RendererHelper.setStyleForElement(children[i].getElement(), component.getLayout().getComponents()[i].getStyleProperties());
                    }
                }
            }
        }
    }
}
项目:qafe-platform    文件:PanelRenderer.java   
private void addChecksum(UIObject panel) {
    QHidden qafeChecksum = new QHidden();
    DOM.setElementAttribute(qafeChecksum.getElement(), "fn", DataContainerGVO.QAFE_CHECKSUM);
    if (panel instanceof FlexTable) {
        FlexTable flexTable = (FlexTable)panel;
        int rowCount = flexTable.getRowCount();
        flexTable.setWidget(rowCount, 0, qafeChecksum);
    } else if (panel instanceof AbsolutePanel) {
        AbsolutePanel absolutePanel = (AbsolutePanel)panel;
        absolutePanel.add(qafeChecksum, 0, 0);
    } else if (panel instanceof DockPanel) {
        DockPanel dockPanel = (DockPanel)panel;
        //dockPanel.add(qafeChecksum);
    } else if (panel instanceof CellPanel) {
        CellPanel cellPanel = (CellPanel)panel;
        cellPanel.add(qafeChecksum);
    }
}
项目:qafe-platform    文件:RendererHelper.java   
public static void addMenu(ComponentGVO vo, UIObject ui, String uuid, String parent) {
    if (vo != null && ui != null) {
        if (vo.getMenu() != null) {
            MenuBar menu = new MenuBar();
            menu.setAutoOpen(true);
            menu.setWidth("100%");
            UIObject renderedComponent = new MenuItemRenderer().render(vo.getMenu(), null, uuid, parent, vo.getContext(), null);
            if (renderedComponent instanceof MenuBar) {
                menu.addItem(vo.getMenu().getDisplayname(), (MenuBar) renderedComponent);
            } else if (renderedComponent instanceof MenuItem) {
                menu.addItem((MenuItem) renderedComponent);
            }
            if (ui instanceof DockPanel) {
                ((DockPanel) ui).add(menu, DockPanel.NORTH);
            } else if (ui instanceof Grid || ui instanceof VerticalPanel || ui instanceof HorizontalPanel)
                ((Panel) ui).add(menu);
        }
    }

}
项目:rest-describe-and-compile    文件:GuiFactory.java   
public void onWindowResized(int width, int height) {    
  RequestUriPanel.requestSampleArea.setHeight(Math.floor(0.1 * height) + "px");    
  RequestUriPanel.containerPanel.setWidth(Math.floor(0.97 * width) + "px");

  int panelHeight = height - RequestUriPanel.requestSamplePanel.getOffsetHeight() - MainMenuPanel.menuPanel.getOffsetHeight() - WadlPanel.wadlHeader.getOffsetHeight() - 80;    
  ParameterPanel.parameterPanel.setHeight("100%");
  ParameterPanel.parameterPanel.setWidth("100%");
  ParameterPanel.requestArea.setHeight(panelHeight + "px");
  ParameterPanel.requestArea.setWidth(Math.floor(0.28 * width) + "px");

  WadlPanel.wadlPanel.setHeight("100%");
  WadlPanel.wadlPanel.setWidth("95%");    

  WadlPanel.wadlArea.setHeight(panelHeight + "px");
  WadlPanel.wadlArea.setWidth(Math.floor(0.58 * width) + "px");    

  GuiFactory.blockScreen.clear();
  GuiFactory.blockScreen.add(getBlockedScreenDiv(width, height), DockPanel.NORTH);    
}
项目:OneCMDBwithMaven    文件:BaseScreen.java   
/**
 * Constructor
 * 
 */
public BaseScreen() {

    lblTitleText.setWordWrap(false);
    lblTitle.add(lblTitleText);
    lblTitle.setSpacing(8);
    dockPanel.setStyleName("mdv-form");
    lblTitle.setStyleName("mdv-form-title");
    lblTitle.setWidth("100%");
    dockPanel.add(lblTitle, DockPanel.NORTH);
    dockPanel.setCellWidth(lblTitle, "100%");
    lblError.setStyleName(errorStyle);
    lblLoading.setStyleName(loadingStyle);

    lblLoading.setVisible(false);
    HorizontalPanel hp = new HorizontalPanel();
    // hp.setStyleName("");
    hp.add(lblError);
    hp.add(lblLoading);
    dockPanel.add(hp, DockPanel.NORTH);

}
项目:Peergos    文件:DynaTableWidget.java   
public NavBar() {
  initWidget(bar);
  bar.setStyleName("navbar");
  status.setStyleName("status");

  HorizontalPanel buttons = new HorizontalPanel();
  buttons.add(gotoFirst);
  buttons.add(gotoPrev);
  buttons.add(gotoNext);
  bar.add(buttons, DockPanel.EAST);
  bar.setCellHorizontalAlignment(buttons, DockPanel.ALIGN_RIGHT);
  bar.add(status, DockPanel.CENTER);
  bar.setVerticalAlignment(DockPanel.ALIGN_MIDDLE);
  bar.setCellHorizontalAlignment(status, HasAlignment.ALIGN_RIGHT);
  bar.setCellVerticalAlignment(status, HasAlignment.ALIGN_MIDDLE);
  bar.setCellWidth(status, "100%");

  // Initialize prev & first button to disabled.
  //
  gotoPrev.setEnabled(false);
  gotoFirst.setEnabled(false);
}
项目:Peergos    文件:DynaTableWidget.java   
public DynaTableWidget(DynaTableDataProvider provider, String[] columns,
    String[] columnStyles, int rowCount) {

  if (columns.length == 0) {
    throw new IllegalArgumentException(
        "expecting a positive number of columns");
  }

  if (columnStyles != null && columns.length != columnStyles.length) {
    throw new IllegalArgumentException("expecting as many styles as columns");
  }

  this.provider = provider;
  initWidget(outer);
  grid.setStyleName("table");
  outer.add(navbar, DockPanel.NORTH);
  outer.add(grid, DockPanel.CENTER);
  initTable(columns, columnStyles, rowCount);
  setStyleName("DynaTable-DynaTableWidget");
}
项目:swarm    文件:DynaTableWidget.java   
public NavBar() {
  initWidget(bar);
  bar.setStyleName("navbar");
  status.setStyleName("status");

  HorizontalPanel buttons = new HorizontalPanel();
  buttons.add(gotoFirst);
  buttons.add(gotoPrev);
  buttons.add(gotoNext);
  bar.add(buttons, DockPanel.EAST);
  bar.setCellHorizontalAlignment(buttons, DockPanel.ALIGN_RIGHT);
  bar.add(status, DockPanel.CENTER);
  bar.setVerticalAlignment(DockPanel.ALIGN_MIDDLE);
  bar.setCellHorizontalAlignment(status, HasAlignment.ALIGN_RIGHT);
  bar.setCellVerticalAlignment(status, HasAlignment.ALIGN_MIDDLE);
  bar.setCellWidth(status, "100%");

  // Initialize prev & first button to disabled.
  //
  gotoPrev.setEnabled(false);
  gotoFirst.setEnabled(false);
}
项目:swarm    文件:DynaTableWidget.java   
public DynaTableWidget(DynaTableDataProvider provider, String[] columns,
    String[] columnStyles, int rowCount) {

  if (columns.length == 0) {
    throw new IllegalArgumentException(
        "expecting a positive number of columns");
  }

  if (columnStyles != null && columns.length != columnStyles.length) {
    throw new IllegalArgumentException("expecting as many styles as columns");
  }

  this.provider = provider;
  initWidget(outer);
  grid.setStyleName("table");
  outer.add(navbar, DockPanel.NORTH);
  outer.add(grid, DockPanel.CENTER);
  initTable(columns, columnStyles, rowCount);
  setStyleName("DynaTable-DynaTableWidget");
}
项目:gwtmockito    文件:GwtMockitoWidgetBaseClassesTest.java   
@Test
public void testPanels() throws Exception {
  invokeAllAccessibleMethods(new AbsolutePanel() {});
  invokeAllAccessibleMethods(new CellPanel() {});
  invokeAllAccessibleMethods(new ComplexPanel() {});
  invokeAllAccessibleMethods(new DeckLayoutPanel() {});
  invokeAllAccessibleMethods(new DeckPanel() {});
  invokeAllAccessibleMethods(new DecoratorPanel() {});
  invokeAllAccessibleMethods(new DockLayoutPanel(Unit.PX) {});
  invokeAllAccessibleMethods(new DockPanel() {});
  invokeAllAccessibleMethods(new FlowPanel() {});
  invokeAllAccessibleMethods(new FocusPanel() {});
  invokeAllAccessibleMethods(new HorizontalPanel() {});
  invokeAllAccessibleMethods(new HTMLPanel("") {});
  invokeAllAccessibleMethods(new LayoutPanel() {});
  invokeAllAccessibleMethods(new PopupPanel() {});
  invokeAllAccessibleMethods(new RenderablePanel("") {});
  invokeAllAccessibleMethods(new ResizeLayoutPanel() {});
  invokeAllAccessibleMethods(new SimpleLayoutPanel() {});
  invokeAllAccessibleMethods(new SimplePanel() {});
  invokeAllAccessibleMethods(new SplitLayoutPanel() {});
  invokeAllAccessibleMethods(new StackPanel() {});
  invokeAllAccessibleMethods(new VerticalPanel() {});
}
项目:calendar-component    文件:VCalendar.java   
/**
 * Re-renders the whole week view
 *
 * @param scroll
 *            The amount of pixels to scroll the week view
 * @param today
 *            Todays date
 * @param firstDayOfWeek
 *            The first day of the week
 * @param events
 *            The items to render
 */
public void updateWeekView(int scroll, Date today,int firstDayOfWeek,
                           Collection<CalendarItem> events, List<CalendarDay> days) {

    while (outer.getWidgetCount() > 0) {
        outer.remove(0);
    }

    monthGrid = null;
    String[] realDayNames = new String[getDayNames().length];
    int j = 0;

    if (firstDayOfWeek == 2) {
        for (int i = 1; i < getDayNames().length; i++) {
            realDayNames[j++] = getDayNames()[i];
        }
        realDayNames[j] = getDayNames()[0];
    } else {
        for (int i = 0; i < getDayNames().length; i++) {
            realDayNames[j++] = getDayNames()[i];
        }

    }

    weeklyLongEvents = new WeeklyLongItems(this);
    if (weekGrid == null) {
        weekGrid = new WeekGrid(this, is24HFormat());
    }

    updateWeekGrid(days, today, realDayNames);
    updateItemsToWeekGrid(sortItems(events));

    outer.add(dayToolbar, DockPanel.NORTH);
    outer.add(weeklyLongEvents, DockPanel.NORTH);
    outer.add(weekGrid, DockPanel.SOUTH);

    weekGrid.setVerticalScrollPosition(scroll);
}
项目:appinventor-extensions    文件:MockForm.java   
PhoneBar() {
  phoneBarImage = new Image(images.phonebar());

  bar = new DockPanel();
  bar.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
  bar.add(phoneBarImage, DockPanel.EAST);

  initWidget(bar);

  setStylePrimaryName("ode-SimpleMockFormPhoneBar");
  setSize("100%", HEIGHT + "px");
}
项目:appinventor-extensions    文件:MockForm.java   
NavigationBar() {
  navigationBarImage = new Image(images.navigationbar());
  bar = new DockPanel();
  bar.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);
  bar.add(navigationBarImage, DockPanel.CENTER);
  initWidget(bar);

  setStylePrimaryName("ode-SimpleMockFormPhoneBar"); //reuse the css for the phone
  setSize("100%", HEIGHT + "px");
}
项目:ephesoft    文件:CalendarWidget.java   
public CalendarWidget() {
    super();
    setWidget(outer);
    grid.setStyleName("table");
    grid.setCellSpacing(0);
    outer.add(navbar, DockPanel.NORTH);
    outer.add(grid, DockPanel.CENTER);
    drawCalendar();
    setStyleName("CalendarWidget");
}
项目:gwtlib    文件:MessageBox.java   
public MessageBox() {
  super(false, true);
  _dockPanel = new DockPanel();
  _buttonPanel = new HorizontalPanel();
  _buttonPanel.setSpacing(5);
  _dockPanel.add(_buttonPanel, DockPanel.SOUTH);
  _dockPanel.setCellHorizontalAlignment(_buttonPanel,  HasHorizontalAlignment.ALIGN_CENTER);
  setWidget(_dockPanel);
  //setStyleName(STYLE);
}
项目:gwtlib    文件:MessageBox.java   
public static MessageBox prompt(String caption, String message, boolean asHTML, 
                                Widget widget, int buttons, MessageBoxListener listener) {
  final MessageBox mb = new MessageBox();
  mb.setText(caption);
  mb.setButtons(buttons, listener);
  mb._dockPanel.add(asHTML ? new HTML(message) : new Label(message), DockPanel.NORTH);
  mb._dockPanel.add(widget, DockPanel.CENTER);
  mb.center();
  if(widget instanceof FocusWidget) ((FocusWidget)widget).setFocus(true);
  return mb;
}
项目:gwtlib    文件:MessageBox.java   
public static MessageBox password(String caption, String message, MessageBoxListener listener) {
  final MessageBox mb = new MessageBox();
  mb.setText(caption);
  mb.setButtons(BTN_OK_CANCEL, listener);
  mb._dockPanel.add(new Label(message), DockPanel.NORTH);
  mb._textBox = new PasswordTextBox();
  mb._dockPanel.add(mb._textBox, DockPanel.CENTER);
  mb.center();
  mb._textBox.setFocus(true);
  return mb;
}
项目:onecmdb    文件:LogoutScreen.java   
public LogoutScreen() {
dockPanel.add(new Label("Thank you for using OneCMDB"),
    DockPanel.NORTH);
btnLogin.addClickListener(this);
dockPanel.add(btnLogin, DockPanel.NORTH);
initWidget(dockPanel);
  }
项目: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);
        }
    }
}
项目:onecmdb    文件:MoveCIScreen.java   
public MoveCIScreen() {
    super();
    hPanel = new HorizontalPanel();
    dockPanel.add(hPanel, DockPanel.NORTH);
    initWidget(dockPanel);
    setTitleText("Classify");
}
项目:onecmdb    文件:ReferenceCIScreen.java   
public ReferenceCIScreen() {
    setTitleText("References for");
    relationPanel = new HorizontalPanel();
    relationPanel.setHeight("100%");
    dockPanel.add(relationPanel, DockPanel.NORTH);
    dockPanel.setCellHeight(relationPanel, "100%");
    initWidget(dockPanel);
}
项目:onecmdb    文件:OneCMDBApplication.java   
public void setLoginScreen() {

    if (getLoginScreen() != null) {
        DockPanel outer = new DockPanel();
        outer.add(getHeaderScreen(), DockPanel.NORTH);
        outer.add(getLoginScreen(), DockPanel.CENTER);
        getLoginScreen().checkIfLogedIn();
        RootPanel.get().clear();
        outer.setSize("100%", "100%");
        RootPanel.get().add(outer);         
        //center(RootPanel.get(), getLoginScreen());
    }
}
项目:onecmdb    文件:ConfirmNewIncidentScreen.java   
public ConfirmNewIncidentScreen() {
    super();
    setTitleText("New Incident Confirmation");
    vPanel = new VerticalPanel();
    vPanel.setHeight("100%");
    dockPanel.add(vPanel, DockPanel.CENTER);
    dockPanel.setCellHeight(vPanel, "100%");
    initWidget(this.dockPanel);

}
项目:onecmdb    文件:TestTransformScreen.java   
public TestTransformScreen() {
    super();
    setTitleText("New DataSet Transform");
    vPanel = new VerticalPanel();
    dockPanel.add(vPanel, DockPanel.CENTER);
    dockPanel.setCellHeight(vPanel, "100%");
    initWidget(dockPanel);

}
项目:onecmdb    文件:NewTransformScreen.java   
public NewTransformScreen() {
    super();
    setTitleText("New DataSet Transform");
    vPanel = new VerticalPanel();
    dockPanel.add(vPanel, DockPanel.CENTER);
    dockPanel.setCellHeight(vPanel, "100%");
    initWidget(dockPanel);
}
项目:onecmdb    文件:AddAttributeScreen.java   
public AddAttributeScreen() {
    super();
    setTitleText("Add attribute");
    vPanel = new VerticalPanel();
    dockPanel.add(vPanel, DockPanel.CENTER);
    dockPanel.setCellHeight(vPanel, "100%");
    initWidget(dockPanel);
}
项目:riscoss-corporate    文件:RiskEvaluationForm.java   
public void loadValues( String goal, ArrayList<JAHPComparison> list ) {
    if( container.getWidget() != null ) {
        container.getWidget().removeFromParent();
    }
    this.list = list;

    PreferenceMatrix grid = new PreferenceMatrix( list );

    DockPanel dock = new DockPanel();
    dock.add( new Label( "Preference matrix for goal '" + goal + "'" ), DockPanel.NORTH );
    dock.add( grid, DockPanel.CENTER );

    container.setWidget( dock );
}