@Test public void testOnDecisionTableSelectedEventWithSelectionsWithClipboardPopulated() { model.getMetadataCols().add(new MetadataCol52()); model.getData().add(new ArrayList<DTCellValue52>() {{ add(new DTCellValue52(1)); add(new DTCellValue52("descr")); add(new DTCellValue52("md")); }}); uiModel.selectCell(0, 2); clipboard.setData(new HashSet<Clipboard.ClipboardData>() {{ add(new DefaultClipboard.ClipboardDataImpl(0, 2, model.getData().get(0).get(2))); }}); menu.onDecisionTableSelectedEvent(new DecisionTableSelectedEvent(dtPresenter)); verify(view, times(1)).enableCutMenuItem(eq(true)); verify(view, times(1)).enableCopyMenuItem(eq(true)); verify(view, times(1)).enablePasteMenuItem(eq(true)); verify(view, times(1)).enableInsertRowAboveMenuItem(eq(true)); verify(view, times(1)).enableInsertRowBelowMenuItem(eq(true)); verify(view, times(1)).enableDeleteRowMenuItem(eq(true)); }
@Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); }
RowContextMenu extends BaseMenu implements IsWidget,
                                                        RowContextMenuView.Presenter { @Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); } }
RowContextMenu extends BaseMenu implements IsWidget,
                                                        RowContextMenuView.Presenter { @Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); } @Inject  RowContextMenu(final RowContextMenuView view,
                          final Clipboard clipboard); }
RowContextMenu extends BaseMenu implements IsWidget,
                                                        RowContextMenuView.Presenter { @Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); } @Inject  RowContextMenu(final RowContextMenuView view,
                          final Clipboard clipboard); @Override void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event); @Override void onDecisionTableSelectionsChangedEvent(final @Observes DecisionTableSelectionsChangedEvent event); @Override void onRefreshMenusEvent(final @Observes RefreshMenusEvent event); @Override Widget asWidget(); @Override void show(final int mx,
                     final int my); @Override void hide(); @Override void initialise(); @Override void onCut(); @Override void onCopy(); @Override void onPaste(); @Override void onInsertRowAbove(); @Override void onInsertRowBelow(); @Override void onDeleteSelectedRows(); }
RowContextMenu extends BaseMenu implements IsWidget,
                                                        RowContextMenuView.Presenter { @Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); } @Inject  RowContextMenu(final RowContextMenuView view,
                          final Clipboard clipboard); @Override void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event); @Override void onDecisionTableSelectionsChangedEvent(final @Observes DecisionTableSelectionsChangedEvent event); @Override void onRefreshMenusEvent(final @Observes RefreshMenusEvent event); @Override Widget asWidget(); @Override void show(final int mx,
                     final int my); @Override void hide(); @Override void initialise(); @Override void onCut(); @Override void onCopy(); @Override void onPaste(); @Override void onInsertRowAbove(); @Override void onInsertRowBelow(); @Override void onDeleteSelectedRows();  }