public interface ContainerEvent extends DataEvent
Represents an update to a container subject.
The ContainerEvent
will be provided on a onContainerUpdate
callback to a SubscriptionListener
.
Modifier and Type | Method and Description |
---|---|
int |
getSize()
Gets the size of the container.
|
int |
getWindowEnd()
Gets the index of the end of the container window.
|
int |
getWindowStart()
Gets the index of the start of the window.
|
void |
updateModel(ContainerModel containerModel)
Update your implementation of
ContainerModel with the contents of this ContainerEvent. |
getSubject, isImage
int getSize()
Gets the size of the container.
The value returned here is the true size of the container, which may be larger than the size of the container window that you have subscribed to.
The value returned here is useful for sizing the scroll bars of a data view showing the elements within a container.
int getWindowStart()
Gets the index of the start of the window.
int getWindowEnd()
Gets the index of the end of the container window.
void updateModel(ContainerModel containerModel)
Update your implementation of ContainerModel
with the contents of this ContainerEvent.
containerModel
- Your implementation of ContainerModel
that should be updated with the contents of this ContainerEvent.Please send bug reports and comments to Caplin support