Class FocusObservableList<T extends javafx.scene.Node>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
javafx.collections.ObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.FocusObservableList<T>
Type Parameters:
T - the list element type
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, javafx.beans.Observable, javafx.collections.ObservableList<T>

public class FocusObservableList<T extends javafx.scene.Node> extends javafx.collections.ObservableListBase<T>
Maintains an ordered list of focused elements. List is ordered by last focus. When focus is transferred, a list data changed event is fired, spanning from 0 to the original index of the new focus owner. Thus all 'add' and 'remove' events correspond to a true addition/removal.
  • Constructor Details

    • FocusObservableList

      public FocusObservableList(Collection<? extends T> pNodes)
  • Method Details

    • get

      public T get(int pIdx)
      Specified by:
      get in interface List<T extends javafx.scene.Node>
      Specified by:
      get in class AbstractList<T extends javafx.scene.Node>
    • size

      public int size()
      Specified by:
      size in interface Collection<T extends javafx.scene.Node>
      Specified by:
      size in interface List<T extends javafx.scene.Node>
      Specified by:
      size in class AbstractCollection<T extends javafx.scene.Node>