Package org.olat.core.gui.control.generic.dtabs

Examples of org.olat.core.gui.control.generic.dtabs.Activateable


    //FIXME:pb:2009-06-21:move core
    //PB//getWindowControl().getWindowBackOffice().getWindow().setAttribute("BUSPATH", site_wControl);
    getWindowControl().getWindowBackOffice().getWindow().setAttribute("BUSPATH", getWindowControl());

    if (viewIdentifier != null && (resC instanceof Activateable)) {
      Activateable a = (Activateable) resC;
      a.activate(ureq, viewIdentifier);
    }
  }
View Full Code Here


    DTabImpl dtabi = (DTabImpl) dTab;
    Controller c = dtabi.getController();
    if (c == null) throw new AssertException("no controller set yet! " + dTab + ", view: " + viewIdentifier);
    doActivateDTab(dtabi);
    if (viewIdentifier != null && c instanceof Activateable) {
      final Activateable activateable = ((Activateable) c);
      ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(new Runnable() {

        public void run() {
          activateable.activate(ureq, viewIdentifier);
        }
       
      }, activateable.getUserActivityLogger());
    }

    // activating a tab is like focusing a new window - we need to adjust the
    // guipath since e.g. the button triggering the activation is not
    // part of the guipath, but rather the new tab in its initial state.
View Full Code Here

      removeAsListenerAndDispose(resC);
      this.resC = createController(cmd, ureq);
      listenTo(resC);
      // activate certain state on controller
      if (activationArgs != null && resC instanceof Activateable){
        Activateable activatableCtr = (Activateable) resC;
        activatableCtr.activate(ureq, activationArgs);
      }
      Component resComp = resC.getInitialComponent();
      inclTitle = createVelocityContainer("incltitle");
      inclTitle.contextPut("titleString", titleStr);
      inclTitle.contextPut("command", cmd);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.generic.dtabs.Activateable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.