public static interface UIEvents.PollNotifier extends Serializable
UIEvents.PollEvent
listeners.
By implementing this interface, a class publicly announces that it is
able to send PollEvents
whenever the client sends a
periodic poll message to the client, to check for asynchronous
server-side modifications.
UI.setPollInterval(int)
Modifier and Type | Method and Description |
---|---|
void |
addPollListener(UIEvents.PollListener listener)
Add a poll listener.
|
void |
removePollListener(UIEvents.PollListener listener)
Remove a poll listener.
|
void addPollListener(UIEvents.PollListener listener)
The listener is called whenever the client polls the server for asynchronous UI updates.
listener
- the UIEvents.PollListener
to addUI.setPollInterval(int)
,
#removePollListener(PollListener)
void removePollListener(UIEvents.PollListener listener)
listener
- the listener to be removed#addPollListener(PollListener)
Copyright © 2019 Vaadin Ltd. All rights reserved.