We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.signals.impl.
Package com.vaadin.signals.impl
Interface UsageTracker.Usage
Enclosing class:
public static interface UsageTracker.Usage
Tracks the state of some used value.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether the used value has subsequently been changed.
onNextChange
(TransientListener listener) Registers a listener that will be invoked the next time there's a change to the used value.
-
Method Details
-
hasChanges
boolean hasChanges()Checks whether the used value has subsequently been changed.
Returns:
true
if the value has been changed,false
if there is no change -
onNextChange
Registers a listener that will be invoked the next time there's a change to the used value. If this usage already has changes, then the listener is invoked immediately.
Parameters:
listener
- the listener to use, notnull
Returns:
a callback for removing the listener, not
null
-