当前位置: 首页>>代码示例>>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;未经允许,请勿转载。