public interface Pages
Modifier and Type | Method and Description |
---|---|
Page |
addNewPage()
Adds a new page to the internal list with default title
|
Page |
addNewPage(java.lang.String title)
Adds a new page to the internal list with given title
|
java.util.List<Page> |
getAll()
Returns the actual reference, not a copy.
|
Config |
getConfig()
The config should be passed to this class
|
Page |
getFirstPage()
Same as
getPage(int) with parameter 0, but throws exception,
ie. making it null safe. |
Page |
getPage(int index)
Retrieves a page for the specific index
|
void |
log(java.lang.String message)
The default implementation of what should happen when a component wants to log something.
|
void |
logPages()
Logs the whole page data
|
void |
refreshData()
Calls
PageEntry.refresh() on every entry. |
int |
size()
The count of contained pages
|
Page addNewPage()
Page addNewPage(java.lang.String title)
title
- of the pagePage getFirstPage()
getPage(int)
with parameter 0, but throws exception,
ie. making it null safe.java.lang.IllegalStateException
- if no page was addedPage getPage(int index)
index
- of the requested page (beginning with 0)java.util.List<Page> getAll()
int size()
void refreshData()
PageEntry.refresh()
on every entry.void log(java.lang.String message)
void logPages()
Config getConfig()