private void addDragEndHandlerToItem(DraggableObject<FlowPanel> draggableObject) { draggableObject.addDragEndHandler(new DragEndHandler() { @Override public void onDragEnd(DragEndEvent event) { removeDraggableStyleFromItem(); dragEndHandler.onDragEnd(event); } }); }
private void addDragEndHandler() { draggable.addDragEndHandler(new DragEndHandler() { @Override public void onDragEnd(DragEndEvent event) { scormScrollPanel.unlockScroll(); getElement().removeClassName(styleNames.QP_DRAGGED_DRAG()); sourceListView.onDragEvent(DragDropEventTypes.DRAG_END, SourceListViewItem.this, event); } }); }
@Test public void shouldInformSourcelistManagerOnDragEnd() throws Exception { DragEndEvent event = Mockito.mock(DragEndEvent.class); dragHandler.onDragEnd(event); verify(sourcelistManagerAdapter).dragFinished(); }
@Override public void onDragEnd(DragEndEvent event) { sourceListManagerAdapter.dragFinished(); }
public HandlerRegistration addDragEndHandler(DragEndHandler handler) { return addBitlessDomHandler(handler, DragEndEvent.getType()); }
@Override public com.google.gwt.event.shared.HandlerRegistration addDragEndHandler(DragEndHandler handler) { return this.addBitlessDomHandler(handler, DragEndEvent.getType()); }
@Override public HandlerRegistration addDragEndHandler(DragEndHandler handler) { return this.addBitlessDomHandler(handler, DragEndEvent.getType()); }