private void registerMouseUpHandler() { Type<MouseUpHandler> type = MouseUpEvent.getType(); registerMouseHandler(new MouseUpHandler() { @Override public void onMouseUp(MouseUpEvent event) { onDragEnd(); } }, type); }
@Before public void before() { isWidget = mock(IsWidget.class); Widget widget = mock(Widget.class); doReturn(handlerRegistration).when(widget) .addDomHandler(Matchers.any(TouchStartHandler.class), Matchers.any(Type.class)); doReturn(widget).when(isWidget) .asWidget(); eventsBus = mock(EventsBus.class); }
public static Type<ItemMouseOutHandler> getAssociatedType() { return TYPE; }
public static Type<ItemMouseOverHandler> getType() { return TYPE; }
private <H extends EventHandler> HandlerRegistration registerMouseHandler(H handler, Type<H> type) { HandlerRegistration registration = ((Widget) accessor.getPlayerContainer()).addDomHandler(handler, type); upMoveHandlersRegistrations.add(registration); return registration; }
private <H extends EventHandler> HandlerRegistration registerTouchHandler(H handler, Type<H> type) { HandlerRegistration registration = RootPanel.get().addDomHandler(handler, type); upMoveHandlersRegistrations.add(registration); return registration; }
public static Type<KeyUpHandler> getAssociatedType() { return TYPE; }
public static Type<ItemTouchMoveHandler> getAssociatedType() { return TYPE; }
public static Type<ItemMouseUpHandler> getType() { return TYPE; }
public static Type<KeyUpHandler> getType() { return TYPE; }
public static Type<MinHeightChangeHandler> getAssociatedType() { return TYPE; }
public static Type<ItemPinchEndHandler> getAssociatedType() { return TYPE; }
public static Type<WidthChangeHandler> getType() { return TYPE; }
public static Type<CancelHandler> getType() { return TYPE; }
public static Type<ErasedHandler> getAssociatedType() { return TYPE; }
public static Type<SpinUpHandler> getAssociatedType() { return TYPE; }
public static Type<ItemDoubleClickHandler> getType() { return TYPE; }
public static Type<ItemDoubleClickHandler> getAssociatedType() { return TYPE; }
public static Type<ItemSwipeHandler> getType() { return TYPE; }
public static Type<ToggleChangeHandler> getAssociatedType() { return TYPE; }
public static Type<RemoveHandler> getAssociatedType() { return TYPE; }
public static Type<MaxHeightChangeHandler> getAssociatedType() { return TYPE; }
public static Type<FocusHandler> getType() { return TYPE; }
public static Type<ItemTouchStartHandler> getAssociatedType() { return TYPE; }
public static Type<CenteredChangeHandler> getAssociatedType() { return TYPE; }
public static Type<ListChangeHandler> getType() { return TYPE; }
public static Type<ZoomChangeHandler> getAssociatedType() { return TYPE; }
public static Type<LoadHandler> getType() { return TYPE; }
public static Type<ClearIconTapHandler> getType() { return TYPE; }
public static Type<ActionHandler> getType() { return TYPE; }
public static Type<ItemTapStartHandler> getType() { return TYPE; }
public static Type<ItemTapStartHandler> getAssociatedType() { return TYPE; }
public static Type<HeightChangeHandler> getAssociatedType() { return TYPE; }
public static Type<TapHandler> getType() { return TYPE; }
public static Type<ReleaseHandler> getType() { return TYPE; }
public static Type<ChangeHandler> getAssociatedType() { return TYPE; }
public static Type<ActivateHandler> getType() { return TYPE; }
public static Type<ItemMouseDownHandler> getAssociatedType() { return TYPE; }
public static Type<SubmitHandler> getType() { return TYPE; }
public static Type<ChangeHandler> getType() { return TYPE; }