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