當前位置: 首頁>>代碼示例>>Java>>正文


Java DockLayoutPanel.add方法代碼示例

本文整理匯總了Java中com.google.gwt.user.client.ui.DockLayoutPanel.add方法的典型用法代碼示例。如果您正苦於以下問題:Java DockLayoutPanel.add方法的具體用法?Java DockLayoutPanel.add怎麽用?Java DockLayoutPanel.add使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.google.gwt.user.client.ui.DockLayoutPanel的用法示例。


在下文中一共展示了DockLayoutPanel.add方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setInitialFolderManagementView

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public void setInitialFolderManagementView(FolderManagementController controller, String parentFolderPath, String baseFolderUrl,
		Map<String, String> batchClassesMap) {
	Label footer = new Label();
	folderTableView = new FolderTableView(footer);

	folderTablePresenter = new FolderTablePresenter(controller, folderTableView, parentFolderPath, baseFolderUrl);

	folderSystemTreeView = new FolderSystemTreeView();

	folderSystemTreePresenter = new FolderSystemTreePresenter(controller, folderSystemTreeView, parentFolderPath, footer);

	SplitLayoutPanel mainContentPanel = new SplitLayoutPanel();
	DockLayoutPanel leftLayoutPanel = new DockLayoutPanel(Unit.PCT);
	ScrollPanel treeScrollPanel = new ScrollPanel();
	treeScrollPanel.add(folderSystemTreeView);
	FolderSelectionWidget folderSelectionWidget = new FolderSelectionWidget(batchClassesMap, controller.getEventBus());
	leftLayoutPanel.addNorth(folderSelectionWidget, 10);
	leftLayoutPanel.add(treeScrollPanel);
	mainContentPanel.addWest(leftLayoutPanel, 200);
	DockLayoutPanel contentMainPanel = new DockLayoutPanel(Unit.PCT);
	contentMainPanel.add(folderTableView);
	contentMainPanel.addStyleName(FolderManagementConstants.WHITE_BACKGROUND);
	mainContentPanel.add(contentMainPanel);
	mainPanel.add(mainContentPanel);
	ScreenMaskUtility.unmaskScreen();
}
 
開發者ID:kuzavas,項目名稱:ephesoft,代碼行數:27,代碼來源:FolderManagementView.java

示例2: OpenLocationViewImpl

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public OpenLocationViewImpl() {
  DockLayoutPanel panel = new DockLayoutPanel(Style.Unit.PX);

  NodeStorage storage =
      new NodeStorage(
          new NodeUniqueKeyProvider() {
            @Override
            public String getKey(@NotNull Node item) {
              return String.valueOf(item.hashCode());
            }
          });
  NodeLoader loader = new NodeLoader(Collections.<NodeInterceptor>emptySet());
  tree = new Tree(storage, loader);
  panel.add(tree);
  setContentWidget(panel);
  panel.ensureDebugId("LS-open-location-panel");
}
 
開發者ID:eclipse,項目名稱:che,代碼行數:18,代碼來源:OpenLocationViewImpl.java

示例3: FindUsagesViewImpl

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
@Inject
public FindUsagesViewImpl(
    NodeFactory nodeFactory, JavaLocalizationConstant localizationConstant) {
  this.nodeFactory = nodeFactory;
  setTitle(localizationConstant.findUsagesPartTitle());
  DockLayoutPanel panel = new DockLayoutPanel(Style.Unit.PX);

  NodeStorage storage =
      new NodeStorage(
          new NodeUniqueKeyProvider() {
            @Override
            public String getKey(@NotNull Node item) {
              return String.valueOf(item.hashCode());
            }
          });
  NodeLoader loader = new NodeLoader(Collections.<NodeInterceptor>emptySet());
  tree = new Tree(storage, loader);
  panel.add(tree);
  setContentWidget(panel);
  panel.ensureDebugId("findUsages-panel");
}
 
開發者ID:eclipse,項目名稱:che,代碼行數:22,代碼來源:FindUsagesViewImpl.java

示例4: makeTopHeader

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
protected Widget makeTopHeader(String title) {
        setTitleLabel(title);
        titleLabel.setWidth("100%");
        DOM.setStyleAttribute(titleLabel.getElement(),"cursor", "default");

        Widget close = makeCloseButton(true);

        DockLayoutPanel header = new DockLayoutPanel(Style.Unit.PX);

        header.setStyleName("title-bar");
//        header.addStyleName(_ffCss.titleBgColor());
        header.addStyleName(_ffCss.titleColor());
        header.addStyleName(_ffCss.popupTitleHorizontalBackground());
        titleLabel.addStyleName("title-label");

        header.addEast(close, 12);
        header.add(titleLabel);
        header.setHeight("14px");
        header.setWidth("100%");
        return header;
    }
 
