本文整理了Java中javafx.scene.control.TableView.setColumnResizePolicy()
方法的一些代码示例,展示了TableView.setColumnResizePolicy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableView.setColumnResizePolicy()
方法的具体详情如下:
包路径:javafx.scene.control.TableView
类名称:TableView
方法名:setColumnResizePolicy
暂无
代码示例来源:origin: org.codehaus.griffon/griffon-javafx
@Override
public void attachTo(@Nonnull TableView<E> tableView) {
requireNonNull(tableView, ERROR_TABLE_VIEW_NULL);
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
tableView.setItems(source);
tableView.getColumns().addAll(columns);
resizeColumns();
}
代码示例来源:origin: org.copper-engine/copper-monitoring-client
resultTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
代码示例来源:origin: io.github.factoryfx/javafxDataEditing
tableView.setItems(readOnlyObservableList);
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
TableColumn<T, String> test = new TableColumn<>("Data");
test.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().internal().getDisplayText()));
代码示例来源:origin: io.github.factoryfx/javafxDataEditing
@Override
public Node createValueListVisualisation() {
TableView<Data> tableView = new TableView<>();
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
TableColumn<Data, String> test = new TableColumn<>("Data");
test.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().internal().getDisplayText()));
代码示例来源:origin: com.aquafx-project/aquafx
listTable.getColumns().add(firstNameListCol);
listTable.setItems(data);
listTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
listContainer.getChildren().add(listTable);
ListView<String> horizontalList = new ListView<String>();
代码示例来源:origin: io.github.factoryfx/javafxDataEditing
@Override
public Node createContent() {
SplitPane splitPane = new SplitPane();
splitPane.setOrientation(orientation);
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
column = new TableColumn<>("Data");
column.setCellValueFactory(param -> new DataObservableDisplayText(param.getValue()).get());
tableView.getColumns().add(column);
BorderPane borderPaneWrapper = new BorderPane();
borderPaneWrapper.setCenter(tableView);
SplitPane.setResizableWithParent(borderPaneWrapper, Boolean.FALSE);
splitPane.getItems().add(borderPaneWrapper);
Node dataEditorWidget = this.dataEditor.createContent();
SplitPane.setResizableWithParent(dataEditorWidget, Boolean.TRUE);
splitPane.getItems().add(dataEditorWidget);
splitPane.setDividerPositions(dividerPosition);
tableView.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {
dataEditor.edit(newValue);
});
listEditWidget = new BorderPane();
TableControlWidget tableControlWidget= new TableControlWidget<>(tableView, uniformDesign);
Node tableControlWidgetContent = tableControlWidget.createContent();
HBox hBox = new HBox();
hBox.getChildren().addAll(listEditWidget, tableControlWidgetContent);
HBox.setHgrow(tableControlWidgetContent, Priority.ALWAYS);
HBox.setMargin(tableControlWidgetContent, new Insets(0,1,0,0));
borderPaneWrapper.setBottom(hBox);
tableView.setTableMenuButtonVisible(false);
return splitPane;
}
代码示例来源:origin: io.github.factoryfx/javafxDataEditing
TableView<T> table = new TableView<>();
table.getItems().setAll(dataList);
table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
TableColumn<T, String> column = new TableColumn<>();
column.setCellValueFactory(param -> new DataObservableDisplayText(param.getValue()).get());
代码示例来源:origin: io.github.factoryfx/javafxDataEditing
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
tableView.setRowFactory((param) -> new TableRow<>() {
@Override
代码示例来源:origin: org.copper-engine/copper-monitoring-client
resultTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
代码示例来源:origin: io.github.factoryfx/javafxDataEditing
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
TableColumn<T, String> test = new TableColumn<>("test");
test.setCellValueFactory(param -> new SimpleStringProperty(""+param.getValue()));
代码示例来源:origin: org.copper-engine/copper-monitoring-client
TableColumnHelper.setTextOverrunCellFactory(adapterNameIn, OverrunStyle.LEADING_ELLIPSIS);
adapterInputTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
adapterOutputLaunchTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
adapterOutputNotifyTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
代码示例来源:origin: com.aquafx-project/aquafx
listTable.getColumns().add(firstNameListCol);
listTable.setItems(data);
listTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
listContainer.getChildren().add(listTable);
ListView<String> horizontalList = new ListView<String>();
代码示例来源:origin: org.jrebirth.af.showcase/todos
this.table.setPrefHeight(300);
this.table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
this.table.setEditable(true);
代码示例来源:origin: org.jrebirth.af.showcase/todos
this.table.setPrefHeight(300);
this.table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
this.table.setEditable(true);
代码示例来源:origin: com.intuit.karate/karate-core
table = new TableView();
table.setPrefWidth(280);
table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
setCenter(table);
TableColumn nameCol = new TableColumn("Variable");
代码示例来源:origin: com.aquafx-project/aquafx
tableView.getSelectionModel().setCellSelectionEnabled(!rowSelection);
tableView.setTableMenuButtonVisible(false);
if (constrainedResize) tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
tableView.setItems(data);
tableView.getColumns().addAll(nameCol, emailCol, countryCol);
代码示例来源:origin: org.copper-engine/copper-monitoring-client
colorTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
内容来源于网络,如有侵权,请联系作者删除!