Here are the examples of the java api com.vaadin.ui.VerticalLayout.addComponent() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
155 Examples
18
View Complete Implementation : PoliticianOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
Copyright Apache License 2.0
Author : Hack23
/**
* Creates the overview content.
*
* @param panelContent the panel content
* @param personData the person data
* @param viewRiksdagenPolitician the view riksdagen politician
* @param pageId the page id
*/
private void createOverviewContent(final VerticalLayout panelContent, final PersonData personData, final ViewRiksdagenPolitician viewRiksdagenPolitician, final String pageId) {
LabelFactory.createHeader2Label(panelContent, OVERVIEW);
final Link createPoliticianPageLink = getPageLinkFactory().createPoliticianPageLink(personData);
panelContent.addComponent(createPoliticianPageLink);
final Image image = new Image("", new ExternalResource(personData.getImageUrl192().replace("http://", "https://")));
final HorizontalLayout horizontalLayout = new HorizontalLayout();
horizontalLayout.setSizeFull();
panelContent.addComponent(horizontalLayout);
horizontalLayout.addComponent(image);
getFormFactory().addFormPanelTextFields(horizontalLayout, viewRiksdagenPolitician, ViewRiksdagenPolitician.clreplaced, AS_LIST);
final VerticalLayout overviewLayout = new VerticalLayout();
overviewLayout.setSizeFull();
panelContent.addComponent(overviewLayout);
panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
getPoliticianMenuItemFactory().createOverviewPage(overviewLayout, pageId);
panelContent.setExpandRatio(createPoliticianPageLink, ContentRatio.SMALL);
panelContent.setExpandRatio(horizontalLayout, ContentRatio.GRID);
}
18
View Complete Implementation : PDPManagement.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
mainLayout.setMargin(false);
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// horizontalLayoutToolbar
horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
mainLayout.addComponent(horizontalLayoutToolbar);
// tree
table = new Table();
table.setImmediate(false);
table.setWidth("-1px");
table.setHeight("-1px");
mainLayout.addComponent(table);
mainLayout.setExpandRatio(table, 1.0f);
return mainLayout;
}
18
View Complete Implementation : ConstraintField.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
public Component resetContent(ConstraintType type, Identifier datatype) {
//
// Remove all existing components
//
this.mainLayout.removeAllComponents();
//
// What are we constrained to?
//
if (type == null || type.getConstraintType() == null) {
//
// No constraint defined
//
this.attributeEnreplacedy.getEnreplacedy().removeAllConstraintValues();
return mainLayout;
}
if (type.getConstraintType().equals("Enumeration")) {
mainLayout.addComponent(new EnumerationEditorComponent(this.attributeEnreplacedy.getEnreplacedy(), datatype));
} else if (type.getConstraintType().equals("Range")) {
mainLayout.addComponent(new RangeEditorComponent(this.attributeEnreplacedy.getEnreplacedy(), datatype));
} else if (type.getConstraintType().equals("Regular Expression")) {
mainLayout.addComponent(new RegexpEditorComponent(this.attributeEnreplacedy.getEnreplacedy()));
}
return mainLayout;
}
18
View Complete Implementation : ExpressionSelectionWindow.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// optionGroupExpression
optionGroupExpression = new OptionGroup();
optionGroupExpression.setCaption("Select One Of The Following Types of Expressions");
optionGroupExpression.setImmediate(false);
optionGroupExpression.setWidth("-1px");
optionGroupExpression.setHeight("-1px");
mainLayout.addComponent(optionGroupExpression);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Select");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(24));
return mainLayout;
}
18
View Complete Implementation : UserManagement.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("-1px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("100.0%");
setHeight("-1px");
// horizontalLayoutToolbar
horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
mainLayout.addComponent(horizontalLayoutToolbar);
// tableUsers
tableUsers = new Table();
tableUsers.setImmediate(false);
tableUsers.setWidth("100.0%");
tableUsers.setHeight("-1px");
mainLayout.addComponent(tableUsers);
return mainLayout;
}
17
View Complete Implementation : RangeEditorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
mainLayout.addComponent(horizontalLayout_1);
mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);
// horizontalLayout_2
horizontalLayout_2 = buildHorizontalLayout_2();
mainLayout.addComponent(horizontalLayout_2);
mainLayout.setExpandRatio(horizontalLayout_2, 1.0f);
// panelTester
panelTester = buildPanelTester();
mainLayout.addComponent(panelTester);
mainLayout.setExpandRatio(panelTester, 1.0f);
return mainLayout;
}
17
View Complete Implementation : SelectPIPConfigurationWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// table
table = new Table();
table.setCaption("PIP Configurations");
table.setImmediate(false);
table.setWidth("-1px");
table.setHeight("-1px");
mainLayout.addComponent(table);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
17
View Complete Implementation : OaExpressionsEditorComponent.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// tableExpressions
tableExpressions = new Table();
tableExpressions.setCaption("Expressions");
tableExpressions.setImmediate(false);
tableExpressions.setDescription("The list of expressions for the obligation/advice object.");
tableExpressions.setWidth("-1px");
tableExpressions.setHeight("-1px");
mainLayout.addComponent(tableExpressions);
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
mainLayout.addComponent(horizontalLayout_1);
return mainLayout;
}
17
View Complete Implementation : DataSummaryAuthorPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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();
getMenuItemFactory().createMainPageMenuBar(menuBar);
LabelFactory.createHeader2Label(content, ADMIN_AUTHOR_SUMMARY);
final HorizontalLayout horizontalLayout = new HorizontalLayout();
horizontalLayout.setSizeFull();
content.addComponent(horizontalLayout);
content.setExpandRatio(horizontalLayout, ContentRatio.LARGE);
final DataContainer<ViewAuditAuthorSummary, Long> dataContainer = getApplicationManager().getDataContainer(ViewAuditAuthorSummary.clreplaced);
getGridFactory().createBasicBeanItemNestedPropertiesGrid(horizontalLayout, ViewAuditAuthorSummary.clreplaced, dataContainer.getAll(), ADMIN_AUTHOR_SUMMARY, null, COLUMN_ORDER, HIDE_COLUMNS, null, null, null);
return content;
}
17
View Complete Implementation : ConstraintField.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
public Component resetContent(ConstraintType type, Identifier datatype) {
//
// Remove all existing components
//
this.mainLayout.removeAllComponents();
//
// What are we constrained to?
//
if (type == null || type.getConstraintType() == null) {
//
// No constraint defined
//
this.attributeEnreplacedy.getEnreplacedy().removeAllConstraintValues();
return mainLayout;
}
if (type.getConstraintType().equals("Enumeration")) {
mainLayout.addComponent(new EnumerationEditorComponent(this.attributeEnreplacedy.getEnreplacedy(), datatype));
} else if (type.getConstraintType().equals("Range")) {
mainLayout.addComponent(new RangeEditorComponent(this.attributeEnreplacedy.getEnreplacedy(), datatype));
} else if (type.getConstraintType().equals("Regular Expression")) {
mainLayout.addComponent(new RegexpEditorComponent(this.attributeEnreplacedy.getEnreplacedy()));
}
return mainLayout;
}
17
View Complete Implementation : PartyOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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;
}
17
View Complete Implementation : SelectPDPGroupWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// listSelectPDPGroup
listSelectPDPGroup = new ListSelect();
listSelectPDPGroup.setImmediate(false);
listSelectPDPGroup.setWidth("-1px");
listSelectPDPGroup.setHeight("-1px");
listSelectPDPGroup.setInvalidAllowed(false);
listSelectPDPGroup.setRequired(true);
mainLayout.addComponent(listSelectPDPGroup);
mainLayout.setExpandRatio(listSelectPDPGroup, 1.0f);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(true);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
17
View Complete Implementation : SelectPDPGroupWindow.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// listSelectPDPGroup
listSelectPDPGroup = new ListSelect();
listSelectPDPGroup.setImmediate(false);
listSelectPDPGroup.setWidth("-1px");
listSelectPDPGroup.setHeight("-1px");
listSelectPDPGroup.setInvalidAllowed(false);
listSelectPDPGroup.setRequired(true);
mainLayout.addComponent(listSelectPDPGroup);
mainLayout.setExpandRatio(listSelectPDPGroup, 1.0f);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(true);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
17
View Complete Implementation : GitSynchronizeWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textAreaResults
textAreaResults = new TextArea();
textAreaResults.setCaption("Synch Results");
textAreaResults.setImmediate(false);
textAreaResults.setWidth("462px");
textAreaResults.setHeight("222px");
mainLayout.addComponent(textAreaResults);
// buttonSynchronize
buttonSynchronize = new Button();
buttonSynchronize.setCaption("Synchronize");
buttonSynchronize.setImmediate(true);
buttonSynchronize.setWidth("-1px");
buttonSynchronize.setHeight("-1px");
mainLayout.addComponent(buttonSynchronize);
mainLayout.setComponentAlignment(buttonSynchronize, new Alignment(24));
return mainLayout;
}
17
View Complete Implementation : OaExpressionsEditorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// tableExpressions
tableExpressions = new Table();
tableExpressions.setCaption("Expressions");
tableExpressions.setImmediate(false);
tableExpressions.setDescription("The list of expressions for the obligation/advice object.");
tableExpressions.setWidth("-1px");
tableExpressions.setHeight("-1px");
mainLayout.addComponent(tableExpressions);
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
mainLayout.addComponent(horizontalLayout_1);
return mainLayout;
}
17
View Complete Implementation : RangeEditorComponent.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
mainLayout.addComponent(horizontalLayout_1);
mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);
// horizontalLayout_2
horizontalLayout_2 = buildHorizontalLayout_2();
mainLayout.addComponent(horizontalLayout_2);
mainLayout.setExpandRatio(horizontalLayout_2, 1.0f);
// panelTester
panelTester = buildPanelTester();
mainLayout.addComponent(panelTester);
mainLayout.setExpandRatio(panelTester, 1.0f);
return mainLayout;
}
17
View Complete Implementation : SelectPIPConfigurationWindow.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// table
table = new Table();
table.setCaption("PIP Configurations");
table.setImmediate(false);
table.setWidth("-1px");
table.setHeight("-1px");
mainLayout.addComponent(table);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
16
View Complete Implementation : CommitteeRankingCommitteeByPartyChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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.createChartTimeSeriesTotalDaysServedCommitteeByParty(), ALL_PARTIES_TOTAL_DAYS_SERVED);
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : ColumnSelectionWindow.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textFieldColumn
textFieldColumn = new TextField();
textFieldColumn.setCaption("Column");
textFieldColumn.setImmediate(false);
textFieldColumn.setDescription("0-based index into CSV line");
textFieldColumn.setWidth("-1px");
textFieldColumn.setHeight("-1px");
textFieldColumn.setRequired(true);
textFieldColumn.setInputPrompt("Eg. ‘0'");
mainLayout.addComponent(textFieldColumn);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
16
View Complete Implementation : MinistryRankingAllMinistriesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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();
chartDataManager.createChartPanel(chartLayout, dataSeriesFactory.createMinistryChartTimeSeriesAll(), "All");
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : CommitteeOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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, OVERVIEW);
final Link addCommitteePageLink = getPageLinkFactory().addCommitteePageLink(viewRiksdagenCommittee);
panelContent.addComponent(addCommitteePageLink);
getFormFactory().addFormPanelTextFields(panelContent, viewRiksdagenCommittee, ViewRiksdagenCommittee.clreplaced, AS_LIST);
final VerticalLayout overviewLayout = new VerticalLayout();
overviewLayout.setSizeFull();
panelContent.addComponent(overviewLayout);
panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
getCommitteeMenuItemFactory().createOverviewPage(overviewLayout, pageId);
panelContent.setExpandRatio(addCommitteePageLink, ContentRatio.SMALL);
panel.setCaption(NAME + "::" + COMMITTEE + viewRiksdagenCommittee.getEmbeddedId().getDetail());
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : GovernmentBodyOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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> item = gereplacedem(parameters);
if (item != null && !item.isEmpty()) {
getGovernmentBodyMenuItemFactory().createGovernmentBodyMenuBar(menuBar, pageId);
LabelFactory.createHeader2Label(panelContent, OVERVIEW);
panel.setCaption(NAME + "::" + GOVERNMENT_BODY + pageId);
final VerticalLayout overviewLayout = new VerticalLayout();
overviewLayout.setSizeFull();
panelContent.addComponent(overviewLayout);
panelContent.setExpandRatio(overviewLayout, ContentRatio.LARGE_FORM);
getGovernmentBodyMenuItemFactory().createOverviewPage(overviewLayout, pageId);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_GOVERNMENT_BODY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
}
return panelContent;
}
16
View Complete Implementation : PartyRankingCurrentGovernmentChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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);
getPartyRankingMenuItemFactory().createPartyRankingMenuBar(menuBar);
final HorizontalLayout chartLayout = new HorizontalLayout();
chartLayout.setSizeFull();
chartDataManager.createChartPanel(chartLayout, dataSeriesFactory.createChartTimeSeriesCurrentGovernmentByParty(), "Current Government");
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_PARTY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : MinistryOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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;
}
16
View Complete Implementation : VariableDefinitionEditorWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textFieldID
textFieldID = new TextField();
textFieldID.setCaption("Variable ID");
textFieldID.setImmediate(false);
textFieldID.setWidth("-1px");
textFieldID.setHeight("-1px");
textFieldID.setInvalidAllowed(false);
textFieldID.setRequired(true);
textFieldID.setNullRepresentation("");
mainLayout.addComponent(textFieldID);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save and Continue");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
16
View Complete Implementation : MinistryRankingCurrentMinistriesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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();
chartDataManager.createChartPanel(chartLayout, dataSeriesFactory.createMinistryChartTimeSeriesCurrent(), "Current Ministies, by headcount");
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : CommitteeRankingCurrentCommitteesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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.createCommitteeChartTimeSeriesCurrent(), "Current");
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : MinistryRankingAllPartiesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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();
chartDataManager.createChartPanel(chartLayout, dataSeriesFactory.createChartTimeSeriesTotalDaysServedGovernmentByParty(), "All Parties, total days served");
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : PartyRankingCurrentPartiesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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);
getPartyRankingMenuItemFactory().createPartyRankingMenuBar(menuBar);
final HorizontalLayout chartLayout = new HorizontalLayout();
chartLayout.setSizeFull();
chartDataManager.createChartPanel(chartLayout, dataSeriesFactory.createPartyChartTimeSeriesCurrent(), "Current");
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_PARTY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : MinistryRankingCurrentPartiesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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();
chartDataManager.createChartPanel(chartLayout, dataSeriesFactory.createChartTimeSeriesCurrentGovernmentByParty(), "Current Parties, headcount");
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : ColumnSelectionWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textFieldColumn
textFieldColumn = new TextField();
textFieldColumn.setCaption("Column");
textFieldColumn.setImmediate(false);
textFieldColumn.setDescription("0-based index into CSV line");
textFieldColumn.setWidth("-1px");
textFieldColumn.setHeight("-1px");
textFieldColumn.setRequired(true);
textFieldColumn.setInputPrompt("Eg. ‘0'");
mainLayout.addComponent(textFieldColumn);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
16
View Complete Implementation : PIPParamEditorWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textFieldName
textFieldName = new TextField();
textFieldName.setCaption("Parameter Name");
textFieldName.setImmediate(false);
textFieldName.setWidth("-1px");
textFieldName.setHeight("-1px");
textFieldName.setInvalidAllowed(false);
textFieldName.setRequired(true);
mainLayout.addComponent(textFieldName);
// textFieldValue
textFieldValue = new TextField();
textFieldValue.setCaption("Parameter Value");
textFieldValue.setImmediate(false);
textFieldValue.setWidth("-1px");
textFieldValue.setHeight("-1px");
textFieldValue.setInvalidAllowed(false);
textFieldValue.setRequired(true);
mainLayout.addComponent(textFieldValue);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(true);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
16
View Complete Implementation : VariableDefinitionEditorWindow.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textFieldID
textFieldID = new TextField();
textFieldID.setCaption("Variable ID");
textFieldID.setImmediate(false);
textFieldID.setWidth("-1px");
textFieldID.setHeight("-1px");
textFieldID.setInvalidAllowed(false);
textFieldID.setRequired(true);
textFieldID.setNullRepresentation("");
mainLayout.addComponent(textFieldID);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save and Continue");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
16
View Complete Implementation : AbstractPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
Copyright Apache License 2.0
Author : Hack23
/**
* Creates the page visit history.
*
* @param pageName
* the page name
* @param pageId
* the page id
* @param panelContent
* the panel content
*/
protected final void createPageVisitHistory(final String pageName, final String pageId, final VerticalLayout panelContent) {
final TabSheet tabsheet = new TabSheet();
tabsheet.setWidth(100, Unit.PERCENTAGE);
tabsheet.setHeight(100, Unit.PERCENTAGE);
panelContent.addComponent(tabsheet);
panelContent.setExpandRatio(tabsheet, ContentRatio.LARGE);
final HorizontalLayout tabContentPageItemRankHistory = new HorizontalLayout();
tabContentPageItemRankHistory.setWidth(100, Unit.PERCENTAGE);
tabContentPageItemRankHistory.setHeight(100, Unit.PERCENTAGE);
final Tab tabPageItemRankHistory = tabsheet.addTab(tabContentPageItemRankHistory);
tabPageItemRankHistory.setCaption(CURRENT_PAGE_VISIT_HISTORY);
adminChartDataManager.createApplicationActionEventPageElementDailySummaryChart(tabContentPageItemRankHistory, pageName, pageId);
final HorizontalLayout tabContentPageModeSummary = new HorizontalLayout();
tabContentPageModeSummary.setWidth(100, Unit.PERCENTAGE);
tabContentPageModeSummary.setHeight(100, Unit.PERCENTAGE);
final Tab tabPageModeSummary = tabsheet.addTab(tabContentPageModeSummary);
tabPageModeSummary.setCaption(GENERAL_PAGE_MODE_PAGE_VISIT);
adminChartDataManager.createApplicationActionEventPageModeDailySummaryChart(tabContentPageModeSummary, pageName);
}
16
View Complete Implementation : CommitteeRankingAllCommitteesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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;
}
16
View Complete Implementation : PartyRankingAllPartiesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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);
getPartyRankingMenuItemFactory().createPartyRankingMenuBar(menuBar);
final HorizontalLayout chartLayout = new HorizontalLayout();
chartLayout.setSizeFull();
chartDataManager.createChartPanel(chartLayout, dataSeriesFactory.createPartyChartTimeSeriesAll(), "All");
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_PARTY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
16
View Complete Implementation : XacmlErrorHandler.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("100.0%");
setHeight("-1px");
// labelError
labelError = new Label();
labelError.setImmediate(false);
labelError.setWidth("100.0%");
labelError.setHeight("80px");
labelError.setValue("This holds error messages.");
mainLayout.addComponent(labelError);
// buttonGo
buttonGo = new Button();
buttonGo.setCaption("Ok");
buttonGo.setImmediate(true);
buttonGo.setWidth("-1px");
buttonGo.setHeight("-1px");
mainLayout.addComponent(buttonGo);
mainLayout.setComponentAlignment(buttonGo, new Alignment(48));
return mainLayout;
}
16
View Complete Implementation : XacmlErrorHandler.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("100.0%");
setHeight("-1px");
// labelError
labelError = new Label();
labelError.setImmediate(false);
labelError.setWidth("100.0%");
labelError.setHeight("80px");
labelError.setValue("This holds error messages.");
mainLayout.addComponent(labelError);
// buttonGo
buttonGo = new Button();
buttonGo.setCaption("Ok");
buttonGo.setImmediate(true);
buttonGo.setWidth("-1px");
buttonGo.setHeight("-1px");
mainLayout.addComponent(buttonGo);
mainLayout.setComponentAlignment(buttonGo, new Alignment(48));
return mainLayout;
}
16
View Complete Implementation : PIPParamEditorWindow.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// textFieldName
textFieldName = new TextField();
textFieldName.setCaption("Parameter Name");
textFieldName.setImmediate(false);
textFieldName.setWidth("-1px");
textFieldName.setHeight("-1px");
textFieldName.setInvalidAllowed(false);
textFieldName.setRequired(true);
mainLayout.addComponent(textFieldName);
// textFieldValue
textFieldValue = new TextField();
textFieldValue.setCaption("Parameter Value");
textFieldValue.setImmediate(false);
textFieldValue.setWidth("-1px");
textFieldValue.setHeight("-1px");
textFieldValue.setInvalidAllowed(false);
textFieldValue.setRequired(true);
mainLayout.addComponent(textFieldValue);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(true);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
15
View Complete Implementation : MinistryRankingOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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);
panelContent.addComponent(createDescription());
getMinistryRankingMenuItemFactory().createOverviewPage(panelContent);
panel.setCaption(NAME + "::" + OVERVIEW);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_MINISTRY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
15
View Complete Implementation : AttributeDictionary.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// horizontalLayoutToolbar
horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
mainLayout.addComponent(horizontalLayoutToolbar);
// table
table = new Table();
table.setImmediate(false);
table.setWidth("100.0%");
table.setHeight("-1px");
mainLayout.addComponent(table);
return mainLayout;
}
15
View Complete Implementation : ObadviceDictionary.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("100.0%");
setHeight("-1px");
// horizontalLayoutToolbar
horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
mainLayout.addComponent(horizontalLayoutToolbar);
// table
table = new Table();
table.setImmediate(true);
table.setWidth("-1px");
table.setHeight("-1px");
mainLayout.addComponent(table);
return mainLayout;
}
15
View Complete Implementation : CommitteeDecisionFlowPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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);
String selectedYear = "2019/20";
if (parameters != null && parameters.contains("[") && parameters.contains("]")) {
selectedYear = parameters.substring(parameters.indexOf('[') + 1, parameters.lastIndexOf(']'));
}
final ComboBox<String> comboBox = new ComboBox<>("Select year", Collections.unmodifiableList(Arrays.asList("2019/20", "2018/19", "2017/18", "2016/17", "2015/16", "2014/15", "2013/14", "2012/13", "2011/12", "2010/11")));
panelContent.addComponent(comboBox);
panelContent.setExpandRatio(comboBox, ContentRatio.SMALL2);
comboBox.setSelectedItem(selectedYear);
comboBox.addValueChangeListener(new DecisionFlowValueChangeListener(NAME, pageId));
final Map<String, List<ViewRiksdagenCommittee>> committeeMap = getApplicationManager().getDataContainer(ViewRiksdagenCommittee.clreplaced).getAll().stream().collect(Collectors.groupingBy(c -> c.getEmbeddedId().getOrgCode().toUpperCase(Locale.ENGLISH)));
final SankeyChart chart = decisionFlowChartManager.createCommitteeDecisionFlow(viewRiksdagenCommittee, committeeMap, comboBox.getSelectedItem().orElse(selectedYear));
panelContent.addComponent(chart);
panelContent.setExpandRatio(chart, ContentRatio.LARGE);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
panel.setCaption(new StringBuilder().append(NAME).append("::").append(COMMITTEE_DECISION_FLOW).toString());
return panelContent;
}
15
View Complete Implementation : CommitteeRankingCurrentCommitteePartiesChartsPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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, dataSeriesFactory2.createChartTimeSeriesCurrentCommitteeByParty(), CURRENT_PARTIES_BY_DAYS_SERVED);
panelContent.addComponent(chartLayout);
panel.setCaption(NAME + "::" + CHARTS + parameters);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
15
View Complete Implementation : ParliamentRiskPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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);
final HorizontalLayout horizontalLayout = new HorizontalLayout();
final DataContainer<RuleViolation, String> dataContainer = getApplicationManager().getDataContainer(RuleViolation.clreplaced);
final List<RuleViolation> ruleViolations = dataContainer.getAll();
final List<ComplianceCheckImpl> checks = new ArrayList<>();
for (final Entry<String, List<RuleViolation>> idMapViolations : ruleViolations.stream().collect(Collectors.groupingBy(RuleViolation::getReferenceId)).entrySet()) {
checks.add(new ComplianceCheckImpl(idMapViolations.getValue()));
}
Collections.sort(checks, (o1, o2) -> Integer.compare(o2.getRuleViolations().size(), o1.getRuleViolations().size()));
for (final Entry<Status, List<RuleViolation>> statusEntry : ruleViolations.stream().collect(Collectors.groupingBy(RuleViolation::getStatus)).entrySet()) {
horizontalLayout.addComponent(new CounterStatisticsCard(VaadinIcons.WARNING, new CounterStatisticModel("ALL:" + statusEntry.getKey(), statusEntry.getValue().size()).withShow(StatisticShow.Sum).withIconHidden().withShowOnlyStatistic(true), "ALL:" + statusEntry.getKey()));
}
for (final Entry<ResourceType, List<RuleViolation>> statusEntry : ruleViolations.stream().collect(Collectors.groupingBy(RuleViolation::getResourceType)).entrySet()) {
horizontalLayout.addComponent(new CounterStatisticsCard(VaadinIcons.WARNING, new CounterStatisticModel("ALL:" + statusEntry.getKey(), statusEntry.getValue().size()).withShow(StatisticShow.Sum).withIconHidden().withShowOnlyStatistic(true), "ALL:" + statusEntry.getKey()));
}
panelContent.addComponent(horizontalLayout);
getGridFactory().createBasicBeanItemGrid(panelContent, ComplianceCheckImpl.clreplaced, checks, "Risk", new String[] { "name", "resourceType", "numberRuleViolations", "ruleSummary" }, new String[] { "id", "ruleViolations" }, CLICK_LISTENER, null, null);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_PARLIAMENT_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
panel.setCaption(new StringBuilder().append(NAME).append("::").append(PARLIAMENT_RISK_SUMMARY).toString());
return panelContent;
}
15
View Complete Implementation : PoliticianRankingOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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;
}
15
View Complete Implementation : AttributeDictionary.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// horizontalLayoutToolbar
horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
mainLayout.addComponent(horizontalLayoutToolbar);
// table
table = new Table();
table.setImmediate(false);
table.setWidth("100.0%");
table.setHeight("-1px");
mainLayout.addComponent(table);
return mainLayout;
}
15
View Complete Implementation : PartyRankingOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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);
panelContent.addComponent(createDescription());
getPartyRankingMenuItemFactory().createOverviewPage(panelContent);
panel.setCaption(NAME + "::" + OVERVIEW);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_PARTY_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}
15
View Complete Implementation : CountryRankingOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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;
}
15
View Complete Implementation : CommitteeRankingOverviewPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
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);
panelContent.addComponent(createDescription());
getCommitteeRankingMenuItemFactory().createOverviewPage(panelContent);
panel.setCaption(NAME + "::" + OVERVIEW);
getPageActionEventHelper().createPageEvent(ViewAction.VISIT_COMMITTEE_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId);
return panelContent;
}