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


Java DockLayoutPanel.addStyleName方法代碼示例

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


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

示例3: initUI

import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
private void initUI() {



        Widget searchMon= layoutSearchMon();
        DockLayoutPanel bottomWrapper= new DockLayoutPanel(Style.Unit.PX);
        bottomWrapper.addStyleName("bottomWrapper");
        mainPanel.addSouth(bottomWrapper, 100);


        if (searchUIList.size()>1) {
            Widget sideBar= createSidebar();
            mainPanel.addWest(sideBar, 150);
        }

        for(SearchUI sUI : searchUIList) {
            allSearchUIPanel.add(sUI.makeUI());
        }




        Widget aSec= createActivateSection();
        SimplePanel aSecWrapper= new SimplePanel(aSec);

        GwtUtil.setStyles(aSec, "position", "absolute",
                          "right", "10px",
                          "bottom", "40px",
                          "width", "auto");

        bottomWrapper.addEast(aSecWrapper, 350);
        bottomWrapper.add(searchMon);

        GwtUtil.setStyles(searchMon, "paddingLeft", "15px");

        setActiveSearchUIPanel(0);
        allSearchUIPanel.addStyleName("allSearchUIPanel");
        mainPanel.add(allSearchUIPanel);
    }
 
開發者ID:lsst,項目名稱:firefly,代碼行數:40,代碼來源:FuseSearchPanel.java


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