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 and Description void
addPollListener(UIEvents.PollListener listener)
Add a poll listener.
void
removePollListener(UIEvents.PollListener listener)
Remove a poll listener.
-
-
-
Method Detail
-
addPollListener
void 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 addSee Also:
UI.setPollInterval(int)
,#removePollListener(PollListener)
-
removePollListener
void removePollListener(UIEvents.PollListener listener)
Remove a poll listener.
Parameters:
listener
- the listener to be removedSee Also:
#addPollListener(PollListener)
-
-