@Test public void testEnableZoom_Pinned() { builder.onDecisionTablePinnedEvent(new DecisionTablePinnedEvent(modeller, true)); assertFalse(builder.miZoom125pct.getMenuItem().isEnabled()); assertFalse(builder.miZoom100pct.getMenuItem().isEnabled()); assertFalse(builder.miZoom75pct.getMenuItem().isEnabled()); assertFalse(builder.miZoom50pct.getMenuItem().isEnabled()); }
public void onDecisionTablePinnedEvent(final @Observes DecisionTablePinnedEvent event) { final GuidedDecisionTableModellerView.Presenter modeller = event.getPresenter(); if (modeller == null) { return; } if (!modeller.equals(this.modeller)) { return; } enableZoomMenu(!event.isPinned()); }
ViewMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { public void onDecisionTablePinnedEvent(final @Observes DecisionTablePinnedEvent event) { final GuidedDecisionTableModellerView.Presenter modeller = event.getPresenter(); if (modeller == null) { return; } if (!modeller.equals(this.modeller)) { return; } enableZoomMenu(!event.isPinned()); } }
ViewMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { public void onDecisionTablePinnedEvent(final @Observes DecisionTablePinnedEvent event) { final GuidedDecisionTableModellerView.Presenter modeller = event.getPresenter(); if (modeller == null) { return; } if (!modeller.equals(this.modeller)) { return; } enableZoomMenu(!event.isPinned()); } @Inject  ViewMenuBuilder(final TranslationService ts,
                           final MenuItemFactory menuItemFactory); }
ViewMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { public void onDecisionTablePinnedEvent(final @Observes DecisionTablePinnedEvent event) { final GuidedDecisionTableModellerView.Presenter modeller = event.getPresenter(); if (modeller == null) { return; } if (!modeller.equals(this.modeller)) { return; } enableZoomMenu(!event.isPinned()); } @Inject  ViewMenuBuilder(final TranslationService ts,
                           final MenuItemFactory menuItemFactory); @PostConstruct void setup(); void setModeller(final GuidedDecisionTableModellerView.Presenter modeller); @Override void push(final MenuFactory.CustomMenuBuilder element); @Override MenuItem build(); @Override void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event); @Override void onRefreshMenusEvent(final @Observes RefreshMenusEvent event); @Override void initialise(); void onDecisionTablePinnedEvent(final @Observes DecisionTablePinnedEvent event); }
ViewMenuBuilder extends BaseMenu implements MenuFactory.CustomMenuBuilder { public void onDecisionTablePinnedEvent(final @Observes DecisionTablePinnedEvent event) { final GuidedDecisionTableModellerView.Presenter modeller = event.getPresenter(); if (modeller == null) { return; } if (!modeller.equals(this.modeller)) { return; } enableZoomMenu(!event.isPinned()); } @Inject  ViewMenuBuilder(final TranslationService ts,
                           final MenuItemFactory menuItemFactory); @PostConstruct void setup(); void setModeller(final GuidedDecisionTableModellerView.Presenter modeller); @Override void push(final MenuFactory.CustomMenuBuilder element); @Override MenuItem build(); @Override void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event); @Override void onRefreshMenusEvent(final @Observes RefreshMenusEvent event); @Override void initialise(); void onDecisionTablePinnedEvent(final @Observes DecisionTablePinnedEvent event);  }