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

TableView: column remove must cleanup sortOrder

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • fx2.0
    • fx2.0
    • javafx
    • fx-beta-b34

    Description

          @Test
          public void testSortOrderCleanup() {
              ObservableList<ObservablePerson> persons = ObservablePerson.createFXPersonList();
              TableView<ObservablePerson> table = new TableView<ObservablePerson>(persons);
              TableColumn<String> first = new TableColumn<String>("first");
              first.setProperty("firstName");
              TableColumn<String> second = new TableColumn<String>("second");
              second.setProperty("lastName");
              table.getColumns().addAll(first, second);
              table.getSortOrder().setAll(first, second);
              table.getColumns().remove(first);
              assertEquals(false, table.getSortOrder().contains(first));
          }

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            fastegal Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: