本文整理了Java中javafx.scene.control.TableColumn.setMinWidth()
方法的一些代码示例,展示了TableColumn.setMinWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumn.setMinWidth()
方法的具体详情如下:
包路径:javafx.scene.control.TableColumn
类名称:TableColumn
方法名:setMinWidth
暂无
代码示例来源:origin: torakiki/pdfsam
@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;
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
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);
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
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);
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
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;
}
代码示例来源:origin: com.aquafx-project/aquafx
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);
代码示例来源:origin: org.jrebirth.af.showcase/todos
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);
代码示例来源:origin: org.jrebirth.af.showcase/todos
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);
代码示例来源:origin: com.aquafx-project/aquafx
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"));
代码示例来源:origin: com.aquafx-project/aquafx
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);
代码示例来源:origin: com.intuit.karate/karate-core
nameCol.setCellFactory(c -> new StringTooltipCell());
TableColumn typeCol = new TableColumn("Type");
typeCol.setMinWidth(45);
typeCol.setMaxWidth(60);
typeCol.setCellValueFactory(new PropertyValueFactory("type"));
代码示例来源:origin: com.aquafx-project/aquafx
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) {
代码示例来源:origin: com.aquafx-project/aquafx
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) {
内容来源于网络,如有侵权,请联系作者删除!