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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: openjfx18
    • Component/s: javafx
    • Environment:

      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

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

                Dates

                Created:
                Updated:
                Resolved: