Class VFXListHelper.AbstractHelper<T, C extends VFXCell<T>>

java.lang.Object
io.github.palexdev.virtualizedfx.base.VFXContainerHelper.VFXContainerHelperBase<T, VFXList<T,C>>
io.github.palexdev.virtualizedfx.list.VFXListHelper.AbstractHelper<T,C>
All Implemented Interfaces:
VFXContainerHelper<T, VFXList<T,C>>, VFXListHelper<T,C>
Direct Known Subclasses:
VFXListHelper.HorizontalHelper, VFXListHelper.VerticalHelper
Enclosing interface:
VFXListHelper<T, C extends VFXCell<T>>

public abstract static class VFXListHelper.AbstractHelper<T, C extends VFXCell<T>> extends VFXContainerHelper.VFXContainerHelperBase<T, VFXList<T,C>> implements VFXListHelper<T,C>
Extension of VFXContainerHelper.VFXContainerHelperBase which also implements VFXListHelper. Defines common properties and operations for the two concrete implementations VFXListHelper.VerticalHelper and VFXListHelper.HorizontalHelper, such as:

- the range of items to display as a IntegerRangeProperty

- the total number of cells in the viewport

  • Property Details

  • Field Details

    • range

      protected final io.github.palexdev.mfxcore.base.properties.range.IntegerRangeProperty range
  • Constructor Details

    • AbstractHelper

      public AbstractHelper(VFXList<T,C> list)
  • Method Details

    • totalNum

      public int totalNum()
      Specified by:
      totalNum in interface VFXListHelper<T, C extends VFXCell<T>>
      Returns:
      the total number of cells in the viewport which doesn't include only the number of visible cells but also the number of buffer cells
    • rangeProperty

      public io.github.palexdev.mfxcore.base.properties.range.IntegerRangeProperty rangeProperty()
      Description copied from interface: VFXListHelper
      Specifies the range of items present in the list. This also takes into account buffer items, see VFXListHelper.visibleNum() and VFXListHelper.totalNum()
      Specified by:
      rangeProperty in interface VFXListHelper<T, C extends VFXCell<T>>
      Returns:
      the range property