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

Tree-/TableCell, TreeCell: editingCell/Item not updated in cell.startEdit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • jfx18
    • 9
    • javafx
    • java9-ea-180

    Description

      Below is a failing test for each. Reason seems to be simply a missing table.edit(newLocation) and tree.edit(treeItem) (as in ListCell)

      The failing tests:

          public void testTableEditStartOnCellHasEditingCell() {
              TableView<TableColumn> control = createEditableTable();
              new StageLoader(control);
              int editIndex = 1;
              IndexedCell cell = getCell(control, editIndex, 0);
              // start edit on cell
              cell.startEdit();
              // test control state
              assertNotNull("editingCell on control must not be null", control.getEditingCell());
          }

          public void testTreeEditStartOnCellHasEditingItem() {
              TreeView<String> control = createEditableTree();
              new StageLoader(control);
              int editIndex = 1;
              IndexedCell cell = getCell(control, editIndex);
              // start edit on cell
              cell.startEdit();
              // test control state
              assertNotNull("editingCell on control must not be null", control.getEditingItem());
          }


      Attachments

        Issue Links

          Activity

            People

              fastegal Jeanette Winzenburg
              fastegal Jeanette Winzenburg
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: