Examples of DTabImpl


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

  /**
   * @param dt
   */
  private void requestCloseTab(DTab dt) {
    final DTabImpl delt = (DTabImpl) dt;
    Controller c = delt.getController(); // FIXME:fj: test
    // vetoableclosecontroller
    if (c instanceof VetoableCloseController) {
      VetoableCloseController vcc = (VetoableCloseController) c;
      // rembember current dtab, and swap to the temporary one
      DTabImpl reTab = curDTab;
      doActivateDTab(delt);
      boolean immediateClose = vcc.requestForClose();
      if (!immediateClose) {
        return;
      } else {
View Full Code Here

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

  public DTab createDTab(OLATResourceable ores, String title) {
    if (dtabs.size() >= MAX_TABS) {
      getWindowControl().setError(translate("warn.tabsfull"));
      return null;
    }
    DTabImpl dt = new DTabImpl(ores, title, getWindowControl());
    return dt;
  }
View Full Code Here

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

   */
  public void activate(final UserRequest ureq, DTab dTab, final String viewIdentifier) {
    // FIXME:fj:c if viewIdentifier is DTABS.initialView -> activate to this
    // init view (e.g. kurs in run mode, repo-detail-edit...)
    // jump here via external link or just open a new tab from e.g. repository
    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() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.