Class RecordsAddedEvent<RECORD>

java.lang.Object
org.teamapps.ux.component.infiniteitemview.RecordsAddedEvent<RECORD>

public class RecordsAddedEvent<RECORD>
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    RecordsAddedEvent​(int startIndex, java.util.List<RECORD> records)
    Use this constructor if the model has the added items at hand.
    RecordsAddedEvent​(ItemRange itemRange)
    Use this constructor if the model does not have the added items at hand.
  • Method Summary

    Modifier and Type Method Description
    int getEnd()  
    ItemRange getItemRange()  
    int getLength()  
    java.util.Optional<java.util.List<RECORD>> getRecords()  
    int getStart()  

    Methods inherited from class java.lang.Object

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

    • RecordsAddedEvent

      public RecordsAddedEvent​(ItemRange itemRange)
      Use this constructor if the model does not have the added items at hand. This might happen when the model was not in charge of the actual change but got notified of it. Views might not actually need to react on the change, anyway. So forcing the model to retrieve the changed records does not make sense.
    • RecordsAddedEvent

      public RecordsAddedEvent​(int startIndex, java.util.List<RECORD> records)
      Use this constructor if the model has the added items at hand.
  • Method Details