private void createArtifactDetailsMaxView() { artifactDetailsTable.setValue(null); artifactDetailsTable.setSelectable(false); artifactDetailsTable.setMultiSelect(false); artifactDetailsTable.setDragMode(TableDragMode.NONE); artifactDetailsTable.setColumnCollapsingAllowed(true); artifactUploadState.setArtifactDetailsMaximized(Boolean.TRUE); eventBus.publish(this, ArtifactDetailsEvent.MAXIMIZED); }
private void createArtifactDetailsMaxView() { artifactDetailsTable.setValue(null); artifactDetailsTable.setSelectable(false); artifactDetailsTable.setMultiSelect(false); artifactDetailsTable.setDragMode(TableDragMode.NONE); artifactDetailsTable.setColumnCollapsingAllowed(true); artifactUploadState.setArtifactDetailsMaximized(Boolean.TRUE); eventBus.publish(this, ArtifactDetailsEvent.MAXIMIZED); }
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.setSelectable(true); table.setImmediate(true); table.addValueChangeListener(new Property.ValueChangeListener() {
protected void initGroupTable() { groupTable = new Table(); groupTable.setNullSelectionAllowed(false); groupTable.setSelectable(true); groupTable.setMultiSelect(true); groupTable.setSortDisabled(true); groupTable.setWidth(460, UNITS_PIXELS); groupTable.setHeight(275, UNITS_PIXELS); addComponent(groupTable); GroupSelectionQuery query = new GroupSelectionQuery(identityService, userId); LazyLoadingContainer container = new LazyLoadingContainer(query, 30); groupTable.setContainerDataSource(container); groupTable.addContainerProperty("id", String.class, null); groupTable.addContainerProperty("name", String.class, null); groupTable.addContainerProperty("type", String.class, null); }
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); }
/** * Instantiates a new MIB object field. * * @param resourceTypes the available resource types * @param mibGroupEditable true, if the MIB group can be modified */ public MibObjField(final List<String> resourceTypes, boolean mibGroupEditable) { table.addStyleName("light"); table.setVisibleColumns(new Object[] { "oid", "instance", "alias", "type" }); table.setColumnHeaders(new String[] { "OID", "Instance", "Alias", "Type" }); table.setEditable(!isReadOnly()); table.setSelectable(true); table.setHeight("250px"); table.setWidth("100%"); table.setTableFieldFactory(new MibObjFieldFactory(resourceTypes)); if (mibGroupEditable) { toolbar.addComponent(add); toolbar.addComponent(delete); } toolbar.setVisible(table.isEditable()); setValidationVisible(true); }
/** * 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.setSelectable(true); instanceTable.setSortDisabled(false);
table.setColumnExpandRatio("decodes", 1); table.setEditable(!isReadOnly()); table.setSelectable(true); table.setHeight("125px"); table.setWidth("100%");
table.setColumnExpandRatio("vbvalues", 1); table.setEditable(!isReadOnly()); table.setSelectable(true); table.setHeight("125px"); table.setWidth("100%");
processDefinitionTable.setSelectable(true); processDefinitionTable.setNullSelectionAllowed(false); processDefinitionTable.setSortDisabled(true);
protected void initMembersTable() { LazyLoadingQuery query = new GroupMembersQuery(group.getId(), this); if (query.size() > 0) { membersTable = new Table(); membersTable.setWidth(100, UNITS_PERCENTAGE); membersTable.setHeight(400, UNITS_PIXELS); membersTable.setEditable(false); membersTable.setSelectable(false); membersTable.setSortDisabled(false); LazyLoadingContainer container = new LazyLoadingContainer(query, 30); membersTable.setContainerDataSource(container); membersTable.addContainerProperty("id", Button.class, null); membersTable.addContainerProperty("firstName", String.class, null); membersTable.addContainerProperty("lastName", String.class, null); membersTable.addContainerProperty("email", String.class, null); membersTable.addContainerProperty("actions", Component.class, null); membersLayout.addComponent(membersTable); } else { noMembersTable = new Label(i18nManager.getMessage(Messages.GROUP_NO_MEMBERS)); membersLayout.addComponent(noMembersTable); } }
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); }
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); }
processDefinitionTable.setSelectable(true); processDefinitionTable.setNullSelectionAllowed(false); processDefinitionTable.setSortDisabled(true);
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()); }
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()); }