protected void addContainerProperties() { table.addContainerProperty("type", Embedded.class, null); table.setColumnWidth("type", 16); table.addContainerProperty("name", Component.class, null); table.addContainerProperty("delete", Embedded.class, null); table.setColumnWidth("delete", 16); }
m_fileTable.setColumnWidth(expandCol, getAlternativeWidthForExpandingColumns(expandCol));
protected Table initRelatedContentTable() { Table table = new Table(); table.setWidth(100, UNITS_PERCENTAGE); table.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_LIST); // Invisible by default, only shown when attachments are present table.setVisible(false); table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN); table.addContainerProperty("type", Embedded.class, null); table.setColumnWidth("type", 16); table.addContainerProperty("name", Component.class, null); relatedContentLayout.addComponent(table); return table; }
@Override protected Table createList() { final Table tableList = new Table(); // Listener to change right panel when clicked on a task tableList.addListener(new Property.ValueChangeListener() { private static final long serialVersionUID = 8811553575319455854L; public void valueChange(ValueChangeEvent event) { // The itemId of the table list is the tableName String tableName = (String) event.getProperty().getValue(); setDetailComponent(new DatabaseDetailPanel(tableName)); // Update URL ExplorerApp.get().setCurrentUriFragment( new UriFragment(DatabaseNavigator.TABLE_URI_PART, tableName)); } }); // Create column headers tableList.addContainerProperty("icon", Embedded.class, null); tableList.setColumnWidth("icon", 22); tableList.addContainerProperty("tableName", String.class, null); tableList.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN); return tableList; }
String name = column.getProperty().getName(); if (info.width() >= 0) { table.setColumnWidth(name, info.width());
m_fileTable.setColumnWidth(visibleProp, visibleProp.getColumnWidth());
selectedUsersTable.setColumnWidth("icon", 16); selectedUsersTable.setColumnWidth("icon", 16);
reportTable.setColumnWidth("icon", 22);
reportTable.setColumnWidth("icon", 22);
@Override protected Table createList() { taskTable = new Table(); taskTable.addStyleName(ExplorerLayout.STYLE_TASK_LIST); taskTable.addStyleName(ExplorerLayout.STYLE_SCROLLABLE); // Listener to change right panel when clicked on a task taskTable.addListener(getListSelectionListener()); this.lazyLoadingQuery = createLazyLoadingQuery(); this.taskListContainer = new LazyLoadingContainer(lazyLoadingQuery, 30); taskTable.setContainerDataSource(taskListContainer); // Create column header taskTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.TASK_22)); taskTable.setColumnWidth("icon", 22); taskTable.addContainerProperty("name", String.class, null); taskTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN); return taskTable; }
processInstanceTable.setColumnWidth("icon", 22);
table.setColumnWidth("icon", 22);
userTable.setColumnWidth("icon", 22); userTable.addContainerProperty("name", String.class, null); userTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
jobTable.setColumnWidth("icon", 22);
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); }
deploymentTable.setColumnWidth("icon", 22);
processDefinitionTable.setColumnWidth("icon", 22);
groupTable.setColumnWidth("icon", 22); groupTable.addContainerProperty("name", String.class, null); groupTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
processDefinitionTable.setColumnWidth("icon", 22);
attachmentTypes.setColumnWidth("type", 16); attachmentTypes.addContainerProperty("name", String.class, null);