List of usage examples for com.vaadin.ui Panel setSizeFull
@Override public void setSizeFull()
From source file:org.eclipse.hawkbit.ui.tenantconfiguration.PollingConfigurationView.java
License:Open Source License
PollingConfigurationView(final VaadinMessageSource i18n, final ControllerPollProperties controllerPollProperties, final TenantConfigurationManagement tenantConfigurationManagement) { this.tenantConfigurationManagement = tenantConfigurationManagement; final Duration minDuration = DurationHelper .formattedStringToDuration(controllerPollProperties.getMinPollingTime()); final Duration maxDuration = DurationHelper .formattedStringToDuration(controllerPollProperties.getMaxPollingTime()); final Duration globalPollTime = DurationHelper.formattedStringToDuration(tenantConfigurationManagement .getGlobalConfigurationValue(TenantConfigurationKey.POLLING_TIME_INTERVAL, String.class)); final Duration globalOverdueTime = DurationHelper.formattedStringToDuration(tenantConfigurationManagement .getGlobalConfigurationValue(TenantConfigurationKey.POLLING_OVERDUE_TIME_INTERVAL, String.class)); final TenantConfigurationValue<String> pollTimeConfValue = tenantConfigurationManagement .getConfigurationValue(TenantConfigurationKey.POLLING_TIME_INTERVAL, String.class); if (!pollTimeConfValue.isGlobal()) { tenantPollTime = DurationHelper.formattedStringToDuration(pollTimeConfValue.getValue()); }//from w w w . j a v a 2 s .com final TenantConfigurationValue<String> overdueTimeConfValue = tenantConfigurationManagement .getConfigurationValue(TenantConfigurationKey.POLLING_OVERDUE_TIME_INTERVAL, String.class); if (!overdueTimeConfValue.isGlobal()) { tenantOverdueTime = DurationHelper.formattedStringToDuration(overdueTimeConfValue.getValue()); } final Panel rootPanel = new Panel(); rootPanel.setSizeFull(); rootPanel.addStyleName("config-panel"); final VerticalLayout vLayout = new VerticalLayout(); vLayout.setMargin(true); final Label headerDisSetType = new Label(i18n.getMessage("configuration.polling.title")); headerDisSetType.addStyleName("config-panel-header"); vLayout.addComponent(headerDisSetType); fieldPollTime = DurationConfigField.builder(UIComponentIdProvider.SYSTEM_CONFIGURATION_POLLING) .caption(i18n.getMessage("configuration.polling.time")) .checkBoxTooltip(i18n.getMessage("configuration.polling.custom.value")) .range(minDuration, maxDuration).globalDuration(globalPollTime).tenantDuration(tenantPollTime) .build(); fieldPollTime.addChangeListener(this); vLayout.addComponent(fieldPollTime); fieldPollingOverdueTime = DurationConfigField.builder(UIComponentIdProvider.SYSTEM_CONFIGURATION_OVERDUE) .caption(i18n.getMessage("configuration.polling.overduetime")) .checkBoxTooltip(i18n.getMessage("configuration.polling.custom.value")) .range(minDuration, maxDuration).globalDuration(globalOverdueTime).tenantDuration(tenantOverdueTime) .build(); fieldPollingOverdueTime.addChangeListener(this); vLayout.addComponent(fieldPollingOverdueTime); rootPanel.setContent(vLayout); setCompositionRoot(rootPanel); }
From source file:org.eclipse.hawkbit.ui.tenantconfiguration.RepositoryConfigurationView.java
License:Open Source License
private void init() { final Panel rootPanel = new Panel(); rootPanel.setSizeFull(); rootPanel.addStyleName("config-panel"); final VerticalLayout vLayout = new VerticalLayout(); vLayout.setMargin(true);/*from w w w . j a v a 2 s. c o m*/ vLayout.setSizeFull(); final Label header = new Label(i18n.getMessage("configuration.repository.title")); header.addStyleName("config-panel-header"); vLayout.addComponent(header); final GridLayout gridLayout = new GridLayout(2, 2); gridLayout.setSpacing(true); gridLayout.setImmediate(true); gridLayout.setColumnExpandRatio(1, 1.0F); gridLayout.setSizeFull(); actionAutocloseCheckBox = SPUIComponentProvider.getCheckBox("", DIST_CHECKBOX_STYLE, null, false, ""); actionAutocloseCheckBox.setId(UIComponentIdProvider.REPOSITORY_ACTIONS_AUTOCLOSE_CHECKBOX); actionAutocloseCheckBox.setValue(actionAutocloseConfigurationItem.isConfigEnabled()); actionAutocloseCheckBox.addValueChangeListener(this); actionAutocloseConfigurationItem.addChangeListener(this); gridLayout.addComponent(actionAutocloseCheckBox, 0, 0); gridLayout.addComponent(actionAutocloseConfigurationItem, 1, 0); actionAutocleanupCheckBox = SPUIComponentProvider.getCheckBox("", DIST_CHECKBOX_STYLE, null, false, ""); actionAutocleanupCheckBox.setId(UIComponentIdProvider.REPOSITORY_ACTIONS_AUTOCLEANUP_CHECKBOX); actionAutocleanupCheckBox.setValue(actionAutocleanupConfigurationItem.isConfigEnabled()); actionAutocleanupCheckBox.addValueChangeListener(this); actionAutocleanupConfigurationItem.addChangeListener(this); gridLayout.addComponent(actionAutocleanupCheckBox, 0, 1); gridLayout.addComponent(actionAutocleanupConfigurationItem, 1, 1); vLayout.addComponent(gridLayout); rootPanel.setContent(vLayout); setCompositionRoot(rootPanel); }
From source file:org.eclipse.hawkbit.ui.tenantconfiguration.RolloutConfigurationView.java
License:Open Source License
private void init() { final Panel rootPanel = new Panel(); rootPanel.setSizeFull(); rootPanel.addStyleName("config-panel"); final VerticalLayout vLayout = new VerticalLayout(); vLayout.setMargin(true);// w ww . j a v a2 s. c om vLayout.setSizeFull(); final Label header = new Label(i18n.getMessage("configuration.rollout.title")); header.addStyleName("config-panel-header"); vLayout.addComponent(header); final HorizontalLayout hLayout = new HorizontalLayout(); hLayout.setSpacing(true); hLayout.setImmediate(true); approvalCheckbox = SPUIComponentProvider.getCheckBox("", "", null, false, ""); approvalCheckbox.setId(UIComponentIdProvider.ROLLOUT_APPROVAL_ENABLED_CHECKBOX); approvalCheckbox.setValue(approvalConfigurationItem.isConfigEnabled()); approvalCheckbox.addValueChangeListener(this); approvalConfigurationItem.addChangeListener(this); hLayout.addComponent(approvalCheckbox); hLayout.addComponent(approvalConfigurationItem); final Link linkToApprovalHelp = SPUIComponentProvider.getHelpLink(i18n, uiProperties.getLinks().getDocumentation().getRollout()); hLayout.addComponent(linkToApprovalHelp); hLayout.setComponentAlignment(linkToApprovalHelp, Alignment.BOTTOM_RIGHT); vLayout.addComponent(hLayout); rootPanel.setContent(vLayout); setCompositionRoot(rootPanel); }
From source file:org.escidoc.browser.elabsmodul.views.InvestigationSeriesView.java
License:Open Source License
/** * This is the inner Right Cell within a Context By default a set of Organizational Unit / Admin Description / * RelatedItem / Resources are bound/*from w w w . j a v a 2s . c o m*/ * * @param comptoBind */ // TODO why deprecated? @SuppressWarnings("deprecation") private void rightCell(Component comptoBind) { Panel rightpnl = new Panel(); rightpnl.setStyleName("floatright"); rightpnl.addStyleName(Runo.PANEL_LIGHT); rightpnl.setSizeFull(); rightpnl.getLayout().setMargin(false); rightpnl.addComponent(comptoBind); this.directMemberInvSeriesContainer.addComponent(rightpnl); this.directMemberInvSeriesContainer.setExpandRatio(rightpnl, 7.0f); }
From source file:org.escidoc.browser.elabsmodul.views.InvestigationSeriesView.java
License:Open Source License
private void leftCell() throws EscidocClientException { Panel leftPanel = new Panel(); leftPanel.setStyleName("directmembers floatleft"); leftPanel.setScrollable(false);/*from w w w . j a v a2s .c o m*/ leftPanel.setSizeFull(); VerticalLayout vl = new VerticalLayout(); vl.setMargin(false); vl.setSizeFull(); leftPanel.setContent(vl); new DirectMember(this.router.getServiceLocation(), this.router, this.containerProxy.getId(), this.router.getMainWindow(), router.getRepositories(), leftPanel, ResourceType.CONTAINER.toString()) .containerAsTree(); this.directMemberInvSeriesContainer.addComponent(leftPanel); this.directMemberInvSeriesContainer.setExpandRatio(leftPanel, 3.0f); }
From source file:org.escidoc.browser.elabsmodul.views.InvestigationView.java
License:Open Source License
private void leftCell() throws EscidocClientException { final Panel leftPanel = new Panel(); leftPanel.setStyleName("directmembers floatleft"); leftPanel.setScrollable(false);/*w w w .j ava2 s. com*/ leftPanel.setSizeFull(); VerticalLayout vl = new VerticalLayout(); vl.setMargin(false); vl.setSizeFull(); leftPanel.setContent(vl); new DirectMember(this.router.getServiceLocation(), this.router, containerProxy.getId(), this.router.getMainWindow(), this.router.getRepositories(), leftPanel, ResourceType.CONTAINER.toString()).containerAsTree(); directMemberInvestigationContainer.addComponent(leftPanel); directMemberInvestigationContainer.setExpandRatio(leftPanel, 3.0f); }
From source file:org.escidoc.browser.elabsmodul.views.InvestigationView.java
License:Open Source License
/** * This is the inner Right Cell within a Context By default a set of Organizational Unit / Admin Description / * RelatedItem / Resources are bound This Cell is binding the Panel and the Start/Stop button in the Investigation, * through StartInvestigationViewHelper/*w w w.j a va2 s . c o m*/ * * @param comptoBind */ @SuppressWarnings("deprecation") private void rightCell(final Component comptoBind) { final Panel rightpnl = new Panel(); rightpnl.setStyleName("floatright"); rightpnl.addStyleName(Runo.PANEL_LIGHT); rightpnl.setSizeFull(); rightpnl.getLayout().setMargin(false); rightpnl.addComponent(comptoBind); new StartInvestigationViewHelper(this, this.controller).createStartButton(rightpnl); directMemberInvestigationContainer.addComponent(rightpnl); directMemberInvestigationContainer.setExpandRatio(rightpnl, 7.0f); }
From source file:org.escidoc.browser.elabsmodul.views.StudyView.java
License:Open Source License
/** * This is the inner Right Cell within a Context By default a set of Organizational Unit / Admin Description / * RelatedItem / Resources are bound/* ww w.j a v a 2 s . co m*/ * * @param comptoBind */ private void rightCell(final Component comptoBind) { final Panel rightpnl = new Panel(); rightpnl.setDescription(RIGHT_PANEL); rightpnl.setStyleName("floatright"); rightpnl.addStyleName(Runo.PANEL_LIGHT); rightpnl.setSizeFull(); VerticalLayout vlRightPnl = new VerticalLayout(); vlRightPnl.setSizeFull(); vlRightPnl.setMargin(false); vlRightPnl.addComponent(comptoBind); rightpnl.setContent(vlRightPnl); this.directMemberExperimentContainer.addComponent(rightpnl); this.directMemberExperimentContainer.setExpandRatio(rightpnl, 7.0f); }
From source file:org.escidoc.browser.elabsmodul.views.StudyView.java
License:Open Source License
private void leftCell() throws EscidocClientException { final Panel leftPanel = new Panel(); leftPanel.setStyleName("directmembers floatleft"); leftPanel.setScrollable(false);/*from w ww . j a v a 2 s. c om*/ leftPanel.setSizeFull(); VerticalLayout vlLeftPanel = new VerticalLayout(); vlLeftPanel.setSizeFull(); vlLeftPanel.setMargin(false); leftPanel.setContent(vlLeftPanel); new DirectMember(this.router.getServiceLocation(), this.router, this.containerProxy.getId(), this.router.getMainWindow(), this.router.getRepositories(), leftPanel, ResourceType.CONTAINER.toString()).containerAsTree(); this.directMemberExperimentContainer.addComponent(leftPanel); this.directMemberExperimentContainer.setExpandRatio(leftPanel, 3.0f); }
From source file:org.escidoc.browser.ui.maincontent.ContainerMetadataRecordsView.java
License:Open Source License
public Panel asPanel() { final Panel pnlmetadataRecs = new Panel(); pnlmetadataRecs.setSizeFull(); VerticalLayout vl = new VerticalLayout(); vl.setImmediate(false);//from w w w . jav a2s . com vl.setWidth("100.0%"); vl.setHeight("100.0%"); vl.setMargin(false); vl.addComponent(lblMetadaRecs()); pnlmetadataRecs.setContent(vl); return pnlmetadataRecs; }