com.vaadin.event.
Interface UIEvents.PollNotifier
-
All Superinterfaces:
All Known Implementing Classes:
Enclosing interface:
public static interface UIEvents.PollNotifier extends Serializable
The interface for adding and removing
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.Since:
7.2
See Also:
-
-
Method Summary
All Methods Modifier and Type Method Description Registration
addPollListener(UIEvents.PollListener listener)
Add a poll listener.
void
removePollListener(UIEvents.PollListener listener)
Deprecated.
As of 8.0, replaced byRegistration.remove()
in the registration object returned fromaddPollListener(PollListener)
.
-
-
-
Method Detail
-
addPollListener
Registration addPollListener(UIEvents.PollListener listener)
Add a poll listener.
The listener is called whenever the client polls the server for asynchronous UI updates.
Parameters:
listener
- theUIEvents.PollListener
to add, not nullReturns:
a registration object for removing the listener
Since:
8.0
See Also:
UI.setPollInterval(int)
,removePollListener(PollListener)
,Registration
-
removePollListener
@Deprecated void removePollListener(UIEvents.PollListener listener)
Deprecated.As of 8.0, replaced byRegistration.remove()
in the registration object returned fromaddPollListener(PollListener)
.Remove a poll listener.
Parameters:
listener
- the listener to be removedSee Also:
-
-