Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118746

When progress bar factory is applied, empty rows are filled with progress bars in indeterminate state.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • 8.0b101, win8.

      When I set column cell factory to be

      TableColumn<DataItem, Double> tableProgressBarColumn = new TableColumn<DataItem, Double>();
                                  tableProgressBarColumn.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<DataItem, Double>, ObservableValue<Double>>() {
                                      public ObservableValue<Double> call(TableColumn.CellDataFeatures<DataItem, Double> p) {
                                          return (ObservableValue) p.getValue().progressBarValue;
                                      }
                                  });
                                  tableProgressBarColumn.setCellFactory(ProgressBarTableCell.<DataItem>forTableColumn());

      I see, that last rows have progress bars in indeterminate state. If I remove data from TableView, amount of progress bars in indeterminate state increases.

      RULE ControlsAutomatedTestSuite/javafx/scene/control/test/cell/TableCellsTest/progressBarCellFactoryTest Exception java.lang.AssertionError: Amount of progress bars expected:<11> but was:<10>

      RULE ControlsAutomatedTestSuite/javafx/scene/control/test/cell/TreeTableCellsTest/progressBarCellFactoryTest Exception java.lang.AssertionError: Amount of progress bars expected:<11> but was:<10>

            jgiles Jonathan Giles
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: