当前位置: 首页>>代码示例>>Java>>正文


Java SimplePager.Resources方法代码示例

本文整理汇总了Java中com.google.gwt.user.cellview.client.SimplePager.Resources方法的典型用法代码示例。如果您正苦于以下问题:Java SimplePager.Resources方法的具体用法?Java SimplePager.Resources怎么用?Java SimplePager.Resources使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.cellview.client.SimplePager的用法示例。


在下文中一共展示了SimplePager.Resources方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PanelPast

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
public PanelPast() {
	cellListChatLog = new CellListChatLog(new PastChatDataProvider(this));

	final SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
	simplePagerHeader = new SimplePager(TextLocation.CENTER, pagerResources, true, 10, true);
	simplePagerHeader.setDisplay(cellListChatLog);
	simplePagerHeader.setPageSize(Constant.CHAT_MAX_RESPONSES);

	simplePagerFooter = new SimplePager(TextLocation.CENTER, pagerResources, true, 10, true);
	simplePagerFooter.setDisplay(cellListChatLog);
	simplePagerFooter.setPageSize(Constant.CHAT_MAX_RESPONSES);

	initWidget(uiBinder.createAndBindUi(this));

	datePicker.addValueChangeHandler(this);
}
 
开发者ID:nodchip,项目名称:QMAClone,代码行数:17,代码来源:PanelPast.java

示例2: initGrid

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
private void initGrid() {
    // Init the logs grid.
    logsGrid = new CellTable<>(KEY_PROVIDER);
    logsGrid.setWidth("100%",
                      true);

    // Do not refresh the headers and footers every time the data is updated.
    logsGrid.setAutoHeaderRefreshDisabled(true);
    logsGrid.setAutoFooterRefreshDisabled(true);

    // Create a Pager to control the table.
    final SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
    logsGridPager = new SimplePager(SimplePager.TextLocation.CENTER,
                                    pagerResources,
                                    false,
                                    0,
                                    true);

    logsGridPager.setDisplay(logsGrid);
    presenter.addDataDisplay(logsGrid);
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:22,代码来源:NotificationsView.java

示例3: initGrid

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
private void initGrid() {
    // Init the logs grid.
    logsGrid = new CellTable<Notification>(presenter.KEY_PROVIDER);
    logsGrid.setWidth("100%",
                      true);
    // Do not refresh the headers and footers every time the data is updated.
    logsGrid.setAutoHeaderRefreshDisabled(true);
    logsGrid.setAutoFooterRefreshDisabled(true);
    // Create a Pager to control the table.
    SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
    logsGridPager = new SimplePager(SimplePager.TextLocation.CENTER,
                                    pagerResources,
                                    false,
                                    0,
                                    true);
    logsGridPager.setDisplay(logsGrid);
    presenter.addDataDisplay(logsGrid);
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:19,代码来源:NotificationsView.java

示例4: setupAnalyzerAndReportPanel2

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
public void setupAnalyzerAndReportPanel2(ScrollPanel analyzerPanel, DockLayoutPanel dPanel) {
	// Create a CellTable.
	final CellTable<AnalyzerResultDTO> table = new CellTable<AnalyzerResultDTO>();
	setupAnalyzeResultDisplayPanel(table, dataProvider);

	SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
	SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 10, true);
	pager.setDisplay(table);
	dataProvider.addDataDisplay(table);

	// Set the width of each column.
	// table.setColumnWidth(nameColumn, 35.0, Unit.PCT);
	final Label errorLabelDisplay = new Label();

	VerticalPanel displayPanel = new VerticalPanel();
	displayPanel.add(pager);
	displayPanel.add(table);
	displayPanel.add(errorLabelDisplay);
	displayPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
	analyzerPanel.add(displayPanel);

	// DoS detector panel
	// Any detector error message
	VerticalPanel vPanel = new VerticalPanel();
	final Label errorLabelActivateDetector = new Label();

	HorizontalPanel detectorPanel = new HorizontalPanel();
	detectorPanel.addStyleName("essencePanel");
	detectorPanel.setSpacing(10);
	setupDetectorPanel(detectorPanel, errorLabelActivateDetector, dataProvider);
	vPanel.add(detectorPanel);	
    
	vPanel.add(errorLabelActivateDetector);
	dPanel.addNorth(vPanel, 10);
}
 
开发者ID:dpinney,项目名称:essence,代码行数:36,代码来源:AnalyzerAndReportUI.java

示例5: addDialogWidgets

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
private void addDialogWidgets() {
	VerticalPanel vertPanel = new VerticalPanel();					
	SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
	SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 0, true) {
		@Override
		public void setPageStart(int index) {
			HasRows display = getDisplay();
			if (display != null) {
				Range range = display.getVisibleRange();
				int pageSize = range.getLength();
				if (isRangeLimited() && display.isRowCountExact()) {
					index = Math.min(index, display.getRowCount() - 1);
				}
				index = Math.max(0, index);
				if (index != range.getStart()) {
					display.setVisibleRange(index, pageSize);
				}
			}
		}
	};
			
	vertPanel.addStyleName("dialog-vpanel");
					
	
	vertPanel.add(table);
	vertPanel.add(pager);
    
	pager.setDisplay(table);
	pager.addStyleName("centered-hortz");    
    				
	dialogBox.setWidget(vertPanel);
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:33,代码来源:ControlledVocabularyTermLinksView.java

示例6: initImagesGrid

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
private void initImagesGrid() {
    imagesGrid = new CellTable<KieImage>(KEY_PROVIDER);
    imagesGrid.setWidth("100%", true);

    // Do not refresh the headers and footers every time the data is updated.
    imagesGrid.setAutoHeaderRefreshDisabled(true);
    imagesGrid.setAutoFooterRefreshDisabled(true);

    // Attach a column sort handler to the ListDataProvider to sort the list.
    ColumnSortEvent.ListHandler<KieImage> sortHandler = new ColumnSortEvent.ListHandler<KieImage>(imagesProvider.getList());
    imagesGrid.addColumnSortHandler(sortHandler);

    // Create a Pager to control the table.
    SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
    pager = new SimplePager(SimplePager.TextLocation.CENTER, pagerResources, false, 0, true);
    pager.setDisplay(imagesGrid);

    // Add a selection model so we can select cells.
    final SelectionModel<KieImage> selectionModel = new MultiSelectionModel<KieImage>(KEY_PROVIDER);
    imagesGrid.setSelectionModel(selectionModel,
            DefaultSelectionEventManager.<KieContainer>createCheckboxManager());

    // Initialize the columns.
    initTableColumns(selectionModel, sortHandler);

    // Add the CellList to the adapter in the database.
    addDataDisplay(imagesGrid);
}
 
开发者ID:kiegroup,项目名称:kie-docker-ci,代码行数:29,代码来源:ImagesView.java

示例7: initArtifactsGrid

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
private void initArtifactsGrid() {
    artifactsGrid = new CellTable<KieArtifact>(KEY_PROVIDER);
    artifactsGrid.setWidth("100%", true);

    // Do not refresh the headers and footers every time the data is updated.
    artifactsGrid.setAutoHeaderRefreshDisabled(true);
    artifactsGrid.setAutoFooterRefreshDisabled(true);

    // Attach a column sort handler to the ListDataProvider to sort the list.
    ColumnSortEvent.ListHandler<KieArtifact> sortHandler = new ColumnSortEvent.ListHandler<KieArtifact>(gridProvider.getList());
    artifactsGrid.addColumnSortHandler(sortHandler);

    // Create a Pager to control the table.
    SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
    pager = new SimplePager(SimplePager.TextLocation.CENTER, pagerResources, false, 0, true);
    pager.setDisplay(artifactsGrid);

    // Add a selection model so we can select cells.
    final SelectionModel<KieArtifact> selectionModel = new MultiSelectionModel<KieArtifact>(KEY_PROVIDER);
    artifactsGrid.setSelectionModel(selectionModel,
            DefaultSelectionEventManager.<KieArtifact>createCheckboxManager());

    // Initialize the columns.
    initTableColumns(selectionModel, sortHandler);

    // Add the CellList to the adapter in the database.
    addDataDisplay(artifactsGrid);
}
 
开发者ID:kiegroup,项目名称:kie-docker-ci,代码行数:29,代码来源:ArtifactsView.java

示例8: KieContainersExplorer

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
@UiConstructor
public KieContainersExplorer() {

    containerList = new CellTable<KieContainer>(KEY_PROVIDER);
    containerList.setWidth("100%", true);

    // Do not refresh the headers and footers every time the data is updated.
    containerList.setAutoHeaderRefreshDisabled(true);
    containerList.setAutoFooterRefreshDisabled(true);

    // Attach a column sort handler to the ListDataProvider to sort the list.
    ColumnSortEvent.ListHandler<KieContainer> sortHandler = new ColumnSortEvent.ListHandler<KieContainer>(containersProvider.getList());
    containerList.addColumnSortHandler(sortHandler);

    // Create a Pager to control the table.
    SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
    pager = new SimplePager(SimplePager.TextLocation.CENTER, pagerResources, false, 0, true);
    pager.setDisplay(containerList);

    // Add a selection model so we can select cells.
    final SelectionModel<KieContainer> selectionModel = new MultiSelectionModel<KieContainer>(KEY_PROVIDER);
    containerList.setSelectionModel(selectionModel,
            DefaultSelectionEventManager.<KieContainer>createCheckboxManager());

    // Initialize the columns.
    initTableColumns(selectionModel, sortHandler);

    // Add the CellList to the adapter in the database.
    addDataDisplay(containerList);
    
    initWidget(uiBinder.createAndBindUi(this));
}
 
开发者ID:kiegroup,项目名称:kie-docker-ci,代码行数:33,代码来源:KieContainersExplorer.java

示例9: initWidgets

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
@Override
public UserAttributesEditor.View initWidgets(NewUserAttributeEditor.View newUserAttributeEditorView) {
    this.newUserAttributeView = newUserAttributeEditorView;

    // Init the image list grid.
    attributesGrid = new CellTable<Map.Entry<String, String>>(presenter.KEY_PROVIDER);
    attributesGrid.setWidth("100%",
                            true);

    // Do not refresh the headers and footers every time the data is updated.
    attributesGrid.setAutoHeaderRefreshDisabled(true);
    attributesGrid.setAutoFooterRefreshDisabled(true);

    // Create a Pager to control the table.
    SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
    attributesGridPager = new SimplePager(SimplePager.TextLocation.CENTER,
                                          pagerResources,
                                          false,
                                          0,
                                          true);
    attributesGridPager.setDisplay(attributesGrid);

    // Add a selection model so we can select cells.
    final SelectionModel<Map.Entry<String, String>> selectionModel = new MultiSelectionModel<Map.Entry<String, String>>(presenter.KEY_PROVIDER);
    attributesGrid.setSelectionModel(selectionModel,
                                     DefaultSelectionEventManager.<Map.Entry<String, String>>createCheckboxManager());

    presenter.addDataDisplay(attributesGrid);

    // Bind this view and initialize the widget.
    initWidget(uiBinder.createAndBindUi(this));

    return this;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:35,代码来源:UserAttributesEditorView.java

示例10: AbstractGrid

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
public AbstractGrid(Style.Unit unit, boolean enableActions, boolean embedded, int pageSize, boolean init, 
        AvroUiGridResources gridResources, SimplePager.Resources pagerResources) {
    super(unit);
    this.enableActions = enableActions;
    this.embedded = embedded;
    this.pageSize = pageSize;
    this.gridResources = gridResources;
    this.pagerResources = pagerResources;
    if (init) {
        init();
    }
}
 
开发者ID:kaaproject,项目名称:avro-ui,代码行数:13,代码来源:AbstractGrid.java

示例11: PanelSettingImageLink

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
public PanelSettingImageLink() {
	setHorizontalAlignment(ALIGN_CENTER);

	final CellTableImageLink cellTableImageLink = new CellTableImageLink();
	final SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
	final SimplePager simplePager = new SimplePager(TextLocation.CENTER, pagerResources, false, 0, true);
	simplePager.setDisplay(cellTableImageLink);

	add(simplePager);
	add(cellTableImageLink);
}
 
开发者ID:nodchip,项目名称:QMAClone,代码行数:12,代码来源:PanelSettingImageLink.java

示例12: update

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
private void update(List<PacketProblem> problems) {
	clear();

	CellTableProblem table = new CellTableProblem(problems, false, PAGE_SIZE);
	SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
	SimplePager simplePager = new SimplePager(TextLocation.CENTER, pagerResources, false, 0,
			true);
	simplePager.setDisplay(table);

	add(simplePager);
	add(table);
}
 
开发者ID:nodchip,项目名称:QMAClone,代码行数:13,代码来源:PanelSettingIndicatedProblems.java

示例13: setupDecisionPanels

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
public void setupDecisionPanels(ScrollPanel decisionPanel, DockLayoutPanel dPanel) {
	// Create a CellTable.
	final CellTable<DecisionDTO> table = new CellTable<DecisionDTO>();
	setupDecisionDisplayPanel(table, dataProvider);

	SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
	SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 10, true);
	pager.setDisplay(table);
	dataProvider.addDataDisplay(table);

    final SingleSelectionModel<DecisionDTO> selectionModel = new SingleSelectionModel<DecisionDTO>();
    table.setSelectionModel(selectionModel);

	// Set the width of each column.
	// table.setColumnWidth(nameColumn, 35.0, Unit.PCT);
	final Label errorLabelDisplay = new Label();

	greetingService.getDecisions(new AsyncCallbackAdapter<List<DecisionDTO>>() {
		/*
		public void onFailure(Throwable caught) {
			errorLabelDisplay.setText(SERVER_ERROR);
		}
		*/
		// Called by onFailure if the session is still valid
		public void doFailureAction() {
			errorLabelDisplay.setText(SERVER_ERROR);
		}

		public void onSuccess(List<DecisionDTO> result) {
			dataProvider.setList(result);
		}
	});

	VerticalPanel displayPanel = new VerticalPanel();
	displayPanel.add(pager);
	displayPanel.add(table);
	displayPanel.add(errorLabelDisplay);
	displayPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
	decisionPanel.add(displayPanel);

	VerticalPanel vPanel = new VerticalPanel();
	final Label errorLabelControl = new Label();
	HorizontalPanel controlPanel = new HorizontalPanel();
	controlPanel.addStyleName("essencePanel");
	controlPanel.setSpacing(10);
	setupControlPanel(controlPanel, errorLabelControl, dataProvider);
	vPanel.add(controlPanel);	
    
	vPanel.add(errorLabelControl);
	dPanel.addNorth(vPanel, 10);
}
 
开发者ID:dpinney,项目名称:essence,代码行数:52,代码来源:DecisionUI.java

示例14: setupActionPanels

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
public void setupActionPanels(ScrollPanel ActionPanel, DockLayoutPanel dPanel) {
	

	// Create a CellTable.
	final CellTable<ActionDTO> table = new CellTable<ActionDTO>();
	setupActionDisplayPanel(table, dataProvider);

	SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
	SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 10, true);
	pager.setDisplay(table);
	dataProvider.addDataDisplay(table);

    final SingleSelectionModel<ActionDTO> selectionModel = new SingleSelectionModel<ActionDTO>();
    table.setSelectionModel(selectionModel);

	// Set the width of each column.
	// table.setColumnWidth(nameColumn, 35.0, Unit.PCT);
	final Label errorLabelDisplay = new Label();

	greetingService.getActions(new AsyncCallbackAdapter<List<ActionDTO>>() {
		/*
		public void onFailure(Throwable caught) {
			errorLabelDisplay.setText(SERVER_ERROR);
		}
		*/
		
		// Called by onFailure if the session is still valid
		public void doFailureAction() {
			errorLabelDisplay.setText(SERVER_ERROR);
		}

		public void onSuccess(List<ActionDTO> result) {
			dataProvider.setList(result);
		}
	});

	VerticalPanel displayPanel = new VerticalPanel();
	displayPanel.add(pager);
	displayPanel.add(table);
	displayPanel.add(errorLabelDisplay);
	displayPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
	ActionPanel.add(displayPanel);

	VerticalPanel vPanel = new VerticalPanel();
	final Label errorLabelControl = new Label();
	HorizontalPanel controlPanel = new HorizontalPanel();
	controlPanel.addStyleName("essencePanel");
	controlPanel.setSpacing(10);
	setupControlPanel(controlPanel, errorLabelControl, dataProvider);
	vPanel.add(controlPanel);	
    
	vPanel.add(errorLabelControl);
	dPanel.addNorth(vPanel, 10);
}
 
开发者ID:dpinney,项目名称:essence,代码行数:55,代码来源:ActionUI.java

示例15: setupDecisionRulePanel

import com.google.gwt.user.cellview.client.SimplePager; //导入方法依赖的package包/类
public void setupDecisionRulePanel(ScrollPanel analyzerPanel, DockLayoutPanel dPanel) {
	

	final Label errorLabelDisplay = new Label();

	// Create a CellTable.
	final CellTable<DecisionRuleDTO> table = new CellTable<>();
	setupDecisionRuleDisplayPanel(table, errorLabelDisplay);

	SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
	SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 10, true);
	pager.setDisplay(table);
	dataProvider.addDataDisplay(table);

	final SingleSelectionModel<DecisionRuleDTO> selectionModel = new SingleSelectionModel<>();
    table.setSelectionModel(selectionModel);

	greetingService.getDecisionRules(new AsyncCallbackAdapter<List<DecisionRuleDTO>>() {
		// Called by onFailure if the session is still valid
		public void doFailureAction() {
			errorLabelDisplay.setText(SERVER_ERROR);
		}

		public void onSuccess(List<DecisionRuleDTO> result) {
			dataProvider.setList(result);
		}
	});

	VerticalPanel displayPanel = new VerticalPanel();
	displayPanel.add(pager);
	displayPanel.add(table);
	displayPanel.add(errorLabelDisplay);
	displayPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
	analyzerPanel.add(displayPanel);
	
	VerticalPanel vPanel = new VerticalPanel();
	final Label errorLabelActivateDetector = new Label();
	HorizontalPanel addRuleAndFilterPanel = new HorizontalPanel();
	addRuleAndFilterPanel.addStyleName("essencePanel");
	addRuleAndFilterPanel.setSpacing(10);
	setupControlPanel(addRuleAndFilterPanel, errorLabelActivateDetector, dataProvider);
	vPanel.add(addRuleAndFilterPanel);	
    
	vPanel.add(errorLabelActivateDetector);
	dPanel.addNorth(vPanel, 10);
}
 
开发者ID:dpinney,项目名称:essence,代码行数:47,代码来源:DecisionRuleUI.java


注:本文中的com.google.gwt.user.cellview.client.SimplePager.Resources方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。