com.vaadin.ui.Panel - java examples

Here are the examples of the java api com.vaadin.ui.Panel taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

155 Examples 7

19 View Complete Implementation : PoliticianPageVisitHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenPolitician viewRiksdagenPolitician = gereplacedem(parameters);
    getPoliticianMenuItemFactory().createPoliticianMenuBar(menuBar, pageId);
    createPageVisitHistory(NAME, pageId, panelContent);
    pageCompleted(parameters, panel, pageId, viewRiksdagenPolitician);
    return panelContent;
}

19 View Complete Implementation : MinistryMemberHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenMinistry viewRiksdagenMinistry = gereplacedem(parameters);
    getMinistryMenuItemFactory().createMinistryMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, MEMBER_HISTORY);
    final DataContainer<ViewRiksdagenGovermentRoleMember, String> govermentRoleMemberDataContainer = getApplicationManager().getDataContainer(ViewRiksdagenGovermentRoleMember.clreplaced);
    getGridFactory().createBasicBeanItemGrid(panelContent, ViewRiksdagenGovermentRoleMember.clreplaced, govermentRoleMemberDataContainer.getAllBy(ViewRiksdagenGovermentRoleMember_.detail, viewRiksdagenMinistry.getNameId()), MEMBER_HISTORY, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, null, null);
    panel.setCaption(NAME + "::" + MINISTRY + viewRiksdagenMinistry.getNameId());
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : UserHomeSecuritySettingsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
/**
 * Creates the enable google auth button.
 *
 * @return the vertical layout
 */
private VerticalLayout createEnableGoogleAuthButton() {
    final VerticalLayout formLayout = new VerticalLayout();
    formLayout.setSizeFull();
    final Panel formPanel = new Panel();
    formPanel.setSizeFull();
    formLayout.addComponent(formPanel);
    final FormLayout formContent = new FormLayout();
    formPanel.setContent(formContent);
    final SetGoogleAuthenticatorCredentialRequest request = new SetGoogleAuthenticatorCredentialRequest();
    request.setSessionId(RequestContextHolder.currentRequestAttributes().getSessionId());
    request.setUserpreplacedword("");
    final ClickListener listener = new SetGoogleAuthenticatorCredentialClickListener(request);
    getFormFactory().addRequestInputFormFields(formContent, request, SetGoogleAuthenticatorCredentialRequest.clreplaced, AS_LIST, ENABLE_GOOGLE_AUTHENTICATOR, listener);
    return formLayout;
}

19 View Complete Implementation : PartyOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenParty viewRiksdagenParty = gereplacedem(parameters);
    getPartyMenuItemFactory().createPartyMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, OVERVIEW);
    final Link addPartyPageLink = getPageLinkFactory().addPartyPageLink(viewRiksdagenParty);
    panelContent.addComponent(addPartyPageLink);
    panelContent.setExpandRatio(addPartyPageLink, ContentRatio.SMALL);
    getFormFactory().addFormPanelTextFields(panelContent, viewRiksdagenParty, ViewRiksdagenParty.clreplaced, AS_LIST);
    final DataContainer<ViewRiksdagenPartySummary, String> partySummarydataContainer = getApplicationManager().getDataContainer(ViewRiksdagenPartySummary.clreplaced);
    final ViewRiksdagenPartySummary viewRiksdagenPartySummary = partySummarydataContainer.load(pageId);
    if (viewRiksdagenPartySummary != null) {
        getFormFactory().addFormPanelTextFields(panelContent, viewRiksdagenPartySummary, ViewRiksdagenPartySummary.clreplaced, AS_LIST2);
    }
    final VerticalLayout overviewLayout = new VerticalLayout();
    overviewLayout.setSizeFull();
    panelContent.addComponent(overviewLayout);
    panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
    getPartyMenuItemFactory().createOverviewPage(overviewLayout, pageId);
    pageCompleted(parameters, panel, pageId, viewRiksdagenParty);
    return panelContent;
}

19 View Complete Implementation : CountryRankingOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getCountryMenuItemFactory().createCountryTopicMenu(menuBar);
    final String pageId = getPageId(parameters);
    panelContent.addComponent(new Label(OVERVIEW));
    getCountryMenuItemFactory().createOverviewPage(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COUNTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    panel.setCaption(NAME + "::" + OVERVIEW);
    return panelContent;
}

19 View Complete Implementation : AdminAgencyPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout content = createPanelContent();
    final String pageId = getPageId(parameters);
    final int pageNr = getPageNr(parameters);
    getMenuItemFactory().createMainPageMenuBar(menuBar);
    LabelFactory.createHeader2Label(content, ADMIN_AGENCY);
    final DataContainer<Agency, Long> dataContainer = getApplicationManager().getDataContainer(Agency.clreplaced);
    final List<Agency> pageOrderBy = dataContainer.getPageOrderBy(pageNr, DEFAULT_RESULTS_PER_PAGE, Agency_.agencyName);
    getPagingUtil().createPagingControls(content, NAME, pageId, dataContainer.getSize(), pageNr, DEFAULT_RESULTS_PER_PAGE);
    getGridFactory().createBasicBeanItemGrid(content, Agency.clreplaced, pageOrderBy, AGENCY, AGENCY_GRID_COLUMN_ORDER, AGENCY_GRID_HIDE_COLUMNS, AGENCY_GRID_LISTENER, null, AGENCY_GRID_COLLECTION_PROPERTY_CONVERTERS);
    if (pageId != null && !pageId.isEmpty()) {
        final VerticalLayout leftLayout = new VerticalLayout();
        leftLayout.setSizeFull();
        final VerticalLayout rightLayout = new VerticalLayout();
        rightLayout.setSizeFull();
        final HorizontalLayout horizontalLayout = new HorizontalLayout();
        horizontalLayout.setWidth(ContentSize.FULL_SIZE);
        content.addComponent(horizontalLayout);
        content.setExpandRatio(horizontalLayout, ContentRatio.LARGE_FORM);
        horizontalLayout.addComponent(leftLayout);
        horizontalLayout.addComponent(rightLayout);
        final Agency agency = dataContainer.load(Long.valueOf(pageId));
        if (agency != null) {
            getFormFactory().addFormPanelTextFields(leftLayout, agency, Agency.clreplaced, AGENCY_FORM_FIELDS);
            getGridFactory().createBasicBeanItemGrid(rightLayout, Portal.clreplaced, agency.getPortals(), PORTAL, PORTAL_GRID_COLUMN_ORDER, PORTAL_GRID_HIDE_COLUMNS, PORTAL_GRID_LISTENER, null, null);
        }
    }
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_ADMIN_AGENCY_VIEW, ApplicationEventGroup.ADMIN, NAME, null, pageId);
    return content;
}

19 View Complete Implementation : PartyRankingPageVisitHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getPartyRankingMenuItemFactory().createPartyRankingMenuBar(menuBar);
    final String pageId = getPageId(parameters);
    getAdminChartDataManager().createApplicationActionEventPageModeDailySummaryChart(panelContent, NAME);
    panel.setCaption(NAME + "::" + PAGE_VISIT_HISTORY);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_PARTY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : PoliticianRoleGhantPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenPolitician viewRiksdagenPolitician = gereplacedem(parameters);
    getPoliticianMenuItemFactory().createPoliticianMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, PoliticianPageMode.ROLEGHANT.toString());
    final PersonData personData = getApplicationManager().getDataContainer(PersonData.clreplaced).load(viewRiksdagenPolitician.getPersonId());
    final List<replacedignmentData> replacedignmentList = personData.getPersonreplacedignmentData().getreplacedignmentList();
    politicianGhantChartManager.createRoleGhant(panelContent, replacedignmentList);
    pageCompleted(parameters, panel, pageId, viewRiksdagenPolitician);
    return panelContent;
}

19 View Complete Implementation : PoliticianBallotDecisionSummaryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenPolitician viewRiksdagenPolitician = gereplacedem(parameters);
    getPoliticianMenuItemFactory().createPoliticianMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, PoliticianPageMode.BALLOTDECISIONSUMMARY.toString());
    final DataContainer<ViewRiksdagenCommitteeBallotDecisionPoliticianSummary, ViewRiksdagenCommitteeBallotDecisionPoliticianEmbeddedId> committeeBallotDecisionPartyDataContainer = getApplicationManager().getDataContainer(ViewRiksdagenCommitteeBallotDecisionPoliticianSummary.clreplaced);
    final List<ViewRiksdagenCommitteeBallotDecisionPoliticianSummary> decisionPartySummaryList = committeeBallotDecisionPartyDataContainer.findOrderedByPropertyListByEmbeddedProperty(ViewRiksdagenCommitteeBallotDecisionPoliticianSummary.clreplaced, ViewRiksdagenCommitteeBallotDecisionPoliticianSummary_.embeddedId, ViewRiksdagenCommitteeBallotDecisionPoliticianEmbeddedId.clreplaced, ViewRiksdagenCommitteeBallotDecisionPoliticianEmbeddedId_.intressentId, pageId, ViewRiksdagenCommitteeBallotDecisionPoliticianSummary_.voteDate);
    getGridFactory().createBasicBeanItemNestedPropertiesGrid(panelContent, ViewRiksdagenCommitteeBallotDecisionPoliticianSummary.clreplaced, decisionPartySummaryList, COMMITTEE_BALLOT_DECISION_POLITICIAN_SUMMARY, NESTED_PROPERTIES, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, BALLOT_ID, null);
    pageCompleted(parameters, panel, pageId, viewRiksdagenPolitician);
    return panelContent;
}

19 View Complete Implementation : DocumentPageVisitHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    getDoreplacedentMenuItemFactory().createDoreplacedentMenuBar(menuBar, pageId);
    createPageVisitHistory(NAME, pageId, panelContent);
    panel.setContent(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_DOreplacedENT_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : PartyVoteHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenParty viewRiksdagenParty = gereplacedem(parameters);
    getPartyMenuItemFactory().createPartyMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, VOTE_HISTORY);
    getGridFactory().createBasicBeanItemNestedPropertiesGrid(panelContent, ViewRiksdagenVoteDataBallotPartySummary.clreplaced, viewRiksdagenVoteDataBallotPartySummaryChartDataManager.findByValue(pageId), BALLOTS, NESTED_PROPERTIES, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, EMBEDDED_ID_BALLOT_ID, null);
    pageCompleted(parameters, panel, pageId, viewRiksdagenParty);
    return panelContent;
}

