Class DockingSelectionModel

java.lang.Object
com.dlsc.gemsfx.docking.DockingSelectionModel

public final class DockingSelectionModel extends Object
The selected dockable in each nonempty tab group of a docking context. The selected-items list is observable and cannot be modified directly.
  • Method Details

    • getSelectedItems

      public javafx.collections.ObservableList<Dockable> getSelectedItems()
      Returns the selected dockables across all panes, including floating panes.
      Returns:
      the unmodifiable observable selected-items list
    • isSelected

      public boolean isSelected(Dockable dockable)
      Tests whether the dockable is selected in its tab group.
      Parameters:
      dockable - the dockable
      Returns:
      whether the dockable is selected
    • select

      public void select(Dockable dockable)
      Selects the dockable in its group and makes it active in its pane. Other groups retain their selections.
      Parameters:
      dockable - an open dockable in this context
      Throws:
      IllegalArgumentException - if the dockable is not open in this context
      IllegalStateException - if called off the JavaFX application thread