本文整理汇总了Java中de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator类的典型用法代码示例。如果您正苦于以下问题:Java BootstrapAjaxPagingNavigator类的具体用法?Java BootstrapAjaxPagingNavigator怎么用?Java BootstrapAjaxPagingNavigator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BootstrapAjaxPagingNavigator类属于de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax包,在下文中一共展示了BootstrapAjaxPagingNavigator类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onInitialize
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
@Override
protected void onInitialize() {
super.onInitialize();
entities = new DataView<T>("entities", getEntityProvider(), getItemsPerPage()) {
private static final long serialVersionUID = 1918076240043442975L;
@Override
protected void populateItem(final Item<T> item) {
populateDataViewItem(item);
}
};
container.add(entities);
container.add(new Label("table.head", new StringResourceModel("panel.title", this, null, Model.of(searchTerm))));
tableFoot.add(new BootstrapAjaxPagingNavigator("navigatorFoot",
entities));
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:17,代码来源:AbstractSearchResultsPanel.java
示例2: populateItems
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
private void populateItems(){
DataView<Consumption> consumptions = new DataView<Consumption>("consumptions", new ConsumptionProvider()){
@Override
protected void populateItem(Item<Consumption> item) {
item.add(new Label("date", new PropertyModel<String>(item.getModel(), "consumptionDate")));
item.add(new Label("username", new PropertyModel<String>(item.getModel().getObject().getConsumedBy(), "username")));
item.add(new Label("firstname", new PropertyModel<String>(item.getModel().getObject().getConsumedBy(), "firstname")));
item.add(new Label("lastname", new PropertyModel<String>(item.getModel().getObject().getConsumedBy(), "lastname")));
item.add(new Label("all", new PropertyModel<String>(item.getModel().getObject().getConsumedBy().getConsumptions(), "size")));
item.add(new Label("account", new PropertyModel<String>(item.getModel().getObject().getConsumedBy().getAccount(), "value")));
}
};
consumptions.setItemsPerPage(25);
add(consumptions);
add(new BootstrapAjaxPagingNavigator("pager", consumptions));
}
开发者ID:atomfrede,项目名称:freezing-octo-bear,代码行数:20,代码来源:ConsumptionOverviewPanel.java
示例3: DefaultDataTable
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
public DefaultDataTable(final String id, final List<? extends IColumn<T, S>> columns,
final ISortableDataProvider<T, S> dataProvider, final int rowsPerPage) {
super(id, columns, dataProvider, rowsPerPage);
addBottomToolbar(new AjaxNavigationToolbar(this) {
@Override
protected PagingNavigator newPagingNavigator(String navigatorId, DataTable<?, ?> table) {
return new BootstrapAjaxPagingNavigator(navigatorId, table);
}
});
addTopToolbar(new AjaxFallbackHeadersToolbar<S>(this, dataProvider));
addBottomToolbar(new NoRecordsToolbar(this));
}
开发者ID:jmfgdev,项目名称:gitplex-mit,代码行数:16,代码来源:DefaultDataTable.java
示例4: newPagingNavigator
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
@Override
protected PagingNavigator newPagingNavigator(final String navigatorId, final DataTable<?, ?> table) {
return new BootstrapAjaxPagingNavigator(navigatorId, table) {
private static final long serialVersionUID = -5254490177324296529L;
@Override
protected void onAjaxEvent(final AjaxRequestTarget target) {
if (container != null) {
target.add(container);
}
}
};
}
开发者ID:apache,项目名称:syncope,代码行数:15,代码来源:AjaxDataNavigationToolbar.java
示例5: SearchResultsPanel
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
public SearchResultsPanel(String id, final IModel<QueryFacetsSelection> selectionModel, IDataProvider<SolrDocument> solrDocumentProvider) {
super(id, selectionModel);
this.expansionsModel = new Model(new HashSet<Object>());
//define the order for availability values
final Ordering<String> availabilityOrdering = new PreferredExplicitOrdering(
//extract the 'primary' availability values from the configuration
FieldValueDescriptor.valuesList(vloConfig.getAvailabilityValues()));
// data view for search results
resultsView = new DataView<SolrDocument>("resultItem", solrDocumentProvider, 10) {
@Override
protected void populateItem(Item<SolrDocument> item) {
final long index = (getCurrentPage() * getItemsPerPage()) + item.getIndex();
final long size = internalGetDataProvider().size();
final SearchContextModel contextModel = new SearchContextModel(index, size, selectionModel);
// single result item
item.add(new SearchResultItemPanel("resultItemDetails", item.getModel(), contextModel,
new SearchResultExpansionStateModel(expansionsModel, item.getModel()), availabilityOrdering
));
}
};
add(resultsView);
//For Ajax updating of search results
setOutputMarkupId(true);
add(new HighlightSearchTermBehavior() {
@Override
protected String getComponentSelector(String componentId) {
return ".searchresultitem"; //"h3, .searchresultdescription"
}
@Override
protected String getWordList(Component component) {
return selectionModel.getObject().getQuery();
}
});
// pagination navigators
navigatorTop = new BootstrapAjaxPagingNavigator("pagingTop", resultsView);
add(navigatorTop);
navigatorBottom = new BootstrapAjaxPagingNavigator("pagingBottom", resultsView);
add(navigatorBottom);
// add Piwik tracking behavior
if (piwikConfig.isEnabled()) {
navigatorTop.add(AjaxPiwikTrackingBehavior.newEventTrackingBehavior(TRACKING_EVENT_TITLE));
navigatorBottom.add(AjaxPiwikTrackingBehavior.newEventTrackingBehavior(TRACKING_EVENT_TITLE));
}
}
开发者ID:acdh-oeaw,项目名称:vlo-curation,代码行数:55,代码来源:SearchResultsPanel.java
示例6: ResourceLinksPanel
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
/**
*
* @param id panel id
* @param documentModel model of document that holds the resources
*/
public ResourceLinksPanel(String id, IModel<SolrDocument> documentModel) {
super(id, documentModel);
final SolrFieldModel<String> resourcesModel
= new SolrFieldModel<>(documentModel, FacetConstants.FIELD_RESOURCE);
final IModel<String> landingPageModel
// wrap in model that transforms handle links
= new HandleLinkModel(
// get landing page from document
new SolrFieldStringModel(documentModel, FacetConstants.FIELD_LANDINGPAGE));
// create table of resources with optional details
final ResourcesListView resourceListing = new ResourcesListView("resource", new CollectionListModel<>(resourcesModel));
add(resourcesTable = createResourcesTable("resources", resourceListing));
// pagination
add(new BootstrapAjaxPagingNavigator("paging", resourceListing) {
@Override
protected void onConfigure() {
setVisible(resourceListing.getPageCount() > 1);
}
});
add(new MarkupContainer("noResources") {
@Override
protected void onConfigure() {
setVisible(resourceListing.getPageCount() == 0);
}
}.add(new WebMarkupContainer("landingPageContainer") {
@Override
protected void onConfigure() {
setVisible(landingPageModel.getObject() != null);
}
}.add(new ExternalLink("landingPageLink", landingPageModel))));
//For Ajax updating of resource listing when paging
setOutputMarkupId(true);
}
开发者ID:acdh-oeaw,项目名称:vlo-curation,代码行数:49,代码来源:ResourceLinksPanel.java
示例7: newPagingNavigator
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
@Override
protected PagingNavigator newPagingNavigator(String navigatorId, DataTable<?, ?> table) {
return new BootstrapAjaxPagingNavigator(navigatorId, table);
}
开发者ID:lumenrobot,项目名称:lumen,代码行数:5,代码来源:BootstrapNavigationToolbar.java
示例8: TeamListPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
public TeamListPage(final PageParameters pageParameters) {
super(pageParameters);
if (!pageParameters.get("id").isEmpty()) {
project = projectService.getById(pageParameters.get("id").toLong());
if (project == null) {
throw new EntityNotFoundException(Team.class, pageParameters.get("id").toOptionalString());
}
}
Form<Void> form = new Form("form");
provider = new TeamEntityProvider();
DataView<Team> usersView = new DataView<Team>("teams", provider, itemsPerPage) {
@Override
protected void populateItem(Item<Team> item) {
final Team team = item.getModelObject();
item.add(new Check<>("teamCheck", item.getModel(), teamGroup));
BookmarkablePageLink<TeamEditPage> editTeam = new BookmarkablePageLink<>("link.edit.team", TeamEditPage.class, new PageParameters().add("id", team.getId()));
item.add(editTeam.add(new Label("td.teamname", new PropertyModel<>(team, "name"))));
item.add(new Label("td.description", new PropertyModel<>(team, "description")));
item.add(newMembersPanel(team));
Link editButton = new BookmarkablePageLink("button.edit", TeamEditPage.class, new PageParameters().add("id", team.getId()));
item.add(editButton);
item.setOutputMarkupId(true);
}
};
form.add(teamGroup = newCheckGroup());
teamsContainer = new WebMarkupContainer("teamsContainer");
teamGroup.add(teamsContainer.setOutputMarkupId(true));
CheckGroupSelector checkGroupSelector = new CheckGroupSelector("teamGroupSelector", teamGroup);
teamsContainer.add(checkGroupSelector);
teamsContainer.add(usersView);
teamsContainer.add(deleteSelectedButton = newDeleteSelectedButton(teamGroup));
teamsContainer.add(addSelectedButton = addteamButton(teamGroup));
BookmarkablePageLink<TeamEditPage> createTeam = new BookmarkablePageLink<>("link.create.team", TeamEditPage.class);
teamsContainer.add(createTeam);
add(form);
teamsContainer.add(navigator = new BootstrapAjaxPagingNavigator(
"navigatorFoot", usersView));
allProjects = treeNodeService.getAllProjects();
// add confirmation modal for deleting items, and adding team to a project
add(deleteConfirmationModal = newDeleteConfirmationModal());
add(addConfirmationModal = newAddConfirmationModal());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:48,代码来源:TeamListPage.java
示例9: HistoricProjectPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
/**
* Constructor building the page
*
* @param parameters
*/
public HistoricProjectPage(final PageParameters parameters) {
super(parameters);
// TODO: I dont know why this does not work???
// String key = getPageParameters().get("project-key").toOptionalString();
project = treeNodeService.getTreeNodeByKey("U-QASAR");
projectId = project.getId();
add(new Label("metricName", project.getName()));
final Form<AbstractHistoricValues> deleteForm = new Form<>("deleteForm");
add(deleteForm);
// add checkgroup for selecting multiple measurements
deleteForm.add(dataGroup = newDataCheckGroup());
// add the container holding list of existing measurements
dataGroup.add(dataContainer.setOutputMarkupId(true));
dataContainer.add(new CheckGroupSelector(
"dataGroupSelector", dataGroup));
DataView<AbstractHistoricValues> dataMeasurements = new DataView<AbstractHistoricValues>(
"dataMeasurements", new DataProvider(), itemsPerPage) {
private static final long serialVersionUID = 7687248000895943825L;
@Override
protected void populateItem(final Item<AbstractHistoricValues> item) {
final AbstractHistoricValues historicDataMeasurement = item.getModelObject();
item.add(new Check<>("dataCheck", item
.getModel(), dataGroup));
item.add(new Label ("value", new PropertyModel<String>(
historicDataMeasurement, "value")));
item.add(new Label ("lowerAcceptanceLimit", new PropertyModel<String>(
historicDataMeasurement, "lowerAcceptanceLimit")));
item.add(new Label("upperAcceptanceLimit", new PropertyModel<String>(
historicDataMeasurement, "upperAcceptanceLimit")));
item.add(new Label("timeStamp", new PropertyModel<Date>(
historicDataMeasurement, "date")));
}
};
dataContainer.add(dataMeasurements);
// Add graphical representation of the values
dataContainer.add(historicChart = historicChart());
// add links for table pagination
dataContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorHead", dataMeasurements));
dataContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorFoot", dataMeasurements));
// add button to delete selected items
dataContainer
.add(deleteSelectedButton = newDeleteSelectedButton(dataGroup));
// add confirmation modal for deleting products
add(deleteConfirmationModal = newDeleteConfirmationModal());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:74,代码来源:HistoricProjectPage.java
示例10: HistoricBaseIndicatorPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
/**
* Constructor building the page
*
* @param parameters
*/
public HistoricBaseIndicatorPage(final PageParameters parameters) {
super(parameters);
// set the Base indicator
baseIndicatorId = parameters.get("id").toOptionalLong();
baseIndicator = historicalService.getBaseIndicatorById(baseIndicatorId);
add(new Label("metricName", baseIndicator.getName()));
final Form<AbstractHistoricValues> deleteForm = new Form<>("deleteForm");
add(deleteForm);
// add checkgroup for selecting multiple measurements
deleteForm.add(dataGroup = newDataCheckGroup());
// add the container holding list of existing measurements
dataGroup.add(dataContainer.setOutputMarkupId(true));
dataContainer.add(new CheckGroupSelector(
"dataGroupSelector", dataGroup));
DataView<AbstractHistoricValues> dataMeasurements = new DataView<AbstractHistoricValues>(
"dataMeasurements", new DataProvider(), itemsPerPage) {
private static final long serialVersionUID = 7687248000895943825L;
@Override
protected void populateItem(final Item<AbstractHistoricValues> item) {
final AbstractHistoricValues historicDataMeasurement = item.getModelObject();
item.add(new Check<>("dataCheck", item
.getModel(), dataGroup));
item.add(new Label ("value", new PropertyModel<String>(
historicDataMeasurement, "value")));
item.add(new Label ("targetValue", new PropertyModel<String>(
historicDataMeasurement, "targetValue")));
item.add(new Label ("lowerAcceptanceLimit", new PropertyModel<String>(
historicDataMeasurement, "lowerAcceptanceLimit")));
item.add(new Label("upperAcceptanceLimit", new PropertyModel<String>(
historicDataMeasurement, "upperAcceptanceLimit")));
item.add(new Label("weight", new PropertyModel<String>(
historicDataMeasurement, "weight")));
item.add(new Label("timeStamp", new PropertyModel<Date>(
historicDataMeasurement, "date")));
}
};
dataContainer.add(dataMeasurements);
// Add graphical representation of the values
dataContainer.add(historicChart = historicChart());
// add links for table pagination
dataContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorHead", dataMeasurements));
dataContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorFoot", dataMeasurements));
// add button to delete selected items
dataContainer
.add(deleteSelectedButton = newDeleteSelectedButton(dataGroup));
// add confirmation modal for deleting products
add(deleteConfirmationModal = newDeleteConfirmationModal());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:78,代码来源:HistoricBaseIndicatorPage.java
示例11: GitlabDataManagementPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
/**
* Constructor building the page
*
* @param parameters
*/
public GitlabDataManagementPage(final PageParameters parameters) {
super(parameters);
Long adapterId = parameters.get("id").toLongObject();
final Form<GitlabMetricMeasurement> deleteForm = new Form<>("deleteForm");
add(deleteForm);
// add checkgroup for selecting multiple products
deleteForm.add(gitlabGroup = newGitlabCheckGroup());
// add the container holding list of existing products
gitlabGroup.add(gitlabContainer.setOutputMarkupId(true));
gitlabContainer.add(new CheckGroupSelector(
"gitlabGroupSelector", gitlabGroup));
DataView<GitlabMetricMeasurement> gitlabMeasurements = new DataView<GitlabMetricMeasurement>(
"gitlabMeasurements", new GitlabProvider(adapterId), itemsPerPage) {
@Override
protected void populateItem(final Item<GitlabMetricMeasurement> item) {
final GitlabMetricMeasurement gitlabMetricMeasurement = item.getModelObject();
item.add(new Check<>("gitlabCheck", item
.getModel(), gitlabGroup));
item.add(new Label("name", new PropertyModel<String>(
gitlabMetricMeasurement, "name")));
item.add(new Label("metric", new PropertyModel<String>(
gitlabMetricMeasurement, "gitlabMetric")));
item.add(new Label("value", new PropertyModel<String>(
gitlabMetricMeasurement, "value")));
item.add(new Label("timeStamp", new PropertyModel<Date>(
gitlabMetricMeasurement, "timeStamp")));
}
};
gitlabContainer.add(gitlabMeasurements);
// add links for table pagination
gitlabContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorHead", gitlabMeasurements));
gitlabContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorFoot", gitlabMeasurements));
// add button to delete selected items
gitlabContainer
.add(deleteSelectedButton = newDeleteSelectedButton(gitlabGroup));
// add confirmation modal for deleting products
add(deleteConfirmationModal = newDeleteConfirmationModal());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:63,代码来源:GitlabDataManagementPage.java
示例12: IssueTrackerDataManagementPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
/**
* Constructor building the page
*
* @param parameters
*/
public IssueTrackerDataManagementPage(final PageParameters parameters) {
super(parameters);
Long adapterId = parameters.get("id").toLongObject();
final Form<JiraMetricMeasurement> deleteForm = new Form<>("deleteForm");
add(deleteForm);
// add checkgroup for selecting multiple measurements
deleteForm.add(jiraGroup = newJiraCheckGroup());
// add the container holding list of existing measurements
jiraGroup.add(jiraContainer.setOutputMarkupId(true));
jiraContainer.add(new CheckGroupSelector(
"jiraGroupSelector", jiraGroup));
DataView<JiraMetricMeasurement> jiraMeasurements = new DataView<JiraMetricMeasurement>(
"jiraMeasurements", new JiraProvider(adapterId), itemsPerPage) {
private static final long serialVersionUID = -2997007102890828835L;
@Override
protected void populateItem(final Item<JiraMetricMeasurement> item) {
final JiraMetricMeasurement jiraMetricMeasurement = item.getModelObject();
item.add(new Check<>("jiraCheck", item
.getModel(), jiraGroup));
item.add(new Label("key", new PropertyModel<String>(
jiraMetricMeasurement, "jiraKey")));
item.add(new Label("self", new PropertyModel<String>(
jiraMetricMeasurement, "self")));
item.add(new Label("jiraMetric", new PropertyModel<String>(
jiraMetricMeasurement, "jiraMetric")));
item.add(new Label("jsonContent", new PropertyModel<String>(
jiraMetricMeasurement, "jsonContent")));
item.add(new Label("timeStamp", new PropertyModel<Date>(
jiraMetricMeasurement, "timeStamp")));
// add button to show AddEditPage
item.add(new BookmarkablePageLink<IssueTrackerDataManagementEditPage>(
"edit", IssueTrackerDataManagementEditPage.class,
forTableEntity(jiraMetricMeasurement,parameters)));
}
};
jiraContainer.add(jiraMeasurements);
// add links for table pagination
jiraContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorHead", jiraMeasurements));
jiraContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorFoot", jiraMeasurements));
// add button to delete selected items
jiraContainer
.add(deleteSelectedButton = newDeleteSelectedButton(jiraGroup));
// add confirmation modal for deleting products
add(deleteConfirmationModal = newDeleteConfirmationModal());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:72,代码来源:IssueTrackerDataManagementPage.java
示例13: TestFrameworkDataManagementPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
/**
* Constructor building the page
*
* @param parameters
*/
public TestFrameworkDataManagementPage(final PageParameters parameters) {
super(parameters);
Long adapterId = parameters.get("id").toLongObject();
final Form<TestLinkMetricMeasurement> deleteForm = new Form<>("deleteForm");
add(deleteForm);
// add checkgroup for selecting multiple products
deleteForm.add(testLinkGroup = newTestLinkCheckGroup());
// add the container holding list of existing products
testLinkGroup.add(testLinkContainer.setOutputMarkupId(true));
testLinkContainer.add(new CheckGroupSelector(
"testLinkGroupSelector", testLinkGroup));
DataView<TestLinkMetricMeasurement> testLinkMeasurements = new DataView<TestLinkMetricMeasurement>(
"testLinkMeasurements", new TestLinkProvider(adapterId), itemsPerPage) {
/**
*
*/
private static final long serialVersionUID = -4323485288017314459L;
@Override
protected void populateItem(final Item<TestLinkMetricMeasurement> item) {
final TestLinkMetricMeasurement testLinkMetricMeasurement = item.getModelObject();
item.add(new Check<>("testLinkCheck", item
.getModel(), testLinkGroup));
item.add(new Label("name", new PropertyModel<String>(
testLinkMetricMeasurement, "name")));
item.add(new Label("key", new PropertyModel<String>(
testLinkMetricMeasurement, "testLinkKey")));
item.add(new Label("metric", new PropertyModel<String>(
testLinkMetricMeasurement, "testLinkMetric")));
item.add(new Label("value", new PropertyModel<String>(
testLinkMetricMeasurement, "value")));
item.add(new Label("timeStamp", new PropertyModel<Date>(
testLinkMetricMeasurement, "timeStamp")));
// add button to show AddEditPage
item.add(new BookmarkablePageLink<TestFrameworkDataManagementEditPage>(
"edit", TestFrameworkDataManagementEditPage.class,
forTableEntity(testLinkMetricMeasurement,parameters)));
}
};
testLinkContainer.add(testLinkMeasurements);
// add links for table pagination
testLinkContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorHead", testLinkMeasurements));
testLinkContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorFoot", testLinkMeasurements));
// add button to delete selected items
testLinkContainer
.add(deleteSelectedButton = newDeleteSelectedButton(testLinkGroup));
// add confirmation modal for deleting products
add(deleteConfirmationModal = newDeleteConfirmationModal());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:76,代码来源:TestFrameworkDataManagementPage.java
示例14: JenkinsDataManagementPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
/**
* Constructor building the page
*
* @param parameters
*/
public JenkinsDataManagementPage(final PageParameters parameters) {
super(parameters);
Long adapterId = parameters.get("id").toLongObject();
final Form<JenkinsMetricMeasurement> deleteForm = new Form<>("deleteForm");
add(deleteForm);
// add checkgroup for selecting multiple products
deleteForm.add(jenkinsGroup = newJenkinsCheckGroup());
// add the container holding list of existing products
jenkinsGroup.add(jenkinsContainer.setOutputMarkupId(true));
jenkinsContainer.add(new CheckGroupSelector(
"jenkinsGroupSelector", jenkinsGroup));
DataView<JenkinsMetricMeasurement> jenkinsMeasurements = new DataView<JenkinsMetricMeasurement>(
"jenkinsMeasurements", new JenkinsProvider(adapterId), itemsPerPage) {
@Override
protected void populateItem(final Item<JenkinsMetricMeasurement> item) {
final JenkinsMetricMeasurement jenkinsMetricMeasurement = item.getModelObject();
item.add(new Check<>("jenkinsCheck", item
.getModel(), jenkinsGroup));
item.add(new Label("name", new PropertyModel<String>(
jenkinsMetricMeasurement, "name")));
item.add(new Label("metric", new PropertyModel<String>(
jenkinsMetricMeasurement, "jenkinsMetric")));
item.add(new Label("value", new PropertyModel<String>(
jenkinsMetricMeasurement, "value")));
item.add(new Label("timeStamp", new PropertyModel<Date>(
jenkinsMetricMeasurement, "timeStamp")));
// add button to show AddEditPage
item.add(new BookmarkablePageLink<JenkinsDataManagementEditPage>(
"edit", JenkinsDataManagementEditPage.class,
forTableEntity(jenkinsMetricMeasurement,parameters)));
}
};
jenkinsContainer.add(jenkinsMeasurements);
// add links for table pagination
jenkinsContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorHead", jenkinsMeasurements));
jenkinsContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorFoot", jenkinsMeasurements));
// add button to delete selected items
jenkinsContainer
.add(deleteSelectedButton = newDeleteSelectedButton(jenkinsGroup));
// add confirmation modal for deleting products
add(deleteConfirmationModal = newDeleteConfirmationModal());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:69,代码来源:JenkinsDataManagementPage.java
示例15: CubeAnalysisDataManagementPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
/**
* Constructor building the page
*
* @param parameters
*/
public CubeAnalysisDataManagementPage(final PageParameters parameters) {
super(parameters);
Long adapterId = parameters.get("id").toLongObject();
final Form<CubesMetricMeasurement> deleteForm = new Form<>("deleteForm");
add(deleteForm);
// add checkgroup for selecting multiple measurements
deleteForm.add(cubesGroup = newCubesCheckGroup());
// add the container holding list of existing measurements
cubesGroup.add(cubesContainer.setOutputMarkupId(true));
cubesContainer.add(new CheckGroupSelector(
"cubesGroupSelector", cubesGroup));
DataView<CubesMetricMeasurement> cubesMeasurements = new DataView<CubesMetricMeasurement>(
"cubesMeasurements", new CubesProvider(adapterId), itemsPerPage) {
private static final long serialVersionUID = 7687248000895943825L;
@Override
protected void populateItem(final Item<CubesMetricMeasurement> item) {
final CubesMetricMeasurement cubesMetricMeasurement = item.getModelObject();
item.add(new Check<>("cubesCheck", item.getModel(), cubesGroup));
item.add(linkCubesQuery(cubesMetricMeasurement));
item.add(new Label("value", new PropertyModel<String>(
cubesMetricMeasurement, "value")));
item.add(new Label("jsonContent", new PropertyModel<String>(
cubesMetricMeasurement, "jsonContent")));
item.add(new Label("timeStamp", new PropertyModel<Date>(
cubesMetricMeasurement, "timeStamp")));
// add button to show AddEditPage
item.add(new BookmarkablePageLink<CubeAnalysisDataManagementEditPage>(
"edit", CubeAnalysisDataManagementEditPage.class,
forTableEntity(cubesMetricMeasurement,parameters)));
}
};
cubesContainer.add(cubesMeasurements);
// add links for table pagination
cubesContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorHead", cubesMeasurements));
cubesContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorFoot", cubesMeasurements));
// add button to delete selected items
cubesContainer
.add(deleteSelectedButton = newDeleteSelectedButton(cubesGroup));
// add confirmation modal for deleting items
add(deleteConfirmationModal = newDeleteConfirmationModal());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:68,代码来源:CubeAnalysisDataManagementPage.java
示例16: StaticAnalysisDataManagementPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
/**
* Constructor building the page
*
* @param parameters
*/
public StaticAnalysisDataManagementPage(final PageParameters parameters) {
super(parameters);
Long adapterId = parameters.get("id").toLongObject();
final Form<SonarMetricMeasurement> deleteForm = new Form<>("deleteForm");
add(deleteForm);
// add checkgroup for selecting multiple products
deleteForm.add(sonarGroup = newSonarCheckGroup());
// add the container holding list of existing products
sonarGroup.add(sonarContainer.setOutputMarkupId(true));
sonarContainer.add(new CheckGroupSelector(
"sonarGroupSelector", sonarGroup));
DataView<SonarMetricMeasurement> sonarMeasurements = new DataView<SonarMetricMeasurement>(
"sonarMeasurements", new SonarProvider(adapterId), itemsPerPage) {
private static final long serialVersionUID = -392205969465703229L;
@Override
protected void populateItem(final Item<SonarMetricMeasurement> item) {
final SonarMetricMeasurement sonarMetricMeasurement = item.getModelObject();
item.add(new Check<>("sonarCheck", item
.getModel(), sonarGroup));
item.add(new Label("name", new PropertyModel<String>(
sonarMetricMeasurement, "name")));
item.add(new Label("key", new PropertyModel<String>(
sonarMetricMeasurement, "sonarKey")));
item.add(new Label("metric", new PropertyModel<String>(
sonarMetricMeasurement, "sonarMetric")));
item.add(new Label("value", new PropertyModel<String>(
sonarMetricMeasurement, "value")));
item.add(new Label("timeStamp", new PropertyModel<Date>(
sonarMetricMeasurement, "timeStamp")));
// add button to show AddEditPage
item.add(new BookmarkablePageLink<StaticAnalysisDataManagementEditPage>(
"edit", StaticAnalysisDataManagementEditPage.class,
forTableEntity(sonarMetricMeasurement,parameters)));
}
};
sonarContainer.add(sonarMeasurements);
// add links for table pagination
sonarContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorHead", sonarMeasurements));
sonarContainer.add(new BootstrapAjaxPagingNavigator(
"navigatorFoot", sonarMeasurements));
// add button to delete selected items
sonarContainer
.add(deleteSelectedButton = newDeleteSelectedButton(sonarGroup));
// add confirmation modal for deleting products
add(deleteConfirmationModal = newDeleteConfirmationModal());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:73,代码来源:StaticAnalysisDataManagementPage.java
示例17: PlatformSettingsPage
import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator; //导入依赖的package包/类
public PlatformSettingsPage(PageParameters pageParameters) {
super(pageParameters);
final Form<PlatformSettings> form = new Form<>("form");
add(form);
// add checkgroup for selecting multiple project-settings
form.add(settingsGroup = newAdapterSettingsCheckGroup());
container = new WebMarkupContainer("container", new Model<PlatformSettings>());
// add the container holding list of existing products
settingsGroup.add(container.setOutputMarkupId(true));
container.add(new CheckGroupSelector("adapterGroupSelector", settingsGroup));
DataView<PlatformSettings> settingsView = new DataView<PlatformSettings>("adapters",
new ProjectSettingsProvider(), itemsPerPage) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(final Item<PlatformSettings> item) {
final PlatformSettings proposedProjectSetting = item.getModelObject();
item.add(new Check<>("adapterCheck", item.getModel(), settingsGroup));
item.add(new Label("settingKey", new PropertyModel<String>(proposedProjectSetting, "settingKey")));
item.add(new Label("settingValue", new PropertyModel<String>(proposedProjectSetting, "settingValue")));
// add button to show AddEditPage
item.add(new BookmarkablePageLink<PlatformSettingsAddEditPage>("edit", PlatformSettingsAddEditPage.class,
forSetting(proposedProjectSetting)));
}
};
// add list of adapters to container
container.add(settingsView);
// add button to new adapter settings
container.add(new BookmarkablePageLink<PlatformSettingsAddEditPage>("addAdapterLink", PlatformSettingsAddEditPage.class));
// add links for table pagination
container.add(new BootstrapAjaxPagingNavigator("navigatorHead", settingsView));
container.add(new BootstrapAjaxPagingNavigator("navigatorFoot", settingsView));
// add button to delete selected adapters
container.add(deleteSelectedButton = newDeleteSelectedButton(settingsGroup));
// add confirmation modal for deleting settings
add(deleteConfirmationModal = newDeleteConfirmationModal());
form1 = new Form<Void>("form1") {
@Override
protected void onSubmit() {
settingsService.create(new PlatformSettings(settings.getSettingKey(), settings.getSettingValue()));
keyField.setModelObject(null);
valueField.setModelObject(null);
}
};
keyField = new TextField<>("keyField", new PropertyModel<String>(settings, "settingKey"));
keyField.setRequired(true);
form1.add(keyField);
valueField = new TextField<>("valueField", new PropertyModel<String>(settings, "settingValue"));
valueField.setRequired(true);
form1.add(valueField);
add(form);
add(form1);
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:76,代码来源:PlatformSettingsPage.java
注:本文中的de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论