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 |
---|---|
Registration |
addPollListener(UIEvents.PollListener listener)
Add a poll listener.
|
void |
removePollListener(UIEvents.PollListener listener)
Deprecated.
As of 8.0, replaced by
Registration.remove() in
the registration object returned from
#addPollListener(PollListener) . |
Registration addPollListener(UIEvents.PollListener listener)
The listener is called whenever the client polls the server for asynchronous UI updates.
listener
- the UIEvents.PollListener
to add, not nullUI.setPollInterval(int)
,
#removePollListener(PollListener)
,
Registration
@Deprecated void removePollListener(UIEvents.PollListener listener)
Registration.remove()
in
the registration object returned from
#addPollListener(PollListener)
.listener
- the listener to be removed#addPollListener(PollListener)
Copyright © 2018 Vaadin Ltd. All rights reserved.