Class AbstractInfiniteListComponent<RECORD,MODEL extends InfiniteListModel<RECORD>>
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- org.teamapps.ux.component.infiniteitemview.AbstractInfiniteListComponent<RECORD,MODEL>
-
- All Implemented Interfaces:
ClientObject,Component
- Direct Known Subclasses:
InfiniteItemView2,Table
public abstract class AbstractInfiniteListComponent<RECORD,MODEL extends InfiniteListModel<RECORD>> extends AbstractComponent
-
-
Field Summary
Fields Modifier and Type Field Description protected EqualsAndHashCode<RECORD>customEqualsAndHashCodeEvent<ItemRange>onDisplayedRangeChangedprotected RenderedRecordsCache<RECORD>renderedRecords-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered
-
-
Constructor Summary
Constructors Constructor Description AbstractInfiniteListComponent(MODEL model)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.teamapps.dto.UiIdentifiableClientRecordcreateUiIdentifiableClientRecord(RECORD record)ObservableValue<java.lang.Integer>getCount()EqualsAndHashCode<RECORD>getCustomEqualsAndHashCode()MODELgetModel()protected intgetModelCount()protected voidhandleModelRecordsAdded(RecordsAddedEvent<RECORD> changeEvent)protected voidhandleModelRecordsChanged(RecordsChangedEvent<RECORD> changeEvent)protected voidhandleModelRecordsRemoved(RecordsRemovedEvent<RECORD> deleteEvent)protected voidhandleScrollOrResize(ItemRange newRange)protected voidpreRegisteringModel(MODEL model)voidrefresh()voidrerenderRecord(RECORD record)protected abstract java.util.List<RECORD>retrieveRecords(int startIndex, int length)protected abstract voidsendUpdateDataCommandToClient(int start, java.util.List<java.lang.Integer> uiRecordIds, java.util.List<org.teamapps.dto.UiIdentifiableClientRecord> newUiRecords, int totalNumberOfRecords)voidsetCustomEqualsAndHashCode(EqualsAndHashCode<RECORD> customEqualsAndHashCode)voidsetModel(MODEL model)protected voidupdateSingleRecordOnClient(RECORD record)-
Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiComponent, createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, setVisible, toggleCssClass, toString, unrender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.ClientObject
handleUiEvent, handleUiQuery
-
Methods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClass
-
-
-
-
Field Detail
-
customEqualsAndHashCode
protected EqualsAndHashCode<RECORD> customEqualsAndHashCode
-
renderedRecords
protected RenderedRecordsCache<RECORD> renderedRecords
-
-
Constructor Detail
-
AbstractInfiniteListComponent
public AbstractInfiniteListComponent(MODEL model)
-
-
Method Detail
-
getModel
public MODEL getModel()
-
setModel
public void setModel(MODEL model)
-
preRegisteringModel
protected void preRegisteringModel(MODEL model)
-
refresh
public void refresh()
-
rerenderRecord
public void rerenderRecord(RECORD record)
-
handleScrollOrResize
protected void handleScrollOrResize(ItemRange newRange)
-
handleModelRecordsAdded
protected void handleModelRecordsAdded(RecordsAddedEvent<RECORD> changeEvent)
-
handleModelRecordsChanged
protected void handleModelRecordsChanged(RecordsChangedEvent<RECORD> changeEvent)
-
handleModelRecordsRemoved
protected void handleModelRecordsRemoved(RecordsRemovedEvent<RECORD> deleteEvent)
-
updateSingleRecordOnClient
protected void updateSingleRecordOnClient(RECORD record)
-
getModelCount
protected int getModelCount()
-
retrieveRecords
protected abstract java.util.List<RECORD> retrieveRecords(int startIndex, int length)
-
sendUpdateDataCommandToClient
protected abstract void sendUpdateDataCommandToClient(int start, java.util.List<java.lang.Integer> uiRecordIds, java.util.List<org.teamapps.dto.UiIdentifiableClientRecord> newUiRecords, int totalNumberOfRecords)
-
createUiIdentifiableClientRecord
protected abstract org.teamapps.dto.UiIdentifiableClientRecord createUiIdentifiableClientRecord(RECORD record)
-
getCount
public ObservableValue<java.lang.Integer> getCount()
-
getCustomEqualsAndHashCode
public EqualsAndHashCode<RECORD> getCustomEqualsAndHashCode()
-
setCustomEqualsAndHashCode
public void setCustomEqualsAndHashCode(EqualsAndHashCode<RECORD> customEqualsAndHashCode)
-
-