Search in sources :

Example 6 with ResponsiveRow

use of com.jarektoro.responsivelayout.ResponsiveRow in project cia by Hack23.

the class ApplicationMenuItemFactoryImpl method createOverviewPage.

@Override
public void createOverviewPage(final VerticalLayout panelContent) {
    final ResponsiveRow grid = createGridLayout(panelContent);
    createButtonLink(grid, COUNTRY_RANKING_LINK_TEXT, VaadinIcons.FLAG, COMMAND_COUNTRY_RANKING_OVERVIEW, "Indicators for Sweden overview, find data by topic or source.");
    createButtonLink(grid, PARLIAMENT_RANKING_LINK_TEXT, VaadinIcons.INSTITUTION, COMMAND_PARLIAMENT_RANKING_OVERVIEW, "Charts over parlimentary ballots and document activity");
    createButtonLink(grid, POLITICIAN_RANKING_LINK_TEXT, VaadinIcons.USER, COMMAND_POLITICIAN_RANKING_OVERVIEW, "Politician ranking overiew, contains data and charts.");
    createButtonLink(grid, POLITICIANS_LINK_TEXT, VaadinIcons.USER, COMMAND_POLITICIAN_RANKING_DATAGRID, "All politicans, scoreboard assignments and days served in government, committees, speaker and party positions.");
    createButtonLink(grid, PARTY_RANKING_LINK_TEXT, VaadinIcons.GROUP, COMMAND_PARTY_RANKING_OVERVIEW, "Party ranking overiew, contains data and charts.");
    createButtonLink(grid, PARTIES_LINK_TEXT, VaadinIcons.GROUP, COMMAND_PARTY_RANKING_DATAGRID, "All parties, scoreboard assignments and days served in government, committees, speaker and party positions.");
    createButtonLink(grid, COMMITTEE_RANKING_LINK_TEXT, VaadinIcons.GROUP, COMMAND_COMMITTEE_RANKING_OVERVIEW, "Committee ranking overiew, contains data and charts.");
    createButtonLink(grid, COMMITTEES_LINK_TEXT, VaadinIcons.GROUP, COMMAND_COMMITTEE_RANKING_DATAGRID, "All committees, scoreboard assignments and days served in committees");
    createButtonLink(grid, MINISTRY_RANKING_LINK_TEXT, VaadinIcons.GROUP, COMMAND_MINISTRY_RANKING_OVERVIEW, "Ministry ranking overiew, contains data and charts.");
    createButtonLink(grid, MINISTRIES_LINK_TEXT, VaadinIcons.GROUP, COMMAND_MINISTRY_RANKING_DATAGRID, "All ministries, scoreboard assignments and days served in committees");
    createButtonLink(grid, SEARCH_DOCUMENTS, VaadinIcons.GROUP, COMMAND_SEARCH_DOCUMENT, "Search parliament documents");
    createButtonLink(grid, DOCUMENTS, VaadinIcons.GROUP, COMMAND_DOCUMENTS, "List all parliament documents");
}
Also used : ResponsiveRow(com.jarektoro.responsivelayout.ResponsiveRow)

Example 7 with ResponsiveRow

use of com.jarektoro.responsivelayout.ResponsiveRow in project cia by Hack23.

the class BallotMenuItemFactoryImpl method createOverviewPage.

@Override
public void createOverviewPage(final VerticalLayout panelContent, final String pageId) {
    final ResponsiveRow grid = createGridLayout(panelContent);
    createButtonLink(grid, CHARTS_TEXT, VaadinIcons.PIE_CHART, new PageModeMenuCommand(UserViews.BALLOT_VIEW_NAME, PageMode.CHARTS, pageId), "Breakdown by total votes and by party.");
}
Also used : PageModeMenuCommand(com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand) ResponsiveRow(com.jarektoro.responsivelayout.ResponsiveRow)

Example 8 with ResponsiveRow

use of com.jarektoro.responsivelayout.ResponsiveRow in project cia by Hack23.

the class CommitteeRankingMenuItemFactoryImpl method createOverviewPage.

