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


Java ScrollPanel.setStylePrimaryName方法代碼示例

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


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

示例1: ManifestView

import com.google.gwt.user.client.ui.ScrollPanel; //導入方法依賴的package包/類
public ManifestView() {
	CellList.Resources cell_res = GWT.create(CellListResources.class);
	
	Panel main = new FlowPanel();
    top = new ScrollPanel(main);
    top.setStylePrimaryName("View");
    
    this.cell_list = new CellList<Reference<Sequence>>(new ReferenceCell<Sequence>(), cell_res);
    this.selection_model = new SingleSelectionModel<Reference<Sequence>>();
    
    cell_list.addStyleName("CellList");
    cell_list.setSelectionModel(selection_model);

    Label panel_title = new Label(Messages.INSTANCE.manifestInstruction());
    panel_title.setStylePrimaryName("PanelTitle");

    this.manifest_label = new Label();
    manifest_label.setStylePrimaryName("PanelHeader");

    main.add(panel_title);
    main.add(manifest_label);
    main.add(cell_list);

    addContent(top);
}
 
開發者ID:jhu-digital-manuscripts,項目名稱:rosa,代碼行數:26,代碼來源:ManifestView.java

示例2: CollectionView

import com.google.gwt.user.client.ui.ScrollPanel; //導入方法依賴的package包/類
public CollectionView() {
    CellList.Resources cell_res = GWT.create(CellListResources.class);

    main = new FlowPanel();
    top = new ScrollPanel();
    top.setStylePrimaryName("View");

    cell_list = new CellList<Reference<Manifest>>(
            new ReferenceCell<Manifest>(), cell_res);

    top.add(cell_list);
    cell_list.addStyleName("CellList");

    selection_model = new SingleSelectionModel<Reference<Manifest>>();
    cell_list.setSelectionModel(selection_model);

    Label panel_title = new Label(Messages.INSTANCE.collectionInstruction());
    panel_title.setStylePrimaryName("PanelTitle");

    main.add(panel_title);

    collection_label = new Label();
    collection_label.setStylePrimaryName("PanelHeader");

    main.add(collection_label);
    main.add(top);

    addContent(main);
}
 
開發者ID:jhu-digital-manuscripts,項目名稱:rosa,代碼行數:30,代碼來源:CollectionView.java

示例3: onModuleLoad

import com.google.gwt.user.client.ui.ScrollPanel; //導入方法依賴的package包/類
/**
 * This is the entry point method.
 */
public void onModuleLoad() {
	SplitLayoutPanel mainPanel = new SplitLayoutPanel();
	
	
	
	mainPanel.setStylePrimaryName("main");
	
	treePanel = new TreePanel(this);
	contentPanel = new ScrollPanel();
	
	companyPanel = new CompanyPanel(treePanel);
	departmentPanel = new DepartmentPanel(treePanel, this);
	employeePanel = new EmployeePanel(treePanel, this);
	
	treePanel.refreshTree();
	
	ScrollPanel treeScroll = new ScrollPanel(treePanel);
	treeScroll.setStylePrimaryName("tree");
	
	mainPanel.addSouth(new ButtonPanel(this), 32);
	mainPanel.addWest(treeScroll, 350);
	mainPanel.add(contentPanel);
	
	RootPanel.get("content").add(mainPanel);
}
 
開發者ID:amritbhat786,項目名稱:DocIT,代碼行數:29,代碼來源:GwtTree.java

示例4: HomeView

import com.google.gwt.user.client.ui.ScrollPanel; //導入方法依賴的package包/類
public HomeView() {
	CellList.Resources cell_res = GWT.create(CellListResources.class); 
	
	this.load_button = new Button(Messages.INSTANCE.load());
    this.user_textbox = new TextBox();
    this.is_col_checkbox = new CheckBox("Collection");
    
    TextCell text_cell = new TextCell();
    this.cell_list = new CellList<String>(text_cell, cell_res);
    this.selection_model = new SingleSelectionModel<String>();
    
    cell_list.addStyleName("CellList");
    cell_list.setWidth(250 + "px");
    cell_list.setSelectionModel(selection_model);

    main = new FlowPanel();
    top = new ScrollPanel(main);
    top.setStylePrimaryName("View");

    Label panel_title = new Label(Messages.INSTANCE.homeLabel());
    panel_title.setStylePrimaryName("PanelTitle");

    main.add(panel_title);
    main.add(cell_list);

    FlowPanel toolbar_panel = new FlowPanel();
    toolbar_panel.setStylePrimaryName("PanelToolbar");

    Label panel_header = new Label(Messages.INSTANCE.homeLabelUser());
    panel_header.setStylePrimaryName("PanelHeader");

    main.add(panel_header);
    main.add(new Label(Messages.INSTANCE.homeUserInstruction()));

    main.add(toolbar_panel);

    toolbar_panel.add(user_textbox);
    toolbar_panel.add(is_col_checkbox);
    toolbar_panel.add(load_button);

    addContent(top);
}
 
開發者ID:jhu-digital-manuscripts,項目名稱:rosa,代碼行數:43,代碼來源:HomeView.java


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