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

TableView: column remove must cleanup sortOrder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: