private static Table createArtifactDetailsTable() { final Table detailsTable = new Table(); detailsTable.addStyleName("sp-table"); detailsTable.setImmediate(true); detailsTable.setSizeFull(); detailsTable.setId(UIComponentIdProvider.UPLOAD_ARTIFACT_DETAILS_TABLE); detailsTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); detailsTable.addStyleName(ValoTheme.TABLE_SMALL); return detailsTable; }
private static Table createArtifactDetailsTable() { final Table detailsTable = new Table(); detailsTable.addStyleName("sp-table"); detailsTable.setImmediate(true); detailsTable.setSizeFull(); detailsTable.setId(UIComponentIdProvider.UPLOAD_ARTIFACT_DETAILS_TABLE); detailsTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES); detailsTable.addStyleName(ValoTheme.TABLE_SMALL); return detailsTable; }
protected AbstractSelect createSelectComponent() { table = createList(); // Set non-editable, selectable and full-size table.setEditable(false); table.setImmediate(true); table.setSelectable(true); table.setNullSelectionAllowed(false); table.setSortDisabled(true); table.setSizeFull(); return table; }
public static Table simpleTable(Container dataSource, Object[] visiblePropertyIds, Map<String, ColumnGenerator> customColumns) { Table table = new Table(); table.addStyleName("big striped borderless"); table.setSizeFull(); table.setPageLength(0); table.setImmediate(false); table.setSelectable(false); table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN); table.setColumnCollapsingAllowed(false); table.setSortDisabled(true); if (customColumns != null) { for (Map.Entry<String, ColumnGenerator> entry : customColumns.entrySet()) { table.addGeneratedColumn(entry.getKey(), entry.getValue()); } } table.setContainerDataSource(dataSource); table.setVisibleColumns(visiblePropertyIds); table.setColumnExpandRatio(visiblePropertyIds[visiblePropertyIds.length - 1], 1.0f); return table; }
protected void initEventsTable() { eventTable = new Table(); eventTable.setVisible(false); eventTable.setWidth(100, UNITS_PERCENTAGE); eventTable.setHeight(250, UNITS_PIXELS); eventTable.setEditable(false); eventTable.setImmediate(true); eventTable.setSelectable(true); eventTable.setSortDisabled(false); eventTable.addContainerProperty("type", String.class, null, i18nManager.getMessage(Messages.CRYSTALBALL_EVENT_TYPE), null, Table.ALIGN_LEFT); eventTable.addContainerProperty("executed", String.class, null, i18nManager.getMessage(Messages.CRYSTALBALL_EVENT_EXECUTED), null, Table.ALIGN_LEFT); eventLayout.addComponent(eventTable); }
table.setImmediate(true); table.addValueChangeListener(new Property.ValueChangeListener() { @Override
protected void initMatchingUsersTable() { matchingUsersTable = new Table(); matchingUsersTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN); matchingUsersTable.setSelectable(true); matchingUsersTable.setEditable(false); matchingUsersTable.setImmediate(true); matchingUsersTable.setNullSelectionAllowed(false); matchingUsersTable.setSortDisabled(true); if (multiSelect) { matchingUsersTable.setMultiSelect(true); } matchingUsersTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.USER_16)); matchingUsersTable.setColumnWidth("icon", 16); matchingUsersTable.addContainerProperty("userName", String.class, null); matchingUsersTable.setWidth(300, UNITS_PIXELS); matchingUsersTable.setHeight(200, UNITS_PIXELS); userSelectionLayout.addComponent(matchingUsersTable); }
/** * Creates a new ManageResourceProcessorWindow instance. */ public ManageResourceProcessorWindow() { super("Resource Processors"); setModal(true); setWidth("50em"); setCloseShortcut(KeyCode.ESCAPE); m_artifactsTable = new Table("Available resource processors"); m_artifactsTable.addContainerProperty(PROPERTY_SYMBOLIC_NAME, String.class, null); m_artifactsTable.addContainerProperty(PROPERTY_VERSION, String.class, null); m_artifactsTable.addContainerProperty(PROPERTY_REMOVE, Button.class, null); m_artifactsTable.setSizeFull(); m_artifactsTable.setSelectable(true); m_artifactsTable.setMultiSelect(true); m_artifactsTable.setImmediate(true); m_artifactsTable.setHeight("15em"); VerticalLayout layout = (VerticalLayout) getContent(); layout.setMargin(true); layout.setSpacing(true); layout.addComponent(m_artifactsTable); }
instanceTable.setImmediate(true); instanceTable.setSelectable(true); instanceTable.setSortDisabled(false);
table.setImmediate(true); table.setVisibleColumns(VISIBLE_COLUMNS); table.addListener(new Property.ValueChangeListener() {
processDefinitionTable.setImmediate(true); processDefinitionTable.setSelectable(true); processDefinitionTable.setNullSelectionAllowed(false);
private void buildSelectedTable() { selectedTable = new Table(); selectedTable.setId(SPUIDefinitions.TWIN_TABLE_SELECTED_ID); selectedTable.setSelectable(true); 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); }
groupTable.setImmediate(true); groupTable.setSelectable(true); groupTable.setNullSelectionAllowed(false);
private void buildSelectedTable() { selectedTable = new Table(); selectedTable.setId(SPUIDefinitions.TWIN_TABLE_SELECTED_ID); selectedTable.setSelectable(true); 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); }
managementTable.setImmediate(true); managementTable.setSelectable(true); managementTable.setNullSelectionAllowed(false);
instancesTable.setImmediate(true); instancesTable.setSelectable(true); instancesTable.setSortDisabled(false);
private void buildSourceTable() { sourceTable = new Table(); sourceTable.setId(SPUIDefinitions.TWIN_TABLE_SOURCE_ID); sourceTable.setSelectable(true); 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()); }
processDefinitionTable.setImmediate(true); processDefinitionTable.setSelectable(true); processDefinitionTable.setNullSelectionAllowed(false);
private void buildSourceTable() { sourceTable = new Table(); sourceTable.setId(SPUIDefinitions.TWIN_TABLE_SOURCE_ID); sourceTable.setSelectable(true); 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()); }
instancesTable.setImmediate(true); instancesTable.setSelectable(true); instancesTable.setSortDisabled(false);