19 View Complete Implementation : CommitteeRankingDataGridPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getCommitteeRankingMenuItemFactory().createCommitteeeRankingMenuBar(menuBar);
    final String pageId = getPageId(parameters);
    final DataContainer<ViewRiksdagenCommittee, String> dataContainer = getApplicationManager().getDataContainer(ViewRiksdagenCommittee.clreplaced);
    getGridFactory().createBasicBeanItemNestedPropertiesGrid(panelContent, ViewRiksdagenCommittee.clreplaced, dataContainer.getAllOrderBy(ViewRiksdagenCommittee_.currentMemberSize), COMMITTEES, NESTED_PROPERTIES, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, null, null);
    panel.setCaption(NAME + "::" + DATAGRID);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : MinistryRankingAllRolesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getMinistryRankingMenuItemFactory().createMinistryRankingMenuBar(menuBar);
    final String pageId = getPageId(parameters);
    final HorizontalLayout chartLayout = new HorizontalLayout();
    chartLayout.setSizeFull();
    final DataContainer<ViewRiksdagenGovermentRoleMember, String> govermentRoleMemberDataContainer = getApplicationManager().getDataContainer(ViewRiksdagenGovermentRoleMember.clreplaced);
    final List<ViewRiksdagenGovermentRoleMember> allMembers = govermentRoleMemberDataContainer.getAll();
    ministryGhantChartManager.createRoleGhant(panelContent, allMembers);
    panel.setCaption(NAME + "::" + CHARTS + parameters);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : PoliticianVotesHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenPolitician viewRiksdagenPolitician = gereplacedem(parameters);
    getPoliticianMenuItemFactory().createPoliticianMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, PoliticianPageMode.VOTEHISTORY.toString());
    getGridFactory().createBasicBeanItemNestedPropertiesGrid(panelContent, ViewRiksdagenVoteDataBallotPoliticianSummary.clreplaced, viewRiksdagenVoteDataBallotPoliticianSummaryChartDataManager.findByValue(viewRiksdagenPolitician.getPersonId()), BALLOTS, NESTED_PROPERTIES, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, EMBEDDED_ID_BALLOT_ID, null);
    pageCompleted(parameters, panel, pageId, viewRiksdagenPolitician);
    return panelContent;
}

19 View Complete Implementation : MinistryOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenMinistry viewRiksdagenMinistry = gereplacedem(parameters);
    getMinistryMenuItemFactory().createMinistryMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, OVERVIEW);
    final Link addMinistryPageLink = getPageLinkFactory().addMinistryPageLink(viewRiksdagenMinistry);
    panelContent.addComponent(addMinistryPageLink);
    getFormFactory().addFormPanelTextFields(panelContent, viewRiksdagenMinistry, ViewRiksdagenMinistry.clreplaced, AS_LIST);
    panelContent.setExpandRatio(addMinistryPageLink, ContentRatio.SMALL);
    panel.setCaption(NAME + "::" + MINISTRY + viewRiksdagenMinistry.getNameId());
    final VerticalLayout overviewLayout = new VerticalLayout();
    overviewLayout.setSizeFull();
    panelContent.addComponent(overviewLayout);
    panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
    getMinistryMenuItemFactory().createOverviewPage(overviewLayout, pageId);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : MinistryPageVisitHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenMinistry viewRiksdagenMinistry = gereplacedem(parameters);
    getMinistryMenuItemFactory().createMinistryMenuBar(menuBar, pageId);
    createPageVisitHistory(NAME, pageId, panelContent);
    panel.setCaption(NAME + "::" + MINISTRY + viewRiksdagenMinistry.getNameId());
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : CommitteeRankingAllCommitteesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getCommitteeRankingMenuItemFactory().createCommitteeeRankingMenuBar(menuBar);
    final String pageId = getPageId(parameters);
    final HorizontalLayout chartLayout = new HorizontalLayout();
    chartLayout.setSizeFull();
    chartDataManager.createChartPanel(chartLayout, dataSeriesFactory.createCommitteeChartTimeSeriesAll(), "All");
    panelContent.addComponent(chartLayout);
    panel.setCaption(NAME + "::" + CHARTS + parameters);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : DocumentPersonReferencesPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    getDoreplacedentMenuItemFactory().createDoreplacedentMenuBar(menuBar, pageId);
    final DataContainer<DoreplacedentStatusContainer, String> doreplacedentStatusContainerDataContainer = getApplicationManager().getDataContainer(DoreplacedentStatusContainer.clreplaced);
    final DoreplacedentStatusContainer doreplacedentStatusContainer = doreplacedentStatusContainerDataContainer.findByQueryProperty(DoreplacedentStatusContainer.clreplaced, DoreplacedentStatusContainer_.doreplacedent, DoreplacedentData.clreplaced, DoreplacedentData_.id, pageId);
    LabelFactory.createHeader2Label(panelContent, PERSON_REFERENCES);
    if (doreplacedentStatusContainer != null && doreplacedentStatusContainer.getDoreplacedentPersonReferenceContainer() != null && doreplacedentStatusContainer.getDoreplacedentPersonReferenceContainer().getDoreplacedentPersonReferenceList() != null) {
        getGridFactory().createBasicBeanItemGrid(panelContent, DoreplacedentPersonReferenceData.clreplaced, doreplacedentStatusContainer.getDoreplacedentPersonReferenceContainer().getDoreplacedentPersonReferenceList(), DOreplacedENT_PERSON_REFERENCES, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, null, null);
    }
    panel.setContent(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_DOreplacedENT_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : PartyWonDailySummaryChartPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenParty viewRiksdagenParty = gereplacedem(parameters);
    getPartyMenuItemFactory().createPartyMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, PARTY_WON_DAILY_SUMMARY_CHART);
    chartDataManager.createPartyLineChart(panelContent, pageId);
    pageCompleted(parameters, panel, pageId, viewRiksdagenParty);
    return panelContent;
}

