Exemple #1
0
 public void visible(final boolean mode) {
   if (mode) {
     display.setPatient(ElexisEventDispatcher.getSelectedPatient());
     ElexisEventDispatcher.getInstance().addListeners(eeli_episode, eeli_kons, eeli_pat);
   } else {
     ElexisEventDispatcher.getInstance().removeListeners(eeli_episode, eeli_kons, eeli_pat);
   }
 }
 @SuppressWarnings("static-access")
 @Override
 protected void deselected(Patient pat) {
   ElexisEventDispatcher eed = ElexisEventDispatcher.getInstance();
   Konsultation kons = (Konsultation) eed.getSelected(Konsultation.class);
   if (kons != null) {
     eed.fire(new ElexisEvent(null, Konsultation.class, ElexisEvent.EVENT_DESELECTED));
   }
 }