Class HandlerRegistrations
- java.lang.Object
-
- com.google.web.bindery.event.shared.HandlerRegistrations
-
public class HandlerRegistrations extends java.lang.ObjectA utility class to help deal withhandler registrations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HandlerRegistrationcompose(HandlerRegistration... handlers)Create and return aHandlerRegistrationthat 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 aHandlerRegistrationthat 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 registrationsthat should be composed into a singleHandlerRegistration- Returns:
- the composed
HandlerRegistration
-
-