本文整理汇总了Java中javafx.scene.control.cell.ProgressBarTableCell类的典型用法代码示例。如果您正苦于以下问题:Java ProgressBarTableCell类的具体用法?Java ProgressBarTableCell怎么用?Java ProgressBarTableCell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProgressBarTableCell类属于javafx.scene.control.cell包,在下文中一共展示了ProgressBarTableCell类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initialize
import javafx.scene.control.cell.ProgressBarTableCell; //导入依赖的package包/类
public void initialize() {
solverTable.setItems(viewModel.solverTableItems());
activeColumn.setCellValueFactory(new PropertyValueFactory<>("active"));
activeColumn.setCellFactory(CheckBoxTableCell.forTableColumn(activeColumn));
nameColumn.setCellValueFactory(new PropertyValueFactory<>("name"));
averageColumn.setCellValueFactory(new PropertyValueFactory<>("average"));
medianColumn.setCellValueFactory(new PropertyValueFactory<>("median"));
maxColumn.setCellValueFactory(new PropertyValueFactory<>("max"));
minColumn.setCellValueFactory(new PropertyValueFactory<>("min"));
progressColumn.setCellValueFactory(new PropertyValueFactory<>("progress"));
progressColumn.setCellFactory(ProgressBarTableCell.forTableColumn());
sampleSpinner.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(viewModel.getMinSampleSize(), viewModel.getMaxSampleSize(), viewModel.getDefaultSampleSize(), viewModel.getStepSize()));
viewModel.sampleSize().bind(sampleSpinner.valueProperty());
}
开发者ID:lestard,项目名称:ColorPuzzleFX,代码行数:17,代码来源:BenchmarkView.java
示例2: initProcessTable
import javafx.scene.control.cell.ProgressBarTableCell; //导入依赖的package包/类
private void initProcessTable() {
ObservableList<TableColumn<Process, ?>> processCols = processTable.getColumns();
processCols.get(0).setCellValueFactory(new PropertyValueFactory<>("status"));
TableColumn<Process,Double> processCol = new TableColumn<>("进度");
processCol.setPrefWidth(475);
processCol.setCellValueFactory(new PropertyValueFactory<>("progress"));
processCol.setCellFactory(ProgressBarTableCell.forTableColumn());
processCols.set(1,processCol);
processCols.get(2).setCellValueFactory(new PropertyValueFactory<>("percent"));
processCols.get(3).setCellValueFactory(new PropertyValueFactory<>("lastUpdate"));
}
开发者ID:cuiods,项目名称:WIFIProbe,代码行数:12,代码来源:IndexController.java
示例3: testGetProgressBarTableCellAdjuster
import javafx.scene.control.cell.ProgressBarTableCell; //导入依赖的package包/类
@Test
public void testGetProgressBarTableCellAdjuster() {
Adjuster adjuster = Adjuster.getAdjuster(ProgressBarTableCell.class);
assertThat(adjuster, is(instanceOf(ControlAdjuster.class)));
assertThat(adjuster.getNodeClass(), is(sameInstance(Control.class)));
}
开发者ID:yumix,项目名称:javafx-dpi-scaling,代码行数:8,代码来源:AdjusterTest.java
示例4: initialize
import javafx.scene.control.cell.ProgressBarTableCell; //导入依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void initialize(URL arg0, ResourceBundle arg1) {
progressTotalColumn.setCellValueFactory(new PropertyValueFactory("totalProgress"));
progressTotalColumn.setCellFactory(ProgressBarTableCell.<DriveTaskModel>forTableColumn());
progressCurrentColumn.setCellValueFactory(new PropertyValueFactory("currentProgress"));
progressCurrentColumn.setCellFactory(ProgressBarTableCell.<DriveTaskModel>forTableColumn());
statusColumn.setCellValueFactory(new PropertyValueFactory("status"));
optionsColumn.setCellValueFactory(new PropertyValueFactory("options"));
optionsColumn.setCellFactory(optionButtonColumnCellFactory);
}
开发者ID:roikku,项目名称:drive-uploader,代码行数:16,代码来源:DriveTaskPanelViewController.java
示例5: call
import javafx.scene.control.cell.ProgressBarTableCell; //导入依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public TableCell<S, T> call(final TableColumn<S, T> arg0) {
logger.info("Cell factory");
return new ProgressBarTableCell () ;
}
开发者ID:roikku,项目名称:drive-uploader,代码行数:8,代码来源:CellDriveTaskProgressFactory.java
示例6: start
import javafx.scene.control.cell.ProgressBarTableCell; //导入依赖的package包/类
@Override
public void start(Stage primaryStage) {
TableView<TestTask> table = new TableView<TestTask>();
Random rng = new Random();
for (int i = 0; i < 20; i++) {
table.getItems().add(new TestTask(rng.nextInt(3000) + 2000, rng.nextInt(30) + 20));
}
TableColumn<TestTask, String> statusCol = new TableColumn("Status");
statusCol.setCellValueFactory(new PropertyValueFactory<>("message"));
statusCol.setPrefWidth(75);
TableColumn<TestTask, Double> progressCol = new TableColumn("Progress");
progressCol.setCellValueFactory(new PropertyValueFactory<>(
"progress"));
progressCol
.setCellFactory(ProgressBarTableCell.<TestTask> forTableColumn());
table.getColumns().addAll(statusCol, progressCol);
BorderPane root = new BorderPane();
root.setCenter(table);
primaryStage.setScene(new Scene(root));
primaryStage.show();
ExecutorService executor = Executors.newFixedThreadPool(table.getItems().size(), new ThreadFactory() {
@Override
public Thread newThread(Runnable r) {
Thread t = new Thread(r);
t.setDaemon(true);
return t;
}
});
for (TestTask task : table.getItems()) {
executor.execute(task);
}
}
开发者ID:cancerian0684,项目名称:dli-downloader,代码行数:40,代码来源:ProgressBarTableCellTest.java
示例7: initGUI
import javafx.scene.control.cell.ProgressBarTableCell; //导入依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
private void initGUI(Stage stage){
BorderPane root = new BorderPane();
stage.setTitle(windowTitle);
Scene scene = new Scene(root,width,height);
stage.setMinWidth(width);
stage.setMinHeight(height);
stage.setScene(scene);
stage.sizeToScene();
ToolBar toolBar = new ToolBar(); //Creates our tool-bar to hold the buttons
topContainer.getChildren().addAll(toolBar);
root.setTop(topContainer);
addbtn = new Button();
playPausebtn = new Button();
stopbtn = new Button();
/*** Toolbar ***/
Image playimage = new Image(getClass().getResourceAsStream("images/add.png"));
addbtn.setGraphic(new ImageView(playimage));
Image pauseimage = new Image(getClass().getResourceAsStream("images/pause.png"));
playPausebtn.setGraphic(new ImageView(pauseimage));
Image stopimage = new Image(getClass().getResourceAsStream("images/stop.png"));
stopbtn.setGraphic(new ImageView(stopimage));
toolBar.getItems().addAll(addbtn,playPausebtn,stopbtn);
toolBar.getStylesheets().add("css/downloadboxStyle.css");
//list of downloads
table.setEditable(true);
/*** Information Table ***/
fileNameCol = new TableColumn("File Name");
fileNameCol.setPrefWidth(120);
sizeCol = new TableColumn("Size");
sizeCol.setPrefWidth(100);
resumeCapCol = new TableColumn("Resumable");
resumeCapCol.setPrefWidth(100);
statusCol = new TableColumn("Status");
statusCol.setPrefWidth(100);
transferRateCol = new TableColumn("Transfer Rate");
transferRateCol.setPrefWidth(100);
downloadedCol = new TableColumn("Downloaded");
downloadedCol.setPrefWidth(120);
percentageCol = new TableColumn("Percentage");
percentageCol.setPrefWidth(120);
progressCol = new TableColumn("Progress");
progressCol.setPrefWidth(200);
progressCol.setCellValueFactory(new PropertyValueFactory<DownloadUnit, Double>("progress"));
progressCol.setCellFactory(ProgressBarTableCell.<DownloadUnit> forTableColumn());
table.getColumns().addAll(fileNameCol, sizeCol, downloadedCol, percentageCol, progressCol, transferRateCol, resumeCapCol, statusCol);
table.setItems(downloadList);
topContainer.getChildren().addAll(table);
stage.setScene(scene);
}
开发者ID:activatedgeek,项目名称:DownloadPlus,代码行数:70,代码来源:Main.java
示例8: initSolvencyCol
import javafx.scene.control.cell.ProgressBarTableCell; //导入依赖的package包/类
private void initSolvencyCol() {
solvencyCol.setCellValueFactory(new PropertyValueFactory<Person, Double>("solvency"));
solvencyCol.setCellFactory(ProgressBarTableCell.forTableColumn());
}
开发者ID:sialcasa,项目名称:jfxtables,代码行数:5,代码来源:PersonTable.java
注:本文中的javafx.scene.control.cell.ProgressBarTableCell类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论