19 View Complete Implementation : BallotOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final List<ViewRiksdagenVoteDataBallotSummary> ballots = gereplacedem(parameters);
    if (!ballots.isEmpty()) {
        getBallotMenuItemFactory().createBallotMenuBar(menuBar, pageId);
        LabelFactory.createHeader2Label(panelContent, OVERVIEW);
        final DataContainer<ViewRiksdagenVoteDataBallotPartySummary, RiksdagenVoteDataBallotPartyEmbeddedId> dataPartyContainer = getApplicationManager().getDataContainer(ViewRiksdagenVoteDataBallotPartySummary.clreplaced);
        final DataContainer<ViewRiksdagenCommitteeBallotDecisionSummary, ViewRiksdagenCommitteeBallotDecisionEmbeddedId> dataDecisionContainer = getApplicationManager().getDataContainer(ViewRiksdagenCommitteeBallotDecisionSummary.clreplaced);
        final List<ViewRiksdagenVoteDataBallotPartySummary> partyBallotList = dataPartyContainer.findListByEmbeddedProperty(ViewRiksdagenVoteDataBallotPartySummary.clreplaced, ViewRiksdagenVoteDataBallotPartySummary_.embeddedId, RiksdagenVoteDataBallotPartyEmbeddedId.clreplaced, RiksdagenVoteDataBallotPartyEmbeddedId_.ballotId, pageId);
        final List<ViewRiksdagenCommitteeBallotDecisionSummary> decisionSummaries = dataDecisionContainer.getAllBy(ViewRiksdagenCommitteeBallotDecisionSummary_.ballotId, pageId);
        for (final ViewRiksdagenVoteDataBallotSummary viewRiksdagenVoteDataBallotSummary : ballots) {
            if (!decisionSummaries.isEmpty()) {
                getFormFactory().addFormPanelTextFields(panelContent, decisionSummaries.get(FIRST_OBJECT), ViewRiksdagenCommitteeBallotDecisionSummary.clreplaced, AS_LIST);
            } else {
                getFormFactory().addFormPanelTextFields(panelContent, viewRiksdagenVoteDataBallotSummary, ViewRiksdagenVoteDataBallotSummary.clreplaced, AS_LIST2);
            }
        }
        getGridFactory().createBasicBeanItemNestedPropertiesGrid(panelContent, ViewRiksdagenVoteDataBallotPartySummary.clreplaced, partyBallotList, PARTY_BALLOT_SUMMARY, NESTED_PROPERTIES, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, EMBEDDED_ID_PARTY, null);
        final VerticalLayout overviewLayout = new VerticalLayout();
        overviewLayout.setSizeFull();
        panelContent.addComponent(overviewLayout);
        panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
        getBallotMenuItemFactory().createOverviewPage(overviewLayout, pageId);
        panel.setCaption(NAME + "::" + BALLOT + pageId);
        getPageActionEventHelper().createPageEvent(ViewAction.VISIT_BALLOT_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    }
    return panelContent;
}

19 View Complete Implementation : PoliticianIndicatorsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenPolitician viewRiksdagenPolitician = gereplacedem(parameters);
    getPoliticianMenuItemFactory().createPoliticianMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, INDICATORS);
    politicianChartDataManager.createPersonLineChart(panelContent, viewRiksdagenPolitician.getPersonId());
    pageCompleted(parameters, panel, pageId, viewRiksdagenPolitician);
    return panelContent;
}

