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");
}
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.");
}
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.");
}
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);
}
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.");
}
Aggregations