本文整理匯總了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);
}