Examples of VetoableCloseController


Examples of org.olat.core.gui.control.VetoableCloseController

  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 {
        if (reTab != null) {
          doActivateDTab(reTab);
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.