Class DynamicPagedLayer<T>

java.lang.Object
com.github.darksoulq.abyssallib.world.gui.layer.PagedLayer<T>
com.github.darksoulq.ner.gui.layer.DynamicPagedLayer<T>
All Implemented Interfaces:
com.github.darksoulq.abyssallib.world.gui.GuiLayer

public class DynamicPagedLayer<T> extends com.github.darksoulq.abyssallib.world.gui.layer.PagedLayer<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
    DynamicPagedLayer(List<T> source, int[] slots, com.github.darksoulq.abyssallib.world.gui.GuiView.Segment segment, BiFunction<T, Integer, com.github.darksoulq.abyssallib.world.gui.GuiElement> mapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    next(com.github.darksoulq.abyssallib.world.gui.GuiView view)
     
    void
    previous(com.github.darksoulq.abyssallib.world.gui.GuiView view)
     
    void
    updateSource(List<T> newSource, com.github.darksoulq.abyssallib.world.gui.GuiView view)
     

    Methods inherited from class com.github.darksoulq.abyssallib.world.gui.layer.PagedLayer

    cleanup, getPage, getPageCount, invalidate, of, of, renderTo, setFilter

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DynamicPagedLayer

      public DynamicPagedLayer(List<T> source, int[] slots, com.github.darksoulq.abyssallib.world.gui.GuiView.Segment segment, BiFunction<T, Integer, com.github.darksoulq.abyssallib.world.gui.GuiElement> mapper)
  • Method Details

    • next

      public void next(com.github.darksoulq.abyssallib.world.gui.GuiView view)
      Overrides:
      next in class com.github.darksoulq.abyssallib.world.gui.layer.PagedLayer<T>
    • previous

      public void previous(com.github.darksoulq.abyssallib.world.gui.GuiView view)
      Overrides:
      previous in class com.github.darksoulq.abyssallib.world.gui.layer.PagedLayer<T>
    • updateSource

      public void updateSource(List<T> newSource, com.github.darksoulq.abyssallib.world.gui.GuiView view)