本文整理汇总了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();
}
示例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;
}
示例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);
}