Bremersee Page Builder

Page builder project

License

License

GroupId

GroupId

org.bremersee
ArtifactId

ArtifactId

bremersee-pagebuilder
Last Version

Last Version

1.2.3
Release Date

Release Date

Type

Type

jar
Description

Description

Bremersee Page Builder
Page builder project
Project URL

Project URL

http://bremersee.github.io/pagebuilder/
Project Organization

Project Organization

bremersee.org
Source Code Management

Source Code Management

https://github.com/bremersee/pagebuilder

Download bremersee-pagebuilder

How to add to project

<!-- https://jarcasting.com/artifacts/org.bremersee/bremersee-pagebuilder/ -->
<dependency>
    <groupId>org.bremersee</groupId>
    <artifactId>bremersee-pagebuilder</artifactId>
    <version>1.2.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.bremersee/bremersee-pagebuilder/
implementation 'org.bremersee:bremersee-pagebuilder:1.2.3'
// https://jarcasting.com/artifacts/org.bremersee/bremersee-pagebuilder/
implementation ("org.bremersee:bremersee-pagebuilder:1.2.3")
'org.bremersee:bremersee-pagebuilder:jar:1.2.3'
<dependency org="org.bremersee" name="bremersee-pagebuilder" rev="1.2.3">
  <artifact name="bremersee-pagebuilder" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.bremersee', module='bremersee-pagebuilder', version='1.2.3')
)
libraryDependencies += "org.bremersee" % "bremersee-pagebuilder" % "1.2.3"
[org.bremersee/bremersee-pagebuilder "1.2.3"]

Dependencies

compile (6)

Group / Artifact Type Version
org.bremersee : bremersee-comparator jar 1.2.2
org.bremersee : bremersee-utils jar 1.0.5
org.apache.commons : commons-lang3 jar 3.4
com.fasterxml.jackson.core : jackson-annotations jar 2.8.3
com.fasterxml.jackson.core : jackson-databind jar 2.8.3
io.swagger : swagger-annotations jar 1.5.9

provided (1)

Group / Artifact Type Version
org.springframework.data : spring-data-commons jar 1.12.3.RELEASE

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Bremersee PageBuilder

This project contains classes for building a page.

A page is a sublist of a list of elements. It can be obtained with a page request:

List<Object> allElements = new ArrayList<>();
// add elements

PageRequestDto pageRequest = new PageRequestDto();
pageRequest.setPageNumber(2);
pageRequest.setPageSize(25);
pageRequest.setComparatorItem(new ComparatorItem("name", true));

PageBuilder pageBuilder = new PageBuilderImpl();

Page<Object> page = pageBuilder.buildFilteredPage(allElements, pageRequest, null);

To display the page with a pagination you can create a PageControlDto:

Page<Object> page = pageBuilder.buildFilteredPage(allElements, pageRequest, null);

PageControlDto pageControl = PageControlFactory.newInstance()
        .newPageControl(page, "mypage.html", Locale.GERMANY);

The generated maven site is committed to the gh-pages branch and visible here.

Release 1.2.3

Release 1.2.3 is build with Java 7.

It is available at Maven Central:

<dependency>
    <groupId>org.bremersee</groupId>
    <artifactId>bremersee-pagebuilder</artifactId>
    <version>1.2.3</version>
</dependency>

Bremersee PageBuilder Example

This project contains a small Spring Boot Application that demonstrates the usage of the page builder library.

It's not available at Maven Central. You may check it out and run the application with

$ cd pagebuilder/bremersee-pagebuilder-example
$ mvn spring-boot:run

or

$ cd pagebuilder/bremersee-pagebuilder-example
$ mvn clean package
$ java -jar target/bremersee-pagebuilder-example-1.2.3.jar

After the application is started you can open http://localhost:8080/restful.html in your favorite browser and have a look at the demonstration.

Versions

Version
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.3