@Test public void testOnDecisionTableSelectedEventWithOtherwiseColumnSelectedAndItHasEditableColumns() { model.getConditions().add(makePattern52()); model.getData().add(makeDTCellValue52()); uiModel.selectCell(0, 3); builder.onDecisionTableSelectedEvent(new DecisionTableSelectedEvent(dtPresenter)); assertTrue(builder.miCut.getMenuItem().isEnabled()); assertTrue(builder.miCopy.getMenuItem().isEnabled()); assertFalse(builder.miPaste.getMenuItem().isEnabled()); assertTrue(builder.miDeleteSelectedCells.getMenuItem().isEnabled()); assertTrue(builder.miDeleteSelectedColumns.getMenuItem().isEnabled()); assertTrue(builder.miDeleteSelectedRows.getMenuItem().isEnabled()); assertTrue(builder.miOtherwiseCell.getMenuItem().isEnabled()); verify(builder.miOtherwiseCell.getMenuItemView(), times(1)).setIconType(eq(null)); }
@Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); }
EditMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { @Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); } }
EditMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { @Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); } @Inject  EditMenuBuilder(final Clipboard clipboard,
                           final TranslationService ts,
                           final MenuItemFactory menuItemFactory,
                           final DecisionTablePopoverUtils popoverUtils); }
EditMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { @Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); } @Inject  EditMenuBuilder(final Clipboard clipboard,
                           final TranslationService ts,
                           final MenuItemFactory menuItemFactory,
                           final DecisionTablePopoverUtils popoverUtils); @PostConstruct void setup(); @Override void push(final MenuFactory.CustomMenuBuilder element); @Override MenuItem build(); @Override void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event); @Override void onDecisionTableSelectionsChangedEvent(final @Observes DecisionTableSelectionsChangedEvent event); @Override void onRefreshMenusEvent(final @Observes RefreshMenusEvent event); @Override void initialise(); }
EditMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { @Override public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { super.onDecisionTableSelectedEvent(event); } @Inject  EditMenuBuilder(final Clipboard clipboard,
                           final TranslationService ts,
                           final MenuItemFactory menuItemFactory,
                           final DecisionTablePopoverUtils popoverUtils); @PostConstruct void setup(); @Override void push(final MenuFactory.CustomMenuBuilder element); @Override MenuItem build(); @Override void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event); @Override void onDecisionTableSelectionsChangedEvent(final @Observes DecisionTableSelectionsChangedEvent event); @Override void onRefreshMenusEvent(final @Observes RefreshMenusEvent event); @Override void initialise();  }