コード例 #1
0
 private void closeTagsCallout() {
   if (moreTagsCalloutCtrl != null) {
     moreTagsCalloutCtrl.deactivate();
     removeAsListenerAndDispose(moreTagsCalloutCtrl);
     moreTagsCalloutCtrl = null;
   }
 }
コード例 #2
0
  private void popupTagsCallout(final UserRequest ureq) {
    final String title = translate("filter.tag");
    removeAsListenerAndDispose(moreTagsCtlr);
    moreTagsCtlr = new EPArtefactTagSelectionController(ureq, getWindowControl(), selectedTagsList);
    listenTo(moreTagsCtlr);

    removeAsListenerAndDispose(moreTagsCalloutCtrl);
    moreTagsCalloutCtrl =
        new CloseableCalloutWindowController(
            ureq,
            getWindowControl(),
            moreTagsCtlr.getInitialComponent(),
            (FormLink) tagEditBtn,
            title,
            true,
            null);
    listenTo(moreTagsCalloutCtrl);
    moreTagsCalloutCtrl.activate();
  }