public interface PagedTopicListener
Modifier and Type | Method and Description |
---|---|
void |
add(PagedTopicHandler handler,
PageStatus status,
Lines lines)
Notifies lines added to the end of the current page.
|
void |
page(PagedTopicHandler handler,
PageStatus status,
Lines lines)
Notifies receipt of a page from the server.
|
void |
statusChanged(PagedTopicHandler handler,
PageStatus status)
Notifies a status change.
|
void |
update(PagedTopicHandler handler,
PageStatus status,
int index,
Lines line)
Notifies an update to the data of a line on the current page.
|
void page(PagedTopicHandler handler, PageStatus status, Lines lines)
This may be received in response to
PagedTopicHandler.open(int, int)
or
PagedTopicHandler.page(PageOption)
requests.
handler
- the handlerstatus
- the current status of the Topic.lines
- the lines of data on the page.void add(PagedTopicHandler handler, PageStatus status, Lines lines)
handler
- the handlerstatus
- the current status of the Topic.lines
- the lines of data to be added to the end of the current
page. There may be less than or equal to the number of lines required to
fill the page and the status would indicate whether there is now more
following the current page.void update(PagedTopicHandler handler, PageStatus status, int index, Lines line)
handler
- the handlerstatus
- the current status of the Topic.index
- the relative index of the line within the current page
(where the index of the first line is 0).line
- a Lines
object containing a single line of data
which may be used to replace the current line.void statusChanged(PagedTopicHandler handler, PageStatus status)
This will happen if lines have been added or removed which affect the
pagination (e.g. the current page number of the total number of pages
has changed). If lines have been added or removed on or before the
current page then the status will indicate that the page is 'dirty',
meaning that what is currently displayed is out of date and should be
refreshed (using PagedTopicHandler.page(int)
.
handler
- the handlerstatus
- the current status in relation to the current page.Copyright © 2016 Push Technology Ltd. All Rights Reserved.