Java Code Examples for com.vaadin.ui.TextArea#setSizeFull()
The following examples show how to use
com.vaadin.ui.TextArea#setSizeFull() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PartyRankingOverviewPageModContentFactoryImpl.java From cia with Apache License 2.0 | 6 votes |
/** * Creates the description. * * @return the text area */ private static TextArea createDescription() { final TextArea totalpartytoplistLabel = new TextArea( "Party Ranking by topic", "Time served in Parliament:ALL:CURRENT:" + "\nTime served in Committees:ALL:CURRENT:" + "\nTime served in Government:ALL:CURRENT:" + "\nTop document author NR:ALL:YEAR:CURRENT:*FILTER:DocumnetType" + "\nTop document author SIZE:YEAR:ALL:CURRENT:*FILTER:DocumnetType" + "\nTop votes NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart" + "\nTop vote winner NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart" + "\nTop vote party rebel NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart" + "\nTop vote presence NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart" + "\nSearch by name"); totalpartytoplistLabel.setSizeFull(); totalpartytoplistLabel.setStyleName("Level2Header"); return totalpartytoplistLabel; }
Example 2
Source File: PoliticianRankingOverviewPageModContentFactoryImpl.java From cia with Apache License 2.0 | 6 votes |
/** * Creates the description. * * @return the text area */ private static TextArea createDescription() { final TextArea totalpoliticantoplistLabel = new TextArea("Politician Ranking by topic", "Time served in Parliament:ALL:CURRENT:*FILTER:Gender,Party,ElectionRegion" + "\nTime served in Committees:ALL:CURRENT:*FILTER:Gender,Party,ElectionRegion" + "\nTime served in Government:ALL:CURRENT:*FILTER:Gender,Party,ElectionRegion" + "\nTop document author NR:ALL:YEAR:CURRENT:*FILTER:DocumnetType,Gender,Party,ElectionRegion" + "\nTop document author SIZE:YEAR:ALL:CURRENT:*FILTER:DocumnetType,Gender,Party,ElectionRegion" + "\nTop votes:ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion" + "\nTop vote winner NR/PERCENTAGE :ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion" + "\nTop vote party rebel NR/PERCENTAGE :ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion" + "\nTop vote presence NR/PERCENTAGE :ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion" + "\nSearch by name"); totalpoliticantoplistLabel.setSizeFull(); totalpoliticantoplistLabel.setStyleName("Level2Header"); return totalpoliticantoplistLabel; }
Example 3
Source File: CommitteeRankingOverviewPageModContentFactoryImpl.java From cia with Apache License 2.0 | 5 votes |
/** * Creates the description. * * @return the text area */ private static TextArea createDescription() { final TextArea totalCommitteeRankinglistLabel = new TextArea(COMMITTEE_RANKING_BY_TOPIC, COMMITTEE_RANKING_BY_TOPIC_DESCRIPTION); totalCommitteeRankinglistLabel.setSizeFull(); totalCommitteeRankinglistLabel.setStyleName("Level2Header"); return totalCommitteeRankinglistLabel; }
Example 4
Source File: ParliamentDecisionFlowPageModContentFactoryImpl.java From cia with Apache License 2.0 | 5 votes |
@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); String selectedYear = "2018/19"; if (parameters != null && parameters.contains("[") && parameters.contains("]")) { selectedYear = parameters.substring(parameters.indexOf('[') + 1, parameters.lastIndexOf(']')); } final DataContainer<ViewRiksdagenCommittee, String> dataContainer = getApplicationManager() .getDataContainer(ViewRiksdagenCommittee.class); final List<ViewRiksdagenCommittee> allCommittess = dataContainer.getAll(); final Map<String, List<ViewRiksdagenCommittee>> committeeMap = allCommittess.stream().collect(Collectors.groupingBy(c -> c.getEmbeddedId().getOrgCode().toUpperCase(Locale.ENGLISH))); final ComboBox<String> comboBox = new ComboBox<>("Select year", Collections.unmodifiableList(Arrays.asList("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.SMALL); comboBox.setSelectedItem(selectedYear); comboBox.addValueChangeListener(new DecisionFlowValueChangeListener(NAME,"")); final SankeyChart chart = decisionFlowChartManager.createAllDecisionFlow(committeeMap,comboBox.getSelectedItem().orElse(selectedYear)); panelContent.addComponent(chart); panelContent.setExpandRatio(chart, ContentRatio.LARGE); final TextArea textarea = decisionFlowChartManager.createCommitteeeDecisionSummary(committeeMap,comboBox.getSelectedItem().orElse(selectedYear)); textarea.setSizeFull(); panelContent.addComponent(textarea); panelContent.setExpandRatio(textarea, ContentRatio.SMALL_GRID); getPageActionEventHelper().createPageEvent(ViewAction.VISIT_PARLIAMENT_RANKING_VIEW, ApplicationEventGroup.USER, NAME, parameters, selectedYear); panel.setCaption(new StringBuilder().append(NAME).append("::").append(PARLIAMENT_DECISION_FLOW).toString()); return panelContent; }
Example 5
Source File: MinistryRankingOverviewPageModContentFactoryImpl.java From cia with Apache License 2.0 | 5 votes |
/** * Creates the description. * * @return the text area */ private static TextArea createDescription() { final TextArea totalCommitteeRankinglistLabel = new TextArea(MINISTRY_RANKING_BY_TOPIC, MINISTRY_RANKING_BY_TOPIC_DESCRIPTION); totalCommitteeRankinglistLabel.setSizeFull(); totalCommitteeRankinglistLabel.setStyleName("Level2Header"); return totalCommitteeRankinglistLabel; }
Example 6
Source File: PDPStatusWindow.java From XACML with MIT License | 5 votes |
protected TextArea createTextArea(String value, int lines) { TextArea area = new TextArea(); area.setValue(value); area.setNullRepresentation(""); area.setSizeFull(); area.setReadOnly(true); area.setRows(lines); return area; }
Example 7
Source File: TextEditor.java From chipster with MIT License | 5 votes |
private void init() { txtArea = new TextArea(); txtArea.setSizeFull(); // for some reasons size full does not do anything to height txtArea.setRows(50); this.addComponent(txtArea); }