@Test public void testOnDecisionTableSelectionsChangedEventWithNoSelectionsAndItDoesNotHaveEditableColumns() { when(dtPresenter.hasEditableColumns()).thenReturn(false); builder.onDecisionTableSelectionsChangedEvent(new DecisionTableSelectionsChangedEvent(dtPresenter)); assertTrue(builder.miAppendRow.getMenuItem().isEnabled()); assertFalse(builder.miInsertRowAbove.getMenuItem().isEnabled()); assertFalse(builder.miInsertRowBelow.getMenuItem().isEnabled()); assertFalse(builder.miInsertColumn.getMenuItem().isEnabled()); }
@Override public void onDecisionTableSelectionsChangedEvent(final @Observes DecisionTableSelectionsChangedEvent event) { super.onDecisionTableSelectionsChangedEvent(event); }
InsertMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { @Override public void onDecisionTableSelectionsChangedEvent(final @Observes DecisionTableSelectionsChangedEvent event) { super.onDecisionTableSelectionsChangedEvent(event); } }
InsertMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { @Override public void onDecisionTableSelectionsChangedEvent(final @Observes DecisionTableSelectionsChangedEvent event) { super.onDecisionTableSelectionsChangedEvent(event); } @Inject  InsertMenuBuilder(final TranslationService ts,
                             final MenuItemFactory menuItemFactory,
                             final ManagedInstance<NewGuidedDecisionTableColumnWizard> wizardManagedInstance); }
InsertMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { @Override public void onDecisionTableSelectionsChangedEvent(final @Observes DecisionTableSelectionsChangedEvent event) { super.onDecisionTableSelectionsChangedEvent(event); } @Inject  InsertMenuBuilder(final TranslationService ts,
                             final MenuItemFactory menuItemFactory,
                             final ManagedInstance<NewGuidedDecisionTableColumnWizard> wizardManagedInstance); @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(); void setModeller(final GuidedDecisionTableModellerView.Presenter modeller); }
InsertMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { @Override public void onDecisionTableSelectionsChangedEvent(final @Observes DecisionTableSelectionsChangedEvent event) { super.onDecisionTableSelectionsChangedEvent(event); } @Inject  InsertMenuBuilder(final TranslationService ts,
                             final MenuItemFactory menuItemFactory,
                             final ManagedInstance<NewGuidedDecisionTableColumnWizard> wizardManagedInstance); @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(); void setModeller(final GuidedDecisionTableModellerView.Presenter modeller);  }