Class ObservableSubList<T>

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

public class ObservableSubList<T> extends javafx.collections.ObservableListBase<T>
Decorates another list while skipping first x items and limiting size to y. TODO: consider subclassing TransformationList.
  • Property Details

  • Constructor Details

    • ObservableSubList

      public ObservableSubList(javafx.collections.ObservableList<? extends T> pDelegate)
    • ObservableSubList

      public ObservableSubList(javafx.collections.ObservableList<? extends T> pDelegate, int pSkip)
    • ObservableSubList

      public ObservableSubList(javafx.collections.ObservableList<? extends T> pDelegate, int pSkip, Integer pLimit)
  • Method Details

    • skipProperty

      public javafx.beans.property.IntegerProperty skipProperty()
      See Also:
    • getSkip

      public int getSkip()
      Gets the value of the property skip.
      Property description:
    • setSkip

      public void setSkip(int pSkip)
      Sets the value of the property skip.
      Property description:
    • limitProperty

      public javafx.beans.property.ObjectProperty<Integer> limitProperty()
      See Also:
    • getLimit

      public Integer getLimit()
      Gets the value of the property limit.
      Property description:
    • setLimit

      public void setLimit(Integer pLimit)
      Sets the value of the property limit.
      Property description:
    • get

      public T get(int pIdx)
      Specified by:
      get in interface List<T>
      Specified by:
      get in class AbstractList<T>
    • size

      public int size()
      Specified by:
      size in interface Collection<T>
      Specified by:
      size in interface List<T>
      Specified by:
      size in class AbstractCollection<T>