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.terminal.gwt.client.
Class EventHelper
java.lang.Object
com.vaadin.terminal.gwt.client.EventHelper
- extends Object
public class EventHelper
Helper class for attaching/detaching handlers for Vaadin client side components, based on identifiers in UIDL. Helpers expect Paintables to be both listeners and sources for events. This helper cannot be used for more complex widgets.
Possible current registration is given as parameter. The returned registration (possibly the same as given, should be store for next update.
Pseudocode what helpers do:
if paintable has event listener in UIDL
if registration is null
register paintable as as handler for event
return the registration
else
if registration is not null
remove the handler from paintable
return null
Constructor Summary | |
---|---|
EventHelper()
|
Method Summary | |
---|---|
static com.google.gwt.event.shared.HandlerRegistration |
updateBlurHandler(Paintable paintable,
ApplicationConnection client,
com.google.gwt.event.shared.HandlerRegistration handlerRegistration)
|
static com.google.gwt.event.shared.HandlerRegistration |
updateFocusHandler(Paintable paintable,
ApplicationConnection client,
com.google.gwt.event.shared.HandlerRegistration handlerRegistration)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
EventHelper
public EventHelper()
Method Detail |
---|
updateFocusHandler
public static com.google.gwt.event.shared.HandlerRegistration updateFocusHandler(Paintable paintable,
ApplicationConnection client,
com.google.gwt.event.shared.HandlerRegistration handlerRegistration)
updateBlurHandler
public static com.google.gwt.event.shared.HandlerRegistration updateBlurHandler(Paintable paintable,
ApplicationConnection client,
com.google.gwt.event.shared.HandlerRegistration handlerRegistration)