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
FieldsModifier and TypeFieldDescriptionprotected EqualsAndHashCode<RECORD> protected RenderedRecordsCache<RECORD> Fields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract UiIdentifiableClientRecordcreateClientRecord(RECORD record) getCount()getModel()protected intprotected 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) retrieveRecords(int startIndex, int length) protected abstract voidsendUpdateDataCommandToClient(int start, List<Integer> uiRecordIds, List<UiIdentifiableClientRecord> newUiRecords, int totalNumberOfRecords) voidsetCustomEqualsAndHashCode(EqualsAndHashCode<RECORD> customEqualsAndHashCode) voidprotected 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, unrenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.ClientObject
handleUiEvent, handleUiQueryMethods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClass
-
Field Details
-
onDisplayedRangeChanged
-
customEqualsAndHashCode
-
renderedRecords
-
-
Constructor Details
-
AbstractInfiniteListComponent
-
-
Method Details
-
getModel
-
setModel
-
preRegisteringModel
-
refresh
public void refresh() -
rerenderRecord
-
handleScrollOrResize
-
handleModelRecordsAdded
-
handleModelRecordsChanged
-
handleModelRecordsRemoved
-
updateSingleRecordOnClient
-
getModelCount
protected int getModelCount() -
retrieveRecords
-
sendUpdateDataCommandToClient
protected abstract void sendUpdateDataCommandToClient(int start, List<Integer> uiRecordIds, List<UiIdentifiableClientRecord> newUiRecords, int totalNumberOfRecords) -
createClientRecord
-
getCount
-
getCustomEqualsAndHashCode
-
setCustomEqualsAndHashCode
-