19 View Complete Implementation : DocumentsOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final int pageNr = getPageNr(parameters);
    getDoreplacedentMenuItemFactory().createDoreplacedentsMenuBar(menuBar);
    LabelFactory.createHeader2Label(panelContent, OVERVIEW);
    final DataContainer<DoreplacedentElement, String> doreplacedentElementDataContainer = getApplicationManager().getDataContainer(DoreplacedentElement.clreplaced);
    final List<DoreplacedentElement> pageOrderBy = doreplacedentElementDataContainer.getPageOrderBy(pageNr, DEFAULT_RESULTS_PER_PAGE, DoreplacedentElement_.createdDate);
    pagingUtil.createPagingControls(panelContent, NAME, pageId, doreplacedentElementDataContainer.getSize(), pageNr, DEFAULT_RESULTS_PER_PAGE);
    getGridFactory().createBasicBeanItemGrid(panelContent, DoreplacedentElement.clreplaced, pageOrderBy, DOreplacedENT, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, null, null);
    panel.setContent(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_DOreplacedENTS_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : DocumentDetailsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    getDoreplacedentMenuItemFactory().createDoreplacedentMenuBar(menuBar, pageId);
    final DataContainer<DoreplacedentStatusContainer, String> doreplacedentStatusContainerDataContainer = getApplicationManager().getDataContainer(DoreplacedentStatusContainer.clreplaced);
    final DoreplacedentStatusContainer doreplacedentStatusContainer = doreplacedentStatusContainerDataContainer.findByQueryProperty(DoreplacedentStatusContainer.clreplaced, DoreplacedentStatusContainer_.doreplacedent, DoreplacedentData.clreplaced, DoreplacedentData_.id, pageId);
    LabelFactory.createHeader2Label(panelContent, DOreplacedENT_DETAILS);
    if (doreplacedentStatusContainer != null && doreplacedentStatusContainer.getDoreplacedentDetailContainer() != null && doreplacedentStatusContainer.getDoreplacedentDetailContainer().getDoreplacedentDetailList() != null) {
        getGridFactory().createBasicBeanItemGrid(panelContent, DoreplacedentDetailData.clreplaced, doreplacedentStatusContainer.getDoreplacedentDetailContainer().getDoreplacedentDetailList(), DOreplacedENT_DETAILS2, COLUMN_ORDER, HIDE_COLUMNS, null, null, null);
    }
    panel.setContent(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_DOreplacedENT_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : MinistryGovernmentBodiesExpenditureModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenMinistry viewRiksdagenMinistry = gereplacedem(parameters);
    getMinistryMenuItemFactory().createMinistryMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, GOVERNMENT_BODIES);
    governmentBodyChartDataManager.createMinistryGovernmentBodyExpenditureSummaryChart(panelContent, viewRiksdagenMinistry.getNameId());
    panel.setCaption(NAME + "::" + MINISTRY + viewRiksdagenMinistry.getNameId());
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : UserHomeApplicationEventsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final Optional<UserAccount> userAccount = getActiveUserAccount();
    if (userAccount.isPresent()) {
        userHomeMenuItemFactory.createUserHomeMenuBar(menuBar, pageId);
        LabelFactory.createHeader2Label(panelContent, USER_EVENTS);
        final DataContainer<ApplicationActionEvent, Long> eventDataContainer = getApplicationManager().getDataContainer(ApplicationActionEvent.clreplaced);
        getGridFactory().createBasicBeanItemGrid(panelContent, ApplicationActionEvent.clreplaced, eventDataContainer.findOrderedListByProperty(ApplicationActionEvent_.userId, userAccount.get().getUserId(), ApplicationActionEvent_.createdDate), APPLICATION_ACTION_EVENT, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, null, null);
        panel.setCaption(NAME + "::" + USERHOME + USER_EVENTS);
    }
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_USER_HOME_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : PartyRoleGhantPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenParty viewRiksdagenParty = gereplacedem(parameters);
    getPartyMenuItemFactory().createPartyMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, ROLE_GHANT);
    final DataContainer<ViewRiksdagenPartyRoleMember, String> partyRoleMemberDataContainer = getApplicationManager().getDataContainer(ViewRiksdagenPartyRoleMember.clreplaced);
    final List<ViewRiksdagenPartyRoleMember> allMembers = partyRoleMemberDataContainer.getAllBy(ViewRiksdagenPartyRoleMember_.party, viewRiksdagenParty.getPartyId());
    partyGhantChartManager.createRoleGhant(panelContent, allMembers);
    pageCompleted(parameters, panel, pageId, viewRiksdagenParty);
    return panelContent;
}

19 View Complete Implementation : CommitteeDocumentActivityPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenCommittee viewRiksdagenCommittee = gereplacedem(parameters);
    getCommitteeMenuItemFactory().createCommitteeeMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, DOreplacedENT_ACTIVITY);
    chartDataManager.createDoreplacedentHistoryChartByOrg(panelContent, viewRiksdagenCommittee.getEmbeddedId().getOrgCode());
    panel.setCaption(NAME + "::" + COMMITTEE + viewRiksdagenCommittee.getEmbeddedId().getDetail());
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : PoliticianRankingOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getPoliticianRankingMenuItemFactory().createPoliticianRankingMenuBar(menuBar);
    final String pageId = getPageId(parameters);
    panelContent.addComponent(createDescription());
    getPoliticianRankingMenuItemFactory().createOverviewPage(panelContent);
    panel.setCaption(NAME + "::" + OVERVIEW);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_POLITICIAN_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : CommitteeDecisionTypeDailySummaryPageModContentFactoryImpl2.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenCommittee viewRiksdagenCommittee = gereplacedem(parameters);
    getCommitteeMenuItemFactory().createCommitteeeMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, DECISION_TYPE_DAILY_SUMMARY);
    chartDataManager.createDecisionTypeChart(panelContent, viewRiksdagenCommittee.getEmbeddedId().getOrgCode());
    panel.setCaption(NAME + "::" + COMMITTEE + viewRiksdagenCommittee.getEmbeddedId().getDetail());
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : MainViewOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    panel.setCaption(NAME + "::" + CITIZEN_INTELLIGENCE_AGENCY_MAIN);
    getMenuItemFactory().createMainPageMenuBar(menuBar);
    LabelFactory.createHeader2Label(panelContent, "MainOverview");
    getMenuItemFactory().createOverviewPage(panelContent);
    panel.setCaption(NAME + "::" + CITIZEN_INTELLIGENCE_AGENCY_MAIN);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MAIN_VIEW, ApplicationEventGroup.USER, CommonsViews.MAIN_VIEW_NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : AbstractChartDataManagerImpl.java
Copyright Apache License 2.0
Author : Hack23
/**
 * Adds the chart.
 *
 * @param content
 *            the content
 * @param caption
 *            the caption
 * @param chart
 *            the chart
 * @param fullPage
 *            the full page
 */
