private Panel buildContent() { final Panel content = new Panel(); content.setSizeFull(); content.setStyleName("view-content"); return content; }
private Panel buildContent() { final Panel content = new Panel(); content.setSizeFull(); content.setStyleName("view-content"); return content; }
/** * Init method adds all Configuration Views to the list of Views. */ @PostConstruct public void init() { if (defaultDistributionSetTypeLayout.getComponentCount() > 0) { configurationViews.add(defaultDistributionSetTypeLayout); } configurationViews.add(repositoryConfigurationView); configurationViews.add(rolloutConfigurationView); configurationViews.add(authenticationConfigurationView); configurationViews.add(pollingConfigurationView); if (customConfigurationViews != null) { configurationViews.addAll( customConfigurationViews.stream().filter(ConfigurationGroup::show).collect(Collectors.toList())); } final Panel rootPanel = new Panel(); rootPanel.setStyleName("tenantconfig-root"); final VerticalLayout rootLayout = new VerticalLayout(); rootLayout.setSizeFull(); rootLayout.setMargin(true); rootLayout.setSpacing(true); configurationViews.forEach(rootLayout::addComponent); final HorizontalLayout buttonContent = saveConfigurationButtonsLayout(); rootLayout.addComponent(buttonContent); rootLayout.setComponentAlignment(buttonContent, Alignment.BOTTOM_LEFT); rootPanel.setContent(rootLayout); setCompositionRoot(rootPanel); configurationViews.forEach(view -> view.addChangeListener(this)); }
/** * Init method adds all Configuration Views to the list of Views. */ @PostConstruct public void init() { if (defaultDistributionSetTypeLayout.getComponentCount() > 0) { configurationViews.add(defaultDistributionSetTypeLayout); } configurationViews.add(repositoryConfigurationView); configurationViews.add(rolloutConfigurationView); configurationViews.add(authenticationConfigurationView); configurationViews.add(pollingConfigurationView); if (customConfigurationViews != null) { configurationViews.addAll( customConfigurationViews.stream().filter(ConfigurationGroup::show).collect(Collectors.toList())); } final Panel rootPanel = new Panel(); rootPanel.setStyleName("tenantconfig-root"); final VerticalLayout rootLayout = new VerticalLayout(); rootLayout.setSizeFull(); rootLayout.setMargin(true); rootLayout.setSpacing(true); configurationViews.forEach(rootLayout::addComponent); final HorizontalLayout buttonContent = saveConfigurationButtonsLayout(); rootLayout.addComponent(buttonContent); rootLayout.setComponentAlignment(buttonContent, Alignment.BOTTOM_LEFT); rootPanel.setContent(rootLayout); setCompositionRoot(rootPanel); configurationViews.forEach(view -> view.addChangeListener(this)); }
this.searchPanel.setStyleName("dashboard");
private void createResultsPanel() { this.resultsPanel = new Panel(); this.resultsPanel.setSizeFull(); this.resultsPanel.setStyleName("dashboard"); this.resultsTable = new Table(); this.resultsTable.setSizeFull(); this.resultsTable.addContainerProperty("Name", String.class, null); this.resultsTable.addContainerProperty("Description", String.class, null); this.resultsTable.addItemClickListener(new ItemClickEvent.ItemClickListener() { @Override public void itemClick(ItemClickEvent itemClickEvent) { businessStream = (BusinessStream)itemClickEvent.getItemId(); UI.getCurrent().removeWindow(PolicyAssociationBusinessStreamSearchWindow.this); } }); HorizontalLayout layout = new HorizontalLayout(); layout.addComponent(this.resultsTable); layout.setSizeFull(); layout.setMargin(true); this.resultsPanel.setContent(layout); }
p1.setStyleName("dashboard"); p1.setWidth("90%"); p1.setHeight("90%"); p2.setStyleName("dashboard"); p2.setWidth("90%"); p2.setHeight("90%"); p3.setStyleName("dashboard"); p3.setWidth("90%"); p3.setHeight("90%"); p4.setStyleName("dashboard"); p4.setWidth("90%"); p4.setHeight("90%"); p5.setStyleName("dashboard"); p5.setWidth("90%"); p5.setHeight("90%"); p6.setStyleName("dashboard"); p6.setWidth("90%"); p6.setHeight("90%");
private void createResultsPanel() { this.resultsPanel = new Panel(); this.resultsPanel.setSizeFull(); this.resultsPanel.setStyleName("dashboard"); this.resultsTable = new FilterTable(); this.resultsTable.setFilterBarVisible(true); this.resultsTable.setSizeFull(); this.container = this.buildContainer(); this.resultsTable.setContainerDataSource(this.container); this.resultsTable.addItemClickListener(new ItemClickEvent.ItemClickListener() { @Override public void itemClick(ItemClickEvent itemClickEvent) { flow = (Flow)itemClickEvent.getItemId(); UI.getCurrent().removeWindow(PolicyAssociationFlowSearchWindow.this); } }); HorizontalLayout layout = new HorizontalLayout(); layout.addComponent(this.resultsTable); layout.setSizeFull(); layout.setMargin(true); this.resultsPanel.setContent(layout); }
private void createResultsPanel() { this.resultsPanel = new Panel(); this.resultsPanel.setSizeFull(); this.resultsPanel.setStyleName("dashboard"); this.resultsTable = new FilterTable(); this.resultsTable.setSizeFull(); this.container = buildContainer(); this.resultsTable.setContainerDataSource(container); this.resultsTable.setFilterBarVisible(true); this.resultsTable.addItemClickListener(new ItemClickEvent.ItemClickListener() { @Override public void itemClick(ItemClickEvent itemClickEvent) { module = (Module)itemClickEvent.getItemId(); UI.getCurrent().removeWindow(PolicyAssociationModuleSearchWindow.this); } }); HorizontalLayout layout = new HorizontalLayout(); layout.addComponent(this.resultsTable); layout.setSizeFull(); layout.setMargin(true); this.resultsPanel.setContent(layout); }
shortcutPanel.setStyleName("shortcut-panel"); shortcutPanel.setWidth(null); shortcutPanel.setContent(notification.asVaadinComponent());
this.searchPanel.setStyleName("dashboard");
this.searchPanel.setStyleName("dashboard");
private VerticalLayout buildWidgetEditorTabContent() { I18NSource messages = I18NSource.ThreadUtil.getThreadI18nSource(); VerticalLayout availableWidgetsLayout = new VerticalLayout(); availableWidgetsLayout.setSpacing(true); availableWidgetsLayout.setWidth("100%"); availableWidgetsLayout.addComponent(availableWidgetsPane); VerticalLayout stepLayout = new VerticalLayout(); stepLayout.setWidth("100%"); stepLayout.setSpacing(true); stepLayout.setMargin(true); stepLayout.addComponent(new Label(messages.getMessage("userstep.editor.widgets.instructions"), Label.CONTENT_XHTML)); stepLayout.addComponent(availableWidgetsLayout); Panel treePanel = new Panel(); treePanel.setStyleName(Reindeer.PANEL_LIGHT); treePanel.addComponent(stepTree); treePanel.setWidth("245px"); HorizontalLayout treeAndParamLayout = new HorizontalLayout(); treeAndParamLayout.setWidth("100%"); treeAndParamLayout.setSpacing(true); treeAndParamLayout.addComponent(treePanel); treeAndParamLayout.addComponent(paramPanel); treeAndParamLayout.setExpandRatio(paramPanel, 1.0f); stepLayout.addComponent(treeAndParamLayout); stepLayout.setExpandRatio(treeAndParamLayout, 1.0f); return stepLayout; }
@Override public void openAlert(MessageStyleType type, String title, View body, String okButton, final AlertCallback callback) { final BaseDialog dialog = new LightDialog(); dialog.addStyleName(type.getCssClass()); dialog.addStyleName("alert"); dialog.setCaption(title); CompositeIcon icon = (CompositeIcon) Classes.getClassFactory().newInstance(type.getIconClass()); icon.setStyleName("dialog-icon"); dialog.setHeaderToolbar(icon); dialog.showCloseButton(); dialog.setContent(body.asVaadinComponent()); Panel shortcutPanel = new Panel(); shortcutPanel.setStyleName("shortcut-panel"); shortcutPanel.setHeight(100, Unit.PERCENTAGE); shortcutPanel.setWidth(100, Unit.PERCENTAGE); shortcutPanel.setContent(dialog); final OverlayCloser overlayCloser = openOverlay(new ViewAdapter(shortcutPanel), ModalityLevel.LIGHT); final ShortcutListener escapeShortcut = new ShortcutListener("Escape shortcut", ShortcutAction.KeyCode.ESCAPE, null) { @Override public void handleAction(Object sender, Object target) { callback.onOk(); dialog.closeSelf(); } }; shortcutPanel.addShortcutListener(escapeShortcut); addOkHandler(dialog, okButton, overlayCloser, callback); dialog.addDialogCloseHandler(createCloseHandler(overlayCloser)); }
shortcutPanel.setStyleName("shortcut-panel"); shortcutPanel.setHeight(100, Unit.PERCENTAGE); shortcutPanel.setWidth(100, Unit.PERCENTAGE);
protected Panel createTrueFalsePanel(ConfigurationParameter parameter, Validator validator) paramPanel.setStyleName("dashboard"); paramPanel.setWidth("100%");
if (isShortCutKeysRequired()) { final Panel tablePanel = new Panel(); tablePanel.setStyleName("table-panel"); tablePanel.setHeight(100.0F, Unit.PERCENTAGE); tablePanel.setContent(table);
if (isShortCutKeysRequired()) { final Panel tablePanel = new Panel(); tablePanel.setStyleName("table-panel"); tablePanel.setHeight(100.0F, Unit.PERCENTAGE); tablePanel.setContent(table);
commentsPanel.setStyleName("borderless light"); commentsPanel.setWidth("100%");
} else { Panel p = new Panel(); p.setStyleName(Reindeer.PANEL_LIGHT); p.setWidth("100%"); p.setHeight("240px");