開發者ID:lsst,項目名稱:firefly,代碼行數:22,代碼來源:PopupPane.java

示例5: makeUI

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public Widget makeUI() {
    spacialArea= new SpacialSelectUI(new SpacialSelectUI.TabChange() {
                public void onTabChange() {
                    adjustSpacialHeight();
                }
            });
    spacialArea.setSpacialOptions(new HashSet<SpacialType>(Arrays.asList(SpacialType.Cone, SpacialType.Box)), DataSetInfo.DataTypes.CATALOGS);
    spacialArea.updateSearchMax(3600);
    mainPanel.setSize("100%", "100%");

    topArea= new DockLayoutPanel(Style.Unit.PX);
    Widget spacialAreaWrap= new SimplePanel(spacialArea);
    topArea.add(spacialAreaWrap);
    mainPanel.addNorth(topArea, spacialArea.getHeightRequired());
    DOM.getParent(topArea.getElement()).addClassName("change-height-transition");
    return mainPanel;
}
 
開發者ID:lsst,項目名稱:firefly,代碼行數:18,代碼來源:LSSTCatalogSearchUI.java

示例6: reinit

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
void reinit(PopoutWidget.ViewType viewType, DockLayoutPanel expandRoot) {
        expandRoot.clear();
        doBlink(false);
        _expandGrid.clear();
        _expandDeck.clear();
        if (_topBar!=null) expandRoot.addNorth(_topBar, PopoutWidget.CONTROLS_HEIGHT_LARGE);
//        if (!AllPlots.getInstance().isMenuBarPopup()) {
//            expandRoot.addSouth(AllPlots.getInstance().getMenuBarInlineStatusLine(),25);
//        }
        if (viewType== PopoutWidget.ViewType.GRID) {
            expandRoot.add(_expandGrid);
            _expandGrid.setPixelSize(expandRoot.getOffsetWidth(), expandRoot.getOffsetHeight());
//            GwtUtil.setHidden(oneImageFillStyle, true);
        }
        else if (viewType== PopoutWidget.ViewType.ONE) {
            expandRoot.add(_expandDeck);
//            GwtUtil.setHidden(oneImageFillStyle, false);
        }
        GwtUtil.setHidden(_controlPanel, _originalExpandedList.size() <= 1);

    }
 
開發者ID:lsst,項目名稱:firefly,代碼行數:22,代碼來源:PopoutControlsUI.java

示例7: GwtRulerComposite

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
/**
 * Constructor
 * 
 * @param parent
 *            a widget which will be the parent of the new instance (cannot
 *            be null)
 * @param style
 *            the style of widget to construct
 * @see Composite#Composite(org.eclipse.swt.widgets.Composite, int)
 */
// public GwtRulerComposite(Composite parent, int style) {
// super(parent, style);
// addDisposeListener(new DisposeListener() {
// public void widgetDisposed(DisposeEvent e) {
// disposeResources();
// }
// });
// }

public GwtRulerComposite(LayoutPanel element) {
	super(null, SWT.NONE);
	this.rootElement = element;
	// create dock panel here with rulers
	dockLayoutPanel = new DockLayoutPanel(Unit.PX);
	dockLayoutPanel.getElement().setId("INNER_DOCK_LAYOUT_PANEL");
	rootElement.add(dockLayoutPanel);

	northPanel = new DockLayoutPanel(Unit.PX);
	northPanel.getElement().setId("NORTH_DOCK_LAYOUT_PANEL");
	dockLayoutPanel.addNorth(northPanel, 19);

	northPanel.addWest(createPickle(), 19);

	topPartInDockPanel = new Composite(null, SWT.NONE);
	LayoutPanel topPanel = (LayoutPanel) topPartInDockPanel
			.getNativeWidget();
	topPanel.getElement().setId("TOP_RULER");
	northPanel.add(topPanel);
	northPanel.forceLayout();

	westPartInDockPanel = new Composite(null, SWT.NONE);
	westPanel = (LayoutPanel) westPartInDockPanel.getNativeWidget();
	westPanel.getElement().setId("LEFT_RULER");
	dockLayoutPanel.addWest(westPanel, 19);

	view = (LayoutPanel) getGwtWidget();
	dockLayoutPanel.add(view);
	dockLayoutPanel.forceLayout();
}
 
