Пример #1
0
 @Override
 public void runInUi(ElexisEvent ev) {
   Episode ep = (Episode) ev.getObject();
   switch (ev.getType()) {
     case ElexisEvent.EVENT_SELECTED:
       if (ep.getStatus() == Episode.ACTIVE) {
         activateEpisodeAction.setChecked(true);
       } else {
         activateEpisodeAction.setChecked(false);
       }
       if (konsFilterAction.isChecked()) {
         episodesFilter.setProblem(ep);
       }
       break;
     case ElexisEvent.EVENT_DESELECTED:
       episodesFilter.setProblem(null);
       break;
     case ElexisEvent.EVENT_UPDATE:
       display.tvEpisodes.refresh();
       break;
   }
 }
Пример #2
0
 @Override
 public void runInUi(ElexisEvent ev) {
   display.setPatient((Patient) ev.getObject());
 }