protected final void addChart(final AbstractOrderedLayout content, final String caption, final DCharts chart, final boolean fullPage) {
    final HorizontalLayout horizontalLayout = new HorizontalLayout();
    final int browserWindowWidth = getChartWindowWidth();
    final int browserWindowHeight = getChartWindowHeight(fullPage);
    horizontalLayout.setWidth(browserWindowWidth, Unit.PIXELS);
    horizontalLayout.setHeight(browserWindowHeight, Unit.PIXELS);
    horizontalLayout.setMargin(true);
    horizontalLayout.setSpacing(false);
    horizontalLayout.addStyleName("v-layout-content-overview-panel-level1");
    final Panel formPanel = new Panel();
    formPanel.setSizeFull();
    formPanel.setContent(horizontalLayout);
    formPanel.setCaption(caption);
    content.addComponent(formPanel);
    content.setExpandRatio(formPanel, ContentRatio.LARGE);
    chart.setWidth(100, Unit.PERCENTAGE);
    chart.setHeight(100, Unit.PERCENTAGE);
    chart.setMarginRight(CHART_RIGHT_MARGIN);
    chart.setMarginLeft(CHART_LEFT_MARGIN);
    chart.setMarginBottom(CHART_BOTTOM_MARGIN_SIZE);
    chart.setMarginTop(CHART_TOP_MARGIN_SIZE);
    horizontalLayout.addComponent(chart);
    chart.setCaption(caption);
}

19 View Complete Implementation : UserHomeSecuritySettingsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
/**
 * Creates the change preplacedword button.
 *
 * @return the vertical layout
 */
private VerticalLayout createChangePreplacedwordButton() {
    final VerticalLayout formLayout = new VerticalLayout();
    formLayout.setSizeFull();
    final Panel formPanel = new Panel();
    formPanel.setSizeFull();
    formLayout.addComponent(formPanel);
    final FormLayout formContent = new FormLayout();
    formPanel.setContent(formContent);
    final ChangePreplacedwordRequest request = new ChangePreplacedwordRequest();
    request.setSessionId(RequestContextHolder.currentRequestAttributes().getSessionId());
    request.setCurrentPreplacedword("");
    request.setNewPreplacedword("");
    request.setRepeatNewPreplacedword("");
    final ClickListener listener = new ChangePreplacedwordClickListener(request);
    getFormFactory().addRequestInputFormFields(formContent, request, ChangePreplacedwordRequest.clreplaced, Arrays.asList("currentPreplacedword", "newPreplacedword", "repeatNewPreplacedword"), "Change preplacedword", listener);
    return formLayout;
}

19 View Complete Implementation : GovernmentBodyPageVisitHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    getGovernmentBodyMenuItemFactory().createGovernmentBodyMenuBar(menuBar, pageId);
    getAdminChartDataManager().createApplicationActionEventPageModeDailySummaryChart(panelContent, NAME);
    panel.setCaption(NAME + "::" + PAGE_VISIT_HISTORY);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_GOVERNMENT_BODY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : AdminCountryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout content = createPanelContent();
    final String pageId = getPageId(parameters);
    final int pageNr = getPageNr(parameters);
    getMenuItemFactory().createMainPageMenuBar(menuBar);
    LabelFactory.createHeader2Label(content, ADMIN_COUNTRY);
    final DataContainer<CountryElement, Long> dataContainer = getApplicationManager().getDataContainer(CountryElement.clreplaced);
    final List<CountryElement> pageOrderBy = dataContainer.getPageOrderBy(pageNr, DEFAULT_RESULTS_PER_PAGE, CountryElement_.countryName);
    getPagingUtil().createPagingControls(content, NAME, pageId, dataContainer.getSize(), pageNr, DEFAULT_RESULTS_PER_PAGE);
    getGridFactory().createBasicBeanItemNestedPropertiesGrid(content, CountryElement.clreplaced, pageOrderBy, COUNTRY2, null, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, null, null);
    if (pageId != null && !pageId.isEmpty()) {
        final CountryElement country = dataContainer.load(Long.valueOf(pageId));
        if (country != null) {
            getFormFactory().addFormPanelTextFields(content, country, CountryElement.clreplaced, AS_LIST);
        }
    }
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_ADMIN_COUNTRY_VIEW, ApplicationEventGroup.ADMIN, NAME, null, pageId);
    return content;
}

19 View Complete Implementation : DocumentReferencesPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    getDoreplacedentMenuItemFactory().createDoreplacedentMenuBar(menuBar, pageId);
    final DataContainer<DoreplacedentStatusContainer, String> doreplacedentStatusContainerDataContainer = getApplicationManager().getDataContainer(DoreplacedentStatusContainer.clreplaced);
    final DoreplacedentStatusContainer doreplacedentStatusContainer = doreplacedentStatusContainerDataContainer.findByQueryProperty(DoreplacedentStatusContainer.clreplaced, DoreplacedentStatusContainer_.doreplacedent, DoreplacedentData.clreplaced, DoreplacedentData_.id, pageId);
    LabelFactory.createHeader2Label(panelContent, DOreplacedENT_REFERENCES);
    if (doreplacedentStatusContainer != null && doreplacedentStatusContainer.getDoreplacedentReferenceContainer() != null && doreplacedentStatusContainer.getDoreplacedentReferenceContainer().getDoreplacedentReferenceList() != null) {
        getGridFactory().createBasicBeanItemGrid(panelContent, DoreplacedentReferenceData.clreplaced, doreplacedentStatusContainer.getDoreplacedentReferenceContainer().getDoreplacedentReferenceList(), DOreplacedENT_REFERENCES2, COLUMN_ORDER, HIDE_COLUMNS, null, null, null);
    }
    panel.setContent(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_DOreplacedENT_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : GovernmentBodyIncomePageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final List<GovernmentBodyAnnualSummary> list = gereplacedem(parameters);
    if (list != null && !list.isEmpty()) {
        final Optional<GovernmentBodyAnnualSummary> governmentBodyAnnualSummary = list.stream().findFirst();
        if (governmentBodyAnnualSummary.isPresent()) {
            getGovernmentBodyMenuItemFactory().createGovernmentBodyMenuBar(menuBar, pageId);
            LabelFactory.createHeader2Label(panelContent, GOVERNMENT_BODIES);
            governmentBodyChartDataManager.createGovernmentBodyIncomeSummaryChart(panelContent, governmentBodyAnnualSummary.get().getName());
            panel.setCaption(NAME + "::" + GOVERNMENT_BODY + governmentBodyAnnualSummary.get().getName());
        }
        getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    }
    return panelContent;
}

