@Override public TableColumn<SelectionTableRowData, PdfDescriptorLoadingStatus> getTableColumn() { TableColumn<SelectionTableRowData, PdfDescriptorLoadingStatus> tableColumn = new TableColumn<>(getColumnTitle()); tableColumn.setCellFactory(cellFactory()); tableColumn.setCellValueFactory(cellValueFactory()); tableColumn.setComparator(null); tableColumn.setSortable(false); tableColumn.setMaxWidth(26); tableColumn.setMinWidth(26); return tableColumn; }
b.getString("DirectoryViewSkin_Name")); //$NON-NLS-1$ c.setPrefWidth(400); c.setMinWidth(400); c.setCellFactory((co) -> new NameTableCell()); c.setCellValueFactory((cdf) -> new SimpleObjectProperty<>(cdf c.setMinWidth(100); c.setCellFactory((co) -> new LastModifiedCell()); c.setCellValueFactory((cdf) -> cdf.getValue() }); c.setMinWidth(100); this.tableView.getColumns().add(c);
b.getString("DirectoryViewSkin_Name")); //$NON-NLS-1$ c.setPrefWidth(400); c.setMinWidth(400); c.setCellFactory((co) -> new NameTableCell()); c.setCellValueFactory((cdf) -> new SimpleObjectProperty<>(cdf c.setMinWidth(100); c.setCellFactory((co) -> new LastModifiedCell()); c.setCellValueFactory((cdf) -> cdf.getValue() }); c.setMinWidth(100); t.getColumns().add(c);
private TableColumn buildRootColumn() { final TableColumn t = new TableColumn(); // cell value factory t.setCellValueFactory(param -> { if (((CellDataFeatures) param).getValue() instanceof OperationData) { final OperationData operationData = (OperationData) ((CellDataFeatures) param).getValue(); final SimpleObjectProperty<OperationData> op = new SimpleObjectProperty(); op.set(operationData); return op; } return null; }); t.setPrefWidth(600); t.setMinWidth(600); // cell factory t.setCellFactory(arg0 -> new FlowTableCell()); return t; }
listTable.setPrefWidth(150); TableColumn<Person, String> firstNameListCol = new TableColumn<Person, String>("First Name"); firstNameListCol.setMinWidth(100); firstNameListCol.setCellValueFactory(new PropertyValueFactory<Person, String>("firstName")); listTable.getColumns().add(firstNameListCol);
doneColumn.setPrefWidth(40); doneColumn.setMaxWidth(40); doneColumn.setMinWidth(40); doneColumn.setCellValueFactory(cdf -> cdf.getValue().pDone()); textColumn.setId(TEXT_COLUMN); textColumn.setPrefWidth(200); textColumn.setMinWidth(100); textColumn.setEditable(true); textColumn.setCellValueFactory(this::getColumnContent);
doneColumn.setPrefWidth(40); doneColumn.setMaxWidth(40); doneColumn.setMinWidth(40); doneColumn.setCellValueFactory(cdf -> cdf.getValue().pDone()); textColumn.setId(TEXT_COLUMN); textColumn.setPrefWidth(200); textColumn.setMinWidth(100); textColumn.setEditable(true); textColumn.setCellValueFactory(this::getColumnContent);
firstEmailCol.setMinWidth(200); firstEmailCol.setCellValueFactory(new PropertyValueFactory<Person, String>("primaryEmail")); TableColumn<Person, String> secondEmailCol = new TableColumn<Person, String>("Secondary"); secondEmailCol.setMinWidth(200); secondEmailCol.setCellValueFactory(new PropertyValueFactory<Person, String>("secondaryEmail"));
listTable.setPrefWidth(150); TableColumn<Person, String> firstNameListCol = new TableColumn<Person, String>("First Name"); firstNameListCol.setMinWidth(100); firstNameListCol.setCellValueFactory(new PropertyValueFactory<Person, String>("firstName")); listTable.getColumns().add(firstNameListCol);
nameCol.setCellFactory(c -> new StringTooltipCell()); TableColumn typeCol = new TableColumn("Type"); typeCol.setMinWidth(45); typeCol.setMaxWidth(60); typeCol.setCellValueFactory(new PropertyValueFactory("type"));
emailCol = new TableColumn<Person, String>(); emailCol.setText("Email"); emailCol.setMinWidth(200); emailCol.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<Person, String>, ObservableValue<String>>() { public ObservableValue<String> call(TableColumn.CellDataFeatures<Person, String> p) {
emailCol = new TableColumn<Person, String>(); emailCol.setText("Email"); emailCol.setMinWidth(200); emailCol.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<Person, String>, ObservableValue<String>>() { public ObservableValue<String> call(TableColumn.CellDataFeatures<Person, String> p) {