Class HandlerRegistrations
- java.lang.Object
-
- com.google.web.bindery.event.shared.HandlerRegistrations
-
public class HandlerRegistrations extends java.lang.Object
A utility class to help deal withhandler registrations
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HandlerRegistration
compose(HandlerRegistration... handlers)
Create and return aHandlerRegistration
that will callHandlerRegistration.removeHandler()
on all supplied handlers ifHandlerRegistration.removeHandler()
is called on the returned object.
-
-
-
Method Detail
-
compose
public static HandlerRegistration compose(HandlerRegistration... handlers)
Create and return aHandlerRegistration
that will callHandlerRegistration.removeHandler()
on all supplied handlers ifHandlerRegistration.removeHandler()
is called on the returned object.A simple example:
HandlerRegistration hr1 = ... HandlerRegistration hr2 = ... return HandlerRegistrations.compose(hr1, hr2);
- Parameters:
handlers
- thehandler registrations
that should be composed into a singleHandlerRegistration
- Returns:
- the composed
HandlerRegistration
-
-