Interface Book.Builder
- All Superinterfaces:
AbstractBuilder<Book>
- Enclosing interface:
Book
A builder for a
Book.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionAdd a page to the book.Set the author.pages(Collection<Component> pages) Add pages to the book.Add pages to the book.Set the title.Methods inherited from interface AbstractBuilder
build
-
Method Details
-
title
Set the title.- Parameters:
title- the title- Returns:
- this
- Since:
- 4.0.0
-
author
Set the author.- Parameters:
author- the author- Returns:
- this
- Since:
- 4.0.0
-
addPage
Add a page to the book.Each page's length will be limited by the size of the client's book viewer. Any text that does not fit will be truncated clientside.
- Parameters:
page- the page- Returns:
- this
- Since:
- 4.0.0
-
pages
Add pages to the book.- Parameters:
pages- pages to add- Returns:
- this
- Since:
- 4.0.0
- See Also:
-
pages
Add pages to the book.- Parameters:
pages- pages to add- Returns:
- this
- Since:
- 4.0.0
- See Also:
-