public abstract class Page extends Object
A page can have a title and a content. Pages are meant to be ContentProvider. Pages are allocated a lot. They should be lightweight! The heavy stuff should be done when calling getContent().
Constructor and Description |
---|
Page() |
Modifier and Type | Method and Description |
---|---|
List<Action> |
getActions() |
abstract Frontend.IContent |
getContent() |
String |
getRoute()
Allows the Frontend to make a bookmark or a link for this Page.
|
String |
getTitle() |
static boolean |
validateRoute(String route)
Route String must obey some rules to be valid:
no '/' at start or end
Only characters or digits or the three characters -_/ are allowed
|
public String getTitle()
public abstract Frontend.IContent getContent()
public List<Action> getActions()
public String getRoute()
If the validateRoute method in this class doesn't accept the returned string the route is ignored by the frontend.
null
if this Page class or object is not routable.Application.createPage(String)
,
validateRoute(String)
public static boolean validateRoute(String route)
route
- String provided by a pageBase64.getUrlEncoder()
Copyright © 2019. All rights reserved.