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

Provide an implementation of ReorderableObservableList

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Implementing a custom control often requires reordering the items in a backing list to support drag-and-drop functionality. For instance, JavaFX utilizes the TabObservableList to reorder tabs without removing and adding them back. However, users are currently unable to replicate same (permutation) behavior because the necessary classes, starting with com.sun.javafx.collections.ObservableListWrapper, are private.

      Even the SortableList interface is private, which means that implementing custom sortable lists to use with FXCollections.sort() are not available to users.

      Please, provide an implementation of ReorderableObservableList#reorder(fromIndex, toIndex) or move ObservableListWrapper, along with its dependencies, to the public API. The latter would enable users to implement custom list operations, such as reordering.


            kcr Kevin Rushforth
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: