Class RecordsChangedEvent<RECORD>
- java.lang.Object
-
- org.teamapps.ux.component.infiniteitemview.RecordsChangedEvent<RECORD>
-
public class RecordsChangedEvent<RECORD> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RecordsChangedEvent(int startIndex, java.util.List<RECORD> records)Use this constructor if the model has the changed items at hand.RecordsChangedEvent(ItemRange itemRange)Use this constructor if the model does not have the changed items at hand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEnd()ItemRangegetItemRange()intgetLength()java.util.Optional<java.util.List<RECORD>>getRecords()intgetStart()
-
-
-
Constructor Detail
-
RecordsChangedEvent
public RecordsChangedEvent(ItemRange itemRange)
Use this constructor if the model does not have the changed 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.
-
RecordsChangedEvent
public RecordsChangedEvent(int startIndex, java.util.List<RECORD> records)Use this constructor if the model has the changed items at hand.
-
-