Package | com.pushtechnology.diffusion |
Interface | public interface PagedTopicListener |
Since : | 4.1 |
Method | Defined By | ||
---|---|---|---|
Notifies lines added to the end of the current page. | PagedTopicListener | ||
Notifies receipt of a page from the server. | PagedTopicListener | ||
Notifies a status change. | PagedTopicListener | ||
Notifies an update to the data of a line on the current page. | PagedTopicListener |
add | () | method |
public function add(handler:PagedTopicHandler, status:PageStatus, lines:Lines):void
Notifies lines added to the end of the current page.
Parameters
handler:PagedTopicHandler — the handler
| |
status:PageStatus — the current status of the Topic.
| |
lines: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.
|
page | () | method |
public function page(handler:PagedTopicHandler, status:PageStatus, lines:Lines):void
Notifies receipt of a page from the server.
This may be received in response to PagedTopicHandler#open(int, int) or PagedTopicHandler#page(PageOption) requests.
Parameters
handler:PagedTopicHandler — the handler
| |
status:PageStatus — the current status of the Topic.
| |
lines:Lines — the lines of data on the page.
|
statusChanged | () | method |
public function statusChanged(handler:PagedTopicHandler, stauts:PageStatus):void
Notifies a status change.
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(PageOption).
Parameters
handler:PagedTopicHandler — the handler
| |
stauts:PageStatus — the current status in relation to the current page.
|
update | () | method |
public function update(handler:PagedTopicHandler, status:PageStatus, index:int, lines:Lines):void
Notifies an update to the data of a line on the current page.
Parameters
handler:PagedTopicHandler — the handler
| |
status:PageStatus — the current status of the Topic.
| |
index:int — the relative index of the line within the current page
(where the index of the first line is 0).
| |
lines:Lines — a Lines object containing a single line of data
which may be used to replace the current line.
|