/**
 * Creates the overview page.
 *
 * @param panelContent
 *            the panel content
 */
@Override
public void createOverviewPage(final VerticalLayout panelContent) {
    final ResponsiveRow grid = createGridLayout(panelContent);
    createButtonLink(grid, POLITICAL_WORK_SUMMARY_TEXT, VaadinIcons.GROUP, COMMAND_DATAGRID, "Scoreboard over current member size, political days served and total assignments");
    createButtonLink(grid, CURRENT_COMMITTEES_CURRENT_MEMBERS_TEXT, VaadinIcons.GROUP, COMMAND_CURRENT_COMMITTEES_BY_HEADCOUNT, "Chart over current committees and member size");
    createButtonLink(grid, CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_CURRENT_ASSIGNMENTS, VaadinIcons.GROUP, COMMAND_COMMITTEES_BY_PARTY, "Chart over current parties active in committees and member size");
    createButtonLink(grid, CURRENT_PARTIES_ACTIVE_IN_COMMITTEES_TOTAL_DAYS_SERVED_IN_COMMITTEES, VaadinIcons.GROUP, COMMAND_CURRENT_COMMITTEES_BY_PARTY_DAYS_SERVED, "Chart over current parties active in committees days served");
    createButtonLink(grid, ALL_COMMITTEES_TOTAL_MEMBERS, VaadinIcons.GROUP, COMMAND_ALL_COMMITTEES_BY_HEADCOUNT, "Chart over all committees and member size");
    createButtonLink(grid, PAGE_VISIT_HISTORY_TEXT, VaadinIcons.GROUP, COMMAND_PAGEVISIT_HISTORY, "View history of page visit for this page.");
}
Also used : ResponsiveRow(com.jarektoro.responsivelayout.ResponsiveRow)

Example 9 with ResponsiveRow

use of com.jarektoro.responsivelayout.ResponsiveRow in project cia by Hack23.

the class DocumentMenuItemFactoryImpl method createOverviewPage.

@Override
public void createOverviewPage(final VerticalLayout panelContent, final String pageId) {
    final ResponsiveRow grid = createGridLayout(panelContent);
    createButtonLink(grid, DOCUMENT_ACTIVITY_TEXT, VaadinIcons.FILE, new PageModeMenuCommand(UserViews.DOCUMENT_VIEW_NAME, DocumentPageMode.DOCUMENTACTIVITY.toString(), pageId), DOCUMENT_ACTIVITIES);
    createButtonLink(grid, PERSON_REFERENCES, VaadinIcons.FILE, new PageModeMenuCommand(UserViews.DOCUMENT_VIEW_NAME, DocumentPageMode.PERSONREFERENCES.toString(), pageId), PERSON_REFERENCES);
    createButtonLink(grid, DOCUMENT_DETAILS, VaadinIcons.FILE, new PageModeMenuCommand(UserViews.DOCUMENT_VIEW_NAME, DocumentPageMode.DOCUMENTDETAILS.toString(), pageId), DOCUMENT_DETAILS);
    createButtonLink(grid, DOCUMENT_DATA, VaadinIcons.FILE, new PageModeMenuCommand(UserViews.DOCUMENT_VIEW_NAME, DocumentPageMode.DOCUMENTDATA.toString(), pageId), COMPLETE_DOCUMENT_AS_TEXT);
    createButtonLink(grid, DOCUMENT_REFERENCES, VaadinIcons.FILE, new PageModeMenuCommand(UserViews.DOCUMENT_VIEW_NAME, DocumentPageMode.DOCUMENTREFERENCES.toString(), pageId), DOCUMENT_REFERENCES);
    createButtonLink(grid, DOCUMENT_DECISION, VaadinIcons.FILE, new PageModeMenuCommand(UserViews.DOCUMENT_VIEW_NAME, DocumentPageMode.DOCUMENTDECISION.toString(), pageId), DOCUMENT_DECISIONS);
    createButtonLink(grid, DOCUMENT_ATTACHEMENTS, VaadinIcons.FILE, new PageModeMenuCommand(UserViews.DOCUMENT_VIEW_NAME, DocumentPageMode.DOCUMENTATTACHMENTS.toString(), pageId), ATTACHEMENTS);
}
Also used : PageModeMenuCommand(com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand) ResponsiveRow(com.jarektoro.responsivelayout.ResponsiveRow)

