List of usage examples for com.vaadin.ui.themes ValoTheme TABLE_NO_VERTICAL_LINES
String TABLE_NO_VERTICAL_LINES
To view the source code for com.vaadin.ui.themes ValoTheme TABLE_NO_VERTICAL_LINES.
Click Source Link
From source file:org.eclipse.hawkbit.ui.distributions.disttype.DistributionSetTypeSoftwareModuleSelectLayout.java
License:Open Source License
private void buildSelectedTable() { selectedTable = new Table(); selectedTable.setId(SPUIDefinitions.TWIN_TABLE_SELECTED_ID); selectedTable.setSelectable(true);// w w w. j av a 2s. c om selectedTable.setMultiSelect(true); selectedTable.setSortEnabled(false); selectedTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES); selectedTable.addStyleName(ValoTheme.TABLE_NO_STRIPES); selectedTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); selectedTable.addStyleName(ValoTheme.TABLE_SMALL); selectedTable.addStyleName("dist_type_twin-table"); selectedTable.setSizeFull(); createSelectedTableContainer(); selectedTable.setContainerDataSource(selectedTableContainer); addTooltTipToSelectedTable(); selectedTable.setImmediate(true); selectedTable.setVisibleColumns(DIST_TYPE_NAME, DIST_TYPE_MANDATORY); selectedTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.selected"), STAR); selectedTable.setColumnExpandRatio(DIST_TYPE_NAME, 0.75F); selectedTable.setColumnExpandRatio(DIST_TYPE_MANDATORY, 0.25F); selectedTable.setRequired(true); }
From source file:org.eclipse.hawkbit.ui.distributions.disttype.DistributionSetTypeSoftwareModuleSelectLayout.java
License:Open Source License
private void buildSourceTable() { sourceTable = new Table(); sourceTable.setId(SPUIDefinitions.TWIN_TABLE_SOURCE_ID); sourceTable.setSelectable(true);/*from w ww .jav a 2 s .co m*/ sourceTable.setMultiSelect(true); sourceTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES); sourceTable.addStyleName(ValoTheme.TABLE_NO_STRIPES); sourceTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); sourceTable.addStyleName(ValoTheme.TABLE_SMALL); sourceTable.setImmediate(true); sourceTable.setSizeFull(); sourceTable.addStyleName("dist_type_twin-table"); sourceTable.setSortEnabled(false); sourceTableContainer = new IndexedContainer(); sourceTableContainer.addContainerProperty(DIST_TYPE_NAME, String.class, ""); sourceTableContainer.addContainerProperty(DIST_TYPE_DESCRIPTION, String.class, ""); sourceTable.setContainerDataSource(sourceTableContainer); sourceTable.setVisibleColumns(DIST_TYPE_NAME); sourceTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.available")); sourceTable.setColumnExpandRatio(DIST_TYPE_NAME, 1.0F); createSourceTableData(); addTooltip(); sourceTable.select(sourceTable.firstItemId()); }
From source file:org.eclipse.hawkbit.ui.filtermanagement.CreateOrUpdateFilterTable.java
License:Open Source License
CreateOrUpdateFilterTable(final VaadinMessageSource i18n, final UIEventBus eventBus, final FilterManagementUIState filterManagementUIState) { this.i18n = i18n; this.filterManagementUIState = filterManagementUIState; this.eventBus = eventBus; setStyleName("sp-table"); setSizeFull();/*from www.j av a 2 s . co m*/ setImmediate(true); setHeight(100.0F, Unit.PERCENTAGE); addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); addStyleName(ValoTheme.TABLE_SMALL); setColumnCollapsingAllowed(true); addCustomGeneratedColumns(); restoreOnLoad(); populateTableData(); setId(UIComponentIdProvider.CUSTOM_FILTER_TARGET_TABLE_ID); setSelectable(false); eventBus.subscribe(this); setItemDescriptionGenerator(new AssignInstalledDSTooltipGenerator()); }
From source file:org.eclipse.hawkbit.ui.filtermanagement.DistributionSetSelectTable.java
License:Open Source License
DistributionSetSelectTable(final VaadinMessageSource i18n, final UIEventBus eventBus, final ManageDistUIState manageDistUIState) { this.i18n = i18n; this.manageDistUIState = manageDistUIState; setStyleName("sp-table"); setSizeFull();/*from ww w .j a v a2 s .c o m*/ setSelectable(true); setMultiSelect(false); setImmediate(true); addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); addStyleName(ValoTheme.TABLE_SMALL); populateTableData(); setColumnCollapsingAllowed(false); setColumnProperties(); setId(UIComponentIdProvider.DIST_SET_SELECT_TABLE_ID); eventBus.subscribe(this); }
From source file:org.eclipse.hawkbit.ui.filtermanagement.TargetFilterTable.java
License:Open Source License
public TargetFilterTable(final VaadinMessageSource i18n, final UINotification notification, final UIEventBus eventBus, final FilterManagementUIState filterManagementUIState, final TargetFilterQueryManagement targetFilterQueryManagement, final TargetManagement targetManagement, final SpPermissionChecker permChecker) { this.i18n = i18n; this.notification = notification; this.eventBus = eventBus; this.filterManagementUIState = filterManagementUIState; this.targetFilterQueryManagement = targetFilterQueryManagement; this.permChecker = permChecker; this.dsSelectWindow = new DistributionSetSelectWindow(i18n, eventBus, notification, targetManagement, targetFilterQueryManagement); setStyleName("sp-table"); setSizeFull();//from w w w.j a va 2 s . co m setImmediate(true); setHeight(100.0F, Unit.PERCENTAGE); addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); addStyleName(ValoTheme.TABLE_SMALL); addCustomGeneratedColumns(); populateTableData(); setColumnCollapsingAllowed(true); setColumnProperties(); setId(UIComponentIdProvider.TARGET_FILTER_TABLE_ID); eventBus.subscribe(this); }
From source file:org.eclipse.hawkbit.ui.management.actionhistory.ActionHistoryTable.java
License:Open Source License
private void initializeTableSettings() { setId(UIComponentIdProvider.ACTION_HISTORY_TABLE_ID); setSelectable(false);/*from w w w. j a v a2 s. c o m*/ setMultiSelect(false); setSortEnabled(true); setColumnReorderingAllowed(true); setHeight(100.0F, Unit.PERCENTAGE); setWidth(100.0F, Unit.PERCENTAGE); setImmediate(true); setStyleName("sp-table"); addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); addStyleName(ValoTheme.TABLE_SMALL); setColumnAlignment(SPUIDefinitions.ACTION_HIS_TBL_FORCED, Align.CENTER); setColumnAlignment(SPUIDefinitions.ACTION_HIS_TBL_STATUS, Align.CENTER); setColumnAlignment(SPUIDefinitions.ACTIONS_COLUMN, Align.CENTER); // listeners for child addExpandListener(event -> { expandParentActionRow(event.getItemId()); managementUIState.getExpandParentActionRowId().add(event.getItemId()); }); addCollapseListener(event -> { collapseParentActionRow(event.getItemId()); managementUIState.getExpandParentActionRowId().remove(event.getItemId()); }); }
From source file:org.ikasan.dashboard.ui.framework.component.DashboardTable.java
License:BSD License
public DashboardTable(String caption) { setCaption(caption);// ww w. ja v a 2 s .co m addStyleName(ValoTheme.TABLE_BORDERLESS); addStyleName(ValoTheme.TABLE_NO_STRIPES); addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); addStyleName(ValoTheme.TABLE_SMALL); setSortEnabled(false); setRowHeaderMode(RowHeaderMode.INDEX); setSizeFull(); }
From source file:org.ikasan.dashboard.ui.monitor.component.MonitorPanel.java
License:BSD License
protected FilterTable buildFilterTable() { this.filterTable = new FilterTable(this.server.getName() + " Flow States"); filterTable.setSizeFull();/* ww w .j a v a2s . c o m*/ filterTable.setContainerDataSource(buildContainer()); filterTable.setFilterBarVisible(true); filterTable.addStyleName(ValoTheme.TABLE_BORDERLESS); filterTable.addStyleName(ValoTheme.TABLE_NO_STRIPES); filterTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); filterTable.addStyleName(ValoTheme.TABLE_SMALL); filterTable.setSizeFull(); filterTable.setImmediate(true); filterTable.addActionHandler(this); filterTable.setCellStyleGenerator(new CustomTable.CellStyleGenerator() { @Override public String getStyle(CustomTable source, Object itemId, Object propertyId) { Flow flow = (Flow) itemId; String state = stateMap.get(flow.getModule().getName() + "-" + flow.getName()); if (propertyId == null) { // Styling for row if (state != null && state.equals(RUNNING)) { return "ikasan-green-small"; } else if (state != null && state.equals(RECOVERING)) { return "ikasan-orange-small"; } else if (state != null && state.equals(STOPPED)) { return "ikasan-red-small"; } else if (state != null && state.equals(STOPPED_IN_ERROR)) { return "ikasan-red-small"; } else if (state != null && state.equals(PAUSED)) { return "ikasan-indigo-small"; } } if (state != null && state.equals(RUNNING)) { return "ikasan-green-small"; } else if (state != null && state.equals(RECOVERING)) { return "ikasan-orange-small"; } else if (state != null && state.equals(STOPPED)) { return "ikasan-red-small"; } else if (state != null && state.equals(STOPPED_IN_ERROR)) { return "ikasan-red-small"; } else if (state != null && state.equals(PAUSED)) { return "ikasan-indigo-small"; } return "ikasan-small"; } }); return filterTable; }
From source file:org.openthinclient.web.pkgmngr.ui.InstallationPlanSummaryDialog.java
/** * Creates a table with datasource of IndexedContainer * @return the Grid for InstallationSummary */// w ww . ja va2 s.c om private Grid<InstallationSummary> createTable(GridTypes type) { Grid<InstallationSummary> summary = new Grid<>(); summary.setDataProvider(DataProvider.ofCollection(Collections.EMPTY_LIST)); summary.setSelectionMode(Grid.SelectionMode.NONE); summary.addColumn(InstallationSummary::getPackageName) .setCaption(mc.getMessage(ConsoleWebMessages.UI_PACKAGEMANAGER_PACKAGE_NAME)); summary.addColumn(InstallationSummary::getPackageVersion) .setCaption(mc.getMessage(ConsoleWebMessages.UI_PACKAGEMANAGER_PACKAGE_VERSION)); if (type == GridTypes.INSTALL_UNINSTALL && !packageManagerOperation.hasPackagesToUninstall()) { // license column summary.addComponentColumn(is -> { if (is.getLicense() != null) { Button button = new Button( mc.getMessage(ConsoleWebMessages.UI_PACKAGEMANAGER_PACKAGE_LICENSE_SHOW)); button.addClickListener(click -> { // licence already clicked, re-set button caption licenceButtons.stream().filter(b -> !b.equals(button)).forEach(b -> { if (b.getCaption().equals( mc.getMessage(ConsoleWebMessages.UI_PACKAGEMANAGER_PACKAGE_LICENSE_HIDE))) { b.setCaption( mc.getMessage(ConsoleWebMessages.UI_PACKAGEMANAGER_PACKAGE_LICENSE_SHOW)); } }); // display licence if (button.getCaption() .equals(mc.getMessage(ConsoleWebMessages.UI_PACKAGEMANAGER_PACKAGE_LICENSE_SHOW))) { licenceTextArea.setVisible(true); licenceTextArea.setValue(is.getLicense()); } else { licenceTextArea.setVisible(false); } button.setCaption(licenceTextArea.isVisible() ? mc.getMessage(ConsoleWebMessages.UI_PACKAGEMANAGER_PACKAGE_LICENSE_HIDE) : mc.getMessage(ConsoleWebMessages.UI_PACKAGEMANAGER_PACKAGE_LICENSE_SHOW)); }); button.addStyleName("package_install_summary_display_license_button"); licenceButtons.add(button); return button; } else { return null; } }).setCaption(mc.getMessage(ConsoleWebMessages.UI_PACKAGEMANAGER_PACKAGE_LICENSE)); } summary.addStyleName(ValoTheme.TABLE_BORDERLESS); summary.addStyleName(ValoTheme.TABLE_NO_HEADER); summary.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); summary.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES); summary.setHeightMode(HeightMode.ROW); return summary; }