@Test public void test_dispatchingEventToHandler() { final SelectionChangedHandler handler = mock(SelectionChangedHandler.class); selectionEvent.dispatch(handler); verify(handler).onSelectionChanged(selectionEvent); }
@Override protected void dispatch(SelectionChangedHandler handler) { handler.onSelectionChanged(this); }
SelectionEvent extends Event<SelectionChangedHandler> { @Override protected void dispatch(SelectionChangedHandler handler) { handler.onSelectionChanged(this); } }
SelectionEvent extends Event<SelectionChangedHandler> { @Override protected void dispatch(SelectionChangedHandler handler) { handler.onSelectionChanged(this); } SelectionEvent(Record record, boolean state, ListGridRecord[] selection, ListGridRecord selectedRecord); }
SelectionEvent extends Event<SelectionChangedHandler> { @Override protected void dispatch(SelectionChangedHandler handler) { handler.onSelectionChanged(this); } SelectionEvent(Record record, boolean state, ListGridRecord[] selection, ListGridRecord selectedRecord); static Event.Type<SelectionChangedHandler> getType(); @Override Event.Type<SelectionChangedHandler> getAssociatedType(); Record getRecord(); boolean getState(); ListGridRecord[] getSelection(); ListGridRecord getSelectedRecord(); }
SelectionEvent extends Event<SelectionChangedHandler> { @Override protected void dispatch(SelectionChangedHandler handler) { handler.onSelectionChanged(this); } SelectionEvent(Record record, boolean state, ListGridRecord[] selection, ListGridRecord selectedRecord); static Event.Type<SelectionChangedHandler> getType(); @Override Event.Type<SelectionChangedHandler> getAssociatedType(); Record getRecord(); boolean getState(); ListGridRecord[] getSelection(); ListGridRecord getSelectedRecord();  }