19 View Complete Implementation : ParliamentChartsPartyWinnerPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getParliamentMenuItemFactory().createParliamentTopicMenu(menuBar);
    final String pageId = getPageId(parameters);
    partyChartDataManager.createPartyWinnerChart(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_PARLIAMENT_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    panel.setCaption(NAME + "::" + PARTY_WINNER_DAILY_AVERAGE_FOR_ALL_BALLOTS);
    return panelContent;
}

19 View Complete Implementation : PartyCoalitionsAgainstAnnualSummaryChartPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenParty viewRiksdagenParty = gereplacedem(parameters);
    getPartyMenuItemFactory().createPartyMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, replacedLE);
    chartDataManager.createPartyChart(panelContent, pageId);
    pageCompleted(parameters, panel, pageId, viewRiksdagenParty);
    return panelContent;
}

19 View Complete Implementation : AdminLanguagePageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout content = createPanelContent();
    final String pageId = getPageId(parameters);
    final int pageNr = getPageNr(parameters);
    getMenuItemFactory().createMainPageMenuBar(menuBar);
    LabelFactory.createHeader2Label(content, ADMIN_LANGUAGE);
    final DataContainer<LanguageData, Long> dataContainer = getApplicationManager().getDataContainer(LanguageData.clreplaced);
    final List<LanguageData> pageOrderBy = dataContainer.getPageOrderBy(pageNr, DEFAULT_RESULTS_PER_PAGE, LanguageData_.languageName);
    getPagingUtil().createPagingControls(content, NAME, pageId, dataContainer.getSize(), pageNr, DEFAULT_RESULTS_PER_PAGE);
    getGridFactory().createBasicBeanItemGrid(content, LanguageData.clreplaced, pageOrderBy, LANGUAGE_DATA, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, null, null);
    if (pageId != null && !pageId.isEmpty()) {
        final LanguageData languageData = dataContainer.load(Long.valueOf(pageId));
        if (languageData != null) {
            getFormFactory().addFormPanelTextFields(content, languageData, LanguageData.clreplaced, AS_LIST);
        }
    }
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_ADMIN_LANGUAGE_VIEW, ApplicationEventGroup.ADMIN, NAME, null, pageId);
    return content;
}

19 View Complete Implementation : AdminApplicationEventsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout content = createPanelContent();
    final String pageId = getPageId(parameters);
    final int pageNr = getPageNr(parameters);
    getMenuItemFactory().createMainPageMenuBar(menuBar);
    LabelFactory.createHeader2Label(content, ADMIN_APPLICATION_ACTION_EVENT);
    final DataContainer<ApplicationActionEvent, Long> dataContainer = getApplicationManager().getDataContainer(ApplicationActionEvent.clreplaced);
    final List<ApplicationActionEvent> pageOrderBy = dataContainer.getPageOrderBy(pageNr, DEFAULT_RESULTS_PER_PAGE, ApplicationActionEvent_.createdDate);
    getPagingUtil().createPagingControls(content, NAME, pageId, dataContainer.getSize(), pageNr, DEFAULT_RESULTS_PER_PAGE);
    getGridFactory().createBasicBeanItemGrid(content, ApplicationActionEvent.clreplaced, pageOrderBy, APPLICATION_ACTION_EVENT, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, null, null);
    if (pageId != null && !pageId.isEmpty()) {
        final ApplicationActionEvent applicationActionEvent = dataContainer.load(Long.valueOf(pageId));
        if (applicationActionEvent != null) {
            getFormFactory().addFormPanelTextFields(content, applicationActionEvent, ApplicationActionEvent.clreplaced, AS_LIST);
        }
    }
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_ADMIN_APPLICATION_EVENTS_VIEW, ApplicationEventGroup.ADMIN, NAME, null, pageId);
    return content;
}

19 View Complete Implementation : UserHomeSecuritySettingsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
/**
 * Creates the disable google auth button.
 *
 * @return the vertical layout
 */
private VerticalLayout createDisableGoogleAuthButton() {
    final VerticalLayout formLayout = new VerticalLayout();
    formLayout.setSizeFull();
    final Panel formPanel = new Panel();
    formPanel.setSizeFull();
    formLayout.addComponent(formPanel);
    final FormLayout formContent = new FormLayout();
    formPanel.setContent(formContent);
    final DisableGoogleAuthenticatorCredentialRequest request = new DisableGoogleAuthenticatorCredentialRequest();
    request.setSessionId(RequestContextHolder.currentRequestAttributes().getSessionId());
    request.setUserpreplacedword("");
    final ClickListener listener = new DisableGoogleAuthenticatorCredentialClickListener(request);
    getFormFactory().addRequestInputFormFields(formContent, request, DisableGoogleAuthenticatorCredentialRequest.clreplaced, AS_LIST, DISABLE_GOOGLE_AUTHENTICATOR, listener);
    return formLayout;
}

