/** * Fires a {@link LockInteractionEvent} * into a source that has access to an {@link com.google.web.bindery.event.shared.EventBus} * specifying whether interaction should be locked or unlocked. * * @param source The source that fires this event ({@link HasHandlers}). * @param lock {@code true} to lock interaction, {@code false} to unlock it. */ public static void fire(HasHandlers source, boolean lock) { source.fireEvent(new LockInteractionEvent(lock)); }