public interface Page
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.List<PageEntry<?>> entries)
Adds a list of entries
|
void |
add(PageEntry<?> pageEntry)
Adds a single page entry
|
void |
add(Section section)
Adds a whole section to the page
|
Config |
getConfig()
The config should be passed to this class
|
java.util.List<PageEntry> |
getEntries() |
ViewTemplate<?> |
getTemplateForViewType(int viewType)
Gets the view-template for the
ViewTemplate.getViewType() . |
java.lang.String |
getTitle()
A title for a page can be set.
|
void |
logPage()
Logs the whole page data
|
void |
refreshData()
Calls
PageEntry.refresh() on every entry. |
void |
removeEntries()
Clears all the entries
|
java.lang.String getTitle()
java.util.List<PageEntry> getEntries()
ViewTemplate<?> getTemplateForViewType(int viewType)
ViewTemplate.getViewType()
. Information
is gathered from the entries list.viewType
- see ViewTemplate.getViewType()
void add(PageEntry<?> pageEntry)
pageEntry
- might be null, in which case it won't be addedvoid add(java.util.List<PageEntry<?>> entries)
entries
- might be null, in which case it won't be addedvoid add(Section section)
section
- void refreshData()
PageEntry.refresh()
on every entry.void logPage()
void removeEntries()
Config getConfig()