19 View Complete Implementation : WorldIndicatorsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getCountryMenuItemFactory().createCountryTopicMenu(menuBar);
    final String pageId = getPageId(parameters);
    final String indicator = parameters.substring(PageMode.INDICATORS.toString().length() + "/".length(), parameters.length());
    createDataIndicatorSummaryChartPanel(panelContent, indicator);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COUNTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    panel.setCaption(NAME + "::" + WORLD_INDICATORS);
    return panelContent;
}

19 View Complete Implementation : MinistryRankingDataGridPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getMinistryRankingMenuItemFactory().createMinistryRankingMenuBar(menuBar);
    final String pageId = getPageId(parameters);
    final DataContainer<ViewRiksdagenMinistry, String> dataContainer = getApplicationManager().getDataContainer(ViewRiksdagenMinistry.clreplaced);
    getGridFactory().createBasicBeanItemGrid(panelContent, ViewRiksdagenMinistry.clreplaced, dataContainer.getAllOrderBy(ViewRiksdagenMinistry_.currentMemberSize), MINISTRIES, COLUMN_ORDER, HIDE_COLUMNS, LISTENER, null, null);
    panel.setCaption(NAME + "::" + DATAGRID);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : GovernmentBodyRankingExpenditurePageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getGovernmentBodyRankingMenuItemFactory().createGovernmentBodyRankingMenuBar(menuBar);
    final String pageId = getPageId(parameters);
    panel.setCaption(NAME + "::" + GOVERNMENT_BODIES + parameters);
    governmentBodyChartDataManager.createGovernmentBodyExpenditureSummaryChart(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : PoliticianRankingChartsAllPartiesPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    getPoliticianRankingMenuItemFactory().createPoliticianRankingMenuBar(menuBar);
    chartDataManager.createChartPanel(panelContent, dataSeriesFactory.createPartyChartTimeSeriesAll(), "All");
    panel.setCaption(NAME + "::" + CHARTS);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_POLITICIAN_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : MinistryDocumentActivityPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenMinistry viewRiksdagenMinistry = gereplacedem(parameters);
    getMinistryMenuItemFactory().createMinistryMenuBar(menuBar, pageId);
    LabelFactory.createHeader2Label(panelContent, DOreplacedENT_ACTIVITY);
    chartDataManager.createDoreplacedentHistoryChartByOrg(panelContent, viewRiksdagenMinistry.getNameId());
    panel.setCaption(NAME + "::" + MINISTRY + viewRiksdagenMinistry.getNameId());
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : DocumentOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final DoreplacedentElement doreplacedentElement = gereplacedem(parameters);
    getDoreplacedentMenuItemFactory().createDoreplacedentMenuBar(menuBar, pageId);
    final DataContainer<DoreplacedentStatusContainer, String> doreplacedentStatusContainerDataContainer = getApplicationManager().getDataContainer(DoreplacedentStatusContainer.clreplaced);
    final DoreplacedentStatusContainer doreplacedentStatusContainer = doreplacedentStatusContainerDataContainer.findByQueryProperty(DoreplacedentStatusContainer.clreplaced, DoreplacedentStatusContainer_.doreplacedent, DoreplacedentData.clreplaced, DoreplacedentData_.id, pageId);
    LabelFactory.createHeader2Label(panelContent, OVERVIEW);
    getFormFactory().addFormPanelTextFields(panelContent, doreplacedentElement, DoreplacedentElement.clreplaced, AS_LIST);
    if (doreplacedentStatusContainer != null) {
        getFormFactory().addFormPanelTextFields(panelContent, doreplacedentStatusContainer, DoreplacedentStatusContainer.clreplaced, AS_LIST3);
        getFormFactory().addFormPanelTextFields(panelContent, doreplacedentStatusContainer.getDoreplacedent(), DoreplacedentData.clreplaced, AS_LIST2);
    }
    final VerticalLayout overviewLayout = new VerticalLayout();
    overviewLayout.setSizeFull();
    panelContent.addComponent(overviewLayout);
    panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
    getDoreplacedentMenuItemFactory().createOverviewPage(overviewLayout, pageId);
    panel.setContent(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_DOreplacedENT_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : CommitteePageVisitHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    final String pageId = getPageId(parameters);
    final ViewRiksdagenCommittee viewRiksdagenCommittee = gereplacedem(parameters);
    getCommitteeMenuItemFactory().createCommitteeeMenuBar(menuBar, pageId);
    createPageVisitHistory(NAME, pageId, panelContent);
    panel.setCaption(NAME + "::" + COMMITTEE + viewRiksdagenCommittee.getEmbeddedId().getDetail());
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : CommitteeRankingPageVisitHistoryPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getCommitteeRankingMenuItemFactory().createCommitteeeRankingMenuBar(menuBar);
    final String pageId = getPageId(parameters);
    getAdminChartDataManager().createApplicationActionEventPageModeDailySummaryChart(panelContent, NAME);
    panel.setCaption(NAME + "::" + PAGE_VISIT_HISTORY);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}

19 View Complete Implementation : GovernmentBodyRankingIncomePageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
    final VerticalLayout panelContent = createPanelContent();
    getGovernmentBodyRankingMenuItemFactory().createGovernmentBodyRankingMenuBar(menuBar);
    final String pageId = getPageId(parameters);
    panel.setCaption(NAME + "::" + GOVERNMENT_BODIES + parameters);
    governmentBodyChartDataManager.createGovernmentBodyIncomeSummaryChart(panelContent);
    getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
    return panelContent;
}