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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • 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

          Activity

            People

            Assignee:
            aghaisas Ajit Ghaisas
            Reporter:
            fastegal Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: