Class ListInfiniteItemViewModel<RECORD>
java.lang.Object
org.teamapps.ux.component.infiniteitemview.AbstractInfiniteItemViewModel<RECORD>
org.teamapps.ux.component.infiniteitemview.ListInfiniteItemViewModel<RECORD>
- All Implemented Interfaces:
InfiniteItemViewModel<RECORD>
public class ListInfiniteItemViewModel<RECORD> extends AbstractInfiniteItemViewModel<RECORD>
-
Field Summary
Fields inherited from class org.teamapps.ux.component.infiniteitemview.AbstractInfiniteItemViewModel
onAllDataChanged, onRecordsAdded, onRecordsChanged, onRecordsDeleted -
Constructor Summary
Constructors Constructor Description ListInfiniteItemViewModel()ListInfiniteItemViewModel(java.util.List<RECORD> records) -
Method Summary
Modifier and Type Method Description voidaddRecord(int index, RECORD record)voidaddRecord(RECORD record)voidaddRecords(int index, java.util.List<RECORD> records)voidaddRecords(java.util.List<RECORD> records)intgetCount()java.util.List<RECORD>getRecords(int startIndex, int length)voidremoveRecord(int index)voidremoveRecord(int startIndex, int length)voidremoveRecord(RECORD record)voidreplaceRecord(int index, RECORD record)voidreplaceRecords(int startIndex, java.util.List<RECORD> records)voidsetRecords(java.util.List<RECORD> records)voidupdateRecord(int index)voidupdateRecords(int startIndex, int length)Methods inherited from class org.teamapps.ux.component.infiniteitemview.AbstractInfiniteItemViewModel
onAllDataChanged, onRecordsAdded, onRecordsChanged, onRecordsDeletedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ListInfiniteItemViewModel
public ListInfiniteItemViewModel() -
ListInfiniteItemViewModel
-
-
Method Details
-
addRecord
-
addRecord
-
addRecords
-
addRecords
-
removeRecord
-
removeRecord
public void removeRecord(int index) -
removeRecord
public void removeRecord(int startIndex, int length) -
updateRecord
public void updateRecord(int index) -
updateRecords
public void updateRecords(int startIndex, int length) -
replaceRecord
-
replaceRecords
-
setRecords
-
getCount
public int getCount() -
getRecords
-