Example 10 with ResponsiveRow

use of com.jarektoro.responsivelayout.ResponsiveRow in project cia by Hack23.

the class MinistryMenuItemFactoryImpl method createOverviewPage.

@Override
public void createOverviewPage(final VerticalLayout panelContent, final String pageId) {
    final ResponsiveRow grid = createGridLayout(panelContent);
    createButtonLink(grid, CURRENT_MEMBERS_TEXT, VaadinIcons.GROUP, new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.CURRENTMEMBERS.toString(), pageId), "Members currently holding positions");
    createButtonLink(grid, MEMBER_HISTORY_TEXT, VaadinIcons.GROUP, new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.MEMBERHISTORY.toString(), pageId), "Current and past members");
    createButtonLink(grid, ROLE_GHANT_TEXT, VaadinIcons.GROUP, new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.ROLEGHANT.toString(), pageId), "Gantt chart for all the roles");
    createButtonLink(grid, GOVERNMENT_BODIES, VaadinIcons.GROUP, new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.GOVERNMENT_BODIES.toString(), pageId), "All government bodies that are governed by ministry");
    createButtonLink(grid, DOCUMENT_ACTIVITY_TEXT, VaadinIcons.GROUP, new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.DOCUMENTACTIVITY.toString(), pageId), "Chart over document activity");
    createButtonLink(grid, DOCUMENT_HISTORY_TEXT, VaadinIcons.GROUP, new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, MinistryPageMode.DOCUMENTHISTORY.toString(), pageId), "List of all document sorted by most recent");
    createButtonLink(grid, PAGE_VISIT_HISTORY_TEXT, VaadinIcons.GROUP, new PageModeMenuCommand(UserViews.MINISTRY_VIEW_NAME, PageMode.PAGEVISITHISTORY, pageId), "View history of page visit for this page.");
}
Also used : PageModeMenuCommand(com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand) ResponsiveRow(com.jarektoro.responsivelayout.ResponsiveRow)

Aggregations

ResponsiveRow (com.jarektoro.responsivelayout.ResponsiveRow)19 PageModeMenuCommand (com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand)7 VerticalLayout (com.vaadin.ui.VerticalLayout)6 Secured (org.springframework.security.access.annotation.Secured)6 Button (com.vaadin.ui.Button)3 ClickListener (com.vaadin.ui.Button.ClickListener)2 FormLayout (com.vaadin.ui.FormLayout)2 Panel (com.vaadin.ui.Panel)2 DataAgentTarget (com.hack23.cia.model.internal.application.data.impl.DataAgentTarget)1 UserAccount (com.hack23.cia.model.internal.application.user.impl.UserAccount)1 DataSummary (com.hack23.cia.service.api.DataSummary)1 ManageUserAccountRequest (com.hack23.cia.service.api.action.admin.ManageUserAccountRequest)1 AccountOperation (com.hack23.cia.service.api.action.admin.ManageUserAccountRequest.AccountOperation)1 LoginRequest (com.hack23.cia.service.api.action.application.LoginRequest)1 RegisterUserRequest (com.hack23.cia.service.api.action.application.RegisterUserRequest)1 ApplicationLoginListener (com.hack23.cia.web.impl.ui.application.views.pageclicklistener.ApplicationLoginListener)1 ManageUserAccountClickListener (com.hack23.cia.web.impl.ui.application.views.pageclicklistener.ManageUserAccountClickListener)1 RefreshDataViewsClickListener (com.hack23.cia.web.impl.ui.application.views.pageclicklistener.RefreshDataViewsClickListener)1 RegisterUserClickListener (com.hack23.cia.web.impl.ui.application.views.pageclicklistener.RegisterUserClickListener)1 RemoveDataClickListener (com.hack23.cia.web.impl.ui.application.views.pageclicklistener.RemoveDataClickListener)1