開發者ID:ghillairet,項目名稱:gef-gwt,代碼行數:50,代碼來源:GwtRulerComposite.java

示例8: layoutViews

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
private void layoutViews() {
	TermDetailsView termView = new TermDetailsView(eventBus, service);
	TermSynonymsView synonymsView = new TermSynonymsView(eventBus, service);
	RelatedTermsView relationshipsView = new RelatedTermsView(eventBus, service);
	SearchInputView searchInputView = new SearchInputView(eventBus, service);
	SearchOptionsView searchOptionsView = new SearchOptionsView(eventBus, service);
	SearchResultsView searchResultsView = new SearchResultsView(eventBus, service, searchOptionsView);
	SVGView svgView = new SVGView(eventBus, service);
	//CodeListView codelistView = new CodeListView(eventBus, service);
			
	DockLayoutPanel layoutPanel = new DockLayoutPanel(Unit.PX);
	HorizontalPanel southPanel = new HorizontalPanel();	
	southPanel.add(termView);
	southPanel.add(synonymsView);
	southPanel.add(relationshipsView);
	
	southPanel.setCellWidth(termView, "33.33%");
	southPanel.setCellWidth(synonymsView, "33.33%");
	southPanel.setCellWidth(relationshipsView, "33.33%");
	southPanel.setWidth("100%");
	
	FlowPanel eastPanel = new FlowPanel();										
	eastPanel.add(searchInputView);
	eastPanel.add(searchOptionsView);
	eastPanel.add(searchResultsView);
			
	layoutPanel.addNorth(menuBar, 30);
	layoutPanel.addSouth(southPanel, 197);		
	layoutPanel.addEast(eastPanel, 300);	
	layoutPanel.add(svgView);
			
	RootLayoutPanel.get().add(layoutPanel);
}
 
開發者ID:Novartis,項目名稱:ontobrowser,代碼行數:34,代碼來源:OntoBrowser.java

示例9: FindResultViewImpl

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
@Inject
public FindResultViewImpl(
    FindResultViewImplUiBinder uiBinder,
    FindResultNodeFactory findResultNodeFactory,
    CoreLocalizationConstant localizationConstant) {
  NodeStorage nodeStorage = new NodeStorage();
  NodeLoader loader = new NodeLoader(emptySet());
  tree = new Tree(nodeStorage, loader);

  Widget contentWidget = uiBinder.createAndBindUi(this);
  setContentWidget(contentWidget);

  setTitle(localizationConstant.actionFullTextSearch());
  this.findResultNodeFactory = findResultNodeFactory;

  nextBtn.setHTML("<i class=\"fa fa-angle-right\" aria-hidden=\"true\"></i>");
  previousBtn.setHTML("<i class=\"fa fa-angle-left\" aria-hidden=\"true\"></i>");

  // do not remove debug id; it's needed for selenium tests
  tree.ensureDebugId("result-search-tree");
  ensureDebugId("find-info-panel");

  DockLayoutPanel dockLayoutPanel = (DockLayoutPanel) contentWidget;
  dockLayoutPanel.add(tree);

  tree.getSelectionModel()
      .addSelectionChangedHandler(event -> delegate.onSelectionChanged(event.getSelection()));

  tree.setAutoSelect(true);
}
 
開發者ID:eclipse,項目名稱:che,代碼行數:31,代碼來源:FindResultViewImpl.java

示例10: TitlePanel

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public TitlePanel(String title, Widget body, boolean showTitle) {
        titleWrapper = new HorizontalPanel();
        makeTitleLabel(titleWrapper);
        titleWrapper.add(titleLabel);
        titleWrapper.add(titleBar);
        titleWrapper.add(GwtUtil.getFiller(10, 1));
        titleWrapper.setCellWidth(titleBar, "100%");
        titleWrapper.setCellHorizontalAlignment(titleBar, HorizontalPanel.ALIGN_RIGHT);

        dlp = new DockLayoutPanel(Style.Unit.PX);
        if (showTitle) {
            dlp.addNorth(titleWrapper, 23);
            dlp.addNorth(GwtUtil.getFiller(1,2), 2);
        }
        dlp.add(body);
        dlp.setSize("100%", "100%");
//
//
//        FlowPanel vp = new FlowPanel();
//        vp.add(titleWrapper);
//        vp.add(body);
//        vp.setSize("100%", "100%");
        initWidget(dlp);
        this.body = body;

//        dlp.setStyleName("standard-border");
        setTitle(title);
        if (BrowserUtil.isIE()) {
            DOM.setStyleAttribute(titleLabel.getElement(), "whiteSpace", "nowrap");
        }
    }
 
開發者ID:lsst,項目名稱:firefly,代碼行數:32,代碼來源:TitlePanel.java

示例11: makeAniIcon

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
protected Widget makeAniIcon() {
    final DockLayoutPanel flyer = new DockLayoutPanel(Style.Unit.PCT);
    Label header = new Label("Alerts");
    Label body = new Label("Click on top left corner to re-open this dialog");
    body.setStyleName("popup-background");
    body.addStyleName("standard-border");
    header.addStyleName("title-bg-color");
    header.addStyleName("title-color");

    flyer.addNorth(header, 20);
    flyer.add(body);
    GwtUtil.setStyle(flyer, "zIndex", "10");
    return flyer;
}
 
開發者ID:lsst,項目名稱:firefly,代碼行數:15,代碼來源:AlertManager.java

示例12: ShellView

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public ShellView() {
  shell = new DockLayoutPanel(Style.Unit.PX);

  header = new SimpleLayoutPanel();
  navigation = new SimpleLayoutPanel();
  content = new SimpleLayoutPanel();

  shell.addNorth(header, 75);
  shell.addWest(navigation, 275);
  shell.add(content);

  initWidget(shell);
}
 
開發者ID:mvp4g,項目名稱:mvp4g-examples,代碼行數:14,代碼來源:ShellView.java

示例13: createRightPanels

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
private void createRightPanels() {
	DockLayoutPanel rightPanel=new DockLayoutPanel(Unit.PX);
	rightPanel.setSize("100%", "100%");
	this.add(rightPanel);
	
	createOptionArea(rightPanel);

	rightTabPanel = new TabLayoutPanel(40,Unit.PX);
	rightPanel.add(rightTabPanel);
	rightTabPanel.setSize("100%","100%");
	createPreviewArea(rightTabPanel);
	createHtmlArea(rightTabPanel);
	rightTabPanel.selectTab(0);
}
 
開發者ID:akjava,項目名稱:GWTMarkdownEditor,代碼行數:15,代碼來源:MarkdownEditor.java

示例14: addPreviewTab

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
protected void addPreviewTab() {
	DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
	Button b = new Button("Save!", new ClickHandler() {
	      public void onClick(ClickEvent event) {
	        Window.alert("This will save...");
	      }
	    });
	p.addNorth(new HTML("header"), 2);
	p.addSouth(new HTML("footer"), 2);
	p.addWest(b, 10);
	p.add(new HTML("Here we will display the preview"));
	p.setWidth(Window.getClientWidth()/5*4+"px");
	p.setHeight(Window.getClientHeight()/5*4+"px");
	main.add(p, "preview & save");
}
 
開發者ID:metafora-project,項目名稱:CAVilLag,代碼行數:16,代碼來源:CAVilLag.java

示例15: ExtendedDockPanel

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
/**
 * Extended dock panel
 */
public ExtendedDockPanel() {
	dockPanel = new DockLayoutPanel(Unit.PX);
	folderSelectPopup = new FolderSelectPopup();
	enableKeyShorcuts();

	// Object initialization
	topPanel = new TopPanel();
	leftBorderPanel = new VerticalBorderPanel();
	rightBorderPanel = new VerticalBorderPanel();
	bottomPanel = new BottomPanel();

	// Desktop panels initialization
	desktop = new Desktop();

	// Search panels initialization
	search = new Search();

	// Dashboard panel initialization
	dashboard = new Dashboard();

	// Administration panel initialization
	administration = new Administration();

	// set inner component's size
	setWidgetsSize();

	actualView = UIDockPanelConstants.DESKTOP;

	// Creates the dockPanel
	dockPanel.addNorth(topPanel, TopPanel.PANEL_HEIGHT);
	dockPanel.addSouth(bottomPanel, BottomPanel.PANEL_HEIGHT);
	dockPanel.addWest(leftBorderPanel, VERTICAL_BORDER_PANEL_WIDTH);
	dockPanel.addEast(rightBorderPanel, VERTICAL_BORDER_PANEL_WIDTH);
	dockPanel.add(desktop);

	Window.addResizeHandler(new ResizeHandler() {
		@Override
		public void onResize(ResizeEvent event) {
			setWidgetsSize();
			Main.get().mainPanel.topPanel.toolBar.windowResized(); // splitter changes
		}
	});

	initWidget(dockPanel);
}
 
開發者ID:openkm,項目名稱:document-management-system,代碼行數:49,代碼來源:ExtendedDockPanel.java


注:本文中的com.google.gwt.user.client.ui.DockLayoutPanel.add方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。