Class PagedTopicListener
The skeleton implementation of a listener for paged topics.
The listener provided when creating the handler will be extended with
this so that you only need to implement the methods you are interested
in.
Constructor Summary
PagedTopicListener
|
PagedTopicListener
|
Method Summary
null
|
add(handler, status, lines)
Callback for when a line is added to the current page. |
null
|
page(handler, status, lines)
Callback for when a page is loaded. |
null
|
ready(handler)
Callback for when the handler has been created. |
null
|
statusChanged(handler, status)
Callback for when a the status of the topic is changed but the view of the current page is not changed. |
null
|
update(handler, status, index, line)
Callback for when a line on the current page is updated. |
Constructor Details
PagedTopicListener
PagedTopicListener PagedTopicListener
- Since:
- 5.0
Method Details
add
add(handler, status, lines)
Callback for when a line is added to the current page.
- Parameters
-
handler
- The PagedTopicHandler -
status
- The PageStatus -
lines
- The lines that have been added
- Since:
- 5.0
page
page(handler, status, lines)
Callback for when a page is loaded.
- Parameters
-
handler
- The PagedTopicHandler -
status
- The PageStatus -
lines
- The lines making up the page
- Since:
- 5.0
ready
ready(handler)
Callback for when the handler has been created.
The handler must be created using the topic load of the paged topic. This means it is created asynchronously.
- Parameters
-
handler
- The PagedTopicHandler
- Since:
- 5.0
statusChanged
statusChanged(handler, status)
Callback for when a the status of the topic is changed but the view of the current page is not changed.
- Parameters
-
handler
- The PagedTopicHandler -
status
- The PageStatus
- Since:
- 5.0
update
update(handler, status, index, line)
Callback for when a line on the current page is updated.
- Parameters
-
handler
- The PagedTopicHandler -
status
- The PageStatus -
index
- The index of the updated line on the current page -
line
- The lines that have been added
- Since:
- 5.0