@Component public final class PoliticianRoleGhantPageModContentFactoryImpl extends AbstractPageModContentFactoryImpl
Modifier and Type | Field and Description |
---|---|
static String |
NAME
The Constant NAME.
|
CURRENT_PAGE_VISIT_HISTORY, GENERAL_PAGE_MODE_PAGE_VISIT
Constructor and Description |
---|
PoliticianRoleGhantPageModContentFactoryImpl()
Instantiates a new politician role ghant page mod content factory impl.
|
Modifier and Type | Method and Description |
---|---|
protected String |
convertToYearsString(long totalDays)
Convert to years string.
|
com.vaadin.ui.Layout |
createContent(String parameters,
com.vaadin.ui.MenuBar menuBar,
com.vaadin.ui.Panel panel)
Creates a new PageModeContent object.
|
protected PoliticianMenuItemFactory |
getPoliticianMenuItemFactory()
Gets the politician ranking menu item factory.
|
boolean |
matches(String page,
String parameters)
Matches.
|
protected void |
pageCompleted(String parameters,
com.vaadin.ui.Component panel,
String pageId,
com.hack23.cia.model.internal.application.data.politician.impl.ViewRiksdagenPolitician viewRiksdagenPolitician)
Page completed.
|
createPageVisitHistory, createPanelContent, getApplicationManager, getFormFactory, getGridFactory, getMenuItemFactory, getPageActionEventHelper, getPageId, getPageLinkFactory, getPageNr
public static final String NAME
public PoliticianRoleGhantPageModContentFactoryImpl()
public boolean matches(String page, String parameters)
PageModeContentFactory
page
- the pageparameters
- the parameters@Secured(value={"ROLE_ANONYMOUS","ROLE_USER","ROLE_ADMIN"}) public com.vaadin.ui.Layout createContent(String parameters, com.vaadin.ui.MenuBar menuBar, com.vaadin.ui.Panel panel)
PageModeContentFactory
parameters
- the parametersmenuBar
- the menu barpanel
- the panelprotected final String convertToYearsString(long totalDays)
totalDays
- the total daysprotected final void pageCompleted(String parameters, com.vaadin.ui.Component panel, String pageId, com.hack23.cia.model.internal.application.data.politician.impl.ViewRiksdagenPolitician viewRiksdagenPolitician)
parameters
- the parameterspanel
- the panelpageId
- the page idviewRiksdagenPolitician
- the view riksdagen politicianprotected final PoliticianMenuItemFactory getPoliticianMenuItemFactory()
Copyright © 2008–2017 www.hack23.com. All rights reserved.