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