Package org.olat.core.gui.control

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


   * @see org.olat.core.gui.components.form.flexible.impl.FormBasicController#formNOK(org.olat.core.gui.UserRequest)
   */
  @Override
  protected void formNOK(UserRequest ureq) {
    // disable other tabs
    fireEvent(ureq, new Event("termNOK"));
  }
View Full Code Here


            BusinessControl bc = wCo.getBusinessControl();
            String businessPath = bc == null? "n/a":bc.getAsString();
            String compName = target.getComponentName();
            String msg = "wci:"+coInfo+"%%"+compName+"%%"+businessPath+"%%";
            // allowed for debugging, dispatching is already over
            Event ev = target.getAndClearLatestFiredEvent();
            if (ev != null) {
              msg += ev.getClass().getName()+":"+ev.getCommand()+"%%";
            }
            String targetInfo = target.getExtendedDebugInfo();
            msg += targetInfo+"%%";
            debugMsg.append(msg).append(LOG_SEPARATOR);
            //Tracing.logDebug(msg, WindowStats.class);
View Full Code Here

   * only for debugging reasons!!!
   *
   * @return Returns the latestFiredEvent.
   */
  public Event getAndClearLatestFiredEvent() {
    Event tmp = latestFiredEvent;
    latestFiredEvent = null; // gc
    return tmp;
  }
View Full Code Here

        logWarn("Could not send instant message from" + username + " to: " + chatPartnerJid, e);
      }
      sendMessageForm.resetTextField();
    } else if (source == chatPanelCtr) {
      //user closed panel by close icon
      fireEvent(ureq, new Event(chatPartnerJid));
      //set back to idle poll time
      jsc.setRefreshIntervall(InstantMessagingModule.getIDLE_POLLTIME());
    }
  }
View Full Code Here

        Component nodeComp = currentNodeController.getInitialComponent();
        content.setContent(nodeComp);
      }
    } else if (source == configButton){
      fireEvent(ureq, new Event("command.config"));
    }
  }
View Full Code Here

  }
 
  @Override
  protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (source == ms && event.getCommand().equals("ONCLICK")) {
      fireEvent(ureq, new Event("ONCHANGE"));
    }
  }
View Full Code Here

    if (source == importLink) {
      uploadCtr = new CPFileImportController(ureq, getWindowControl(), cp, currentPage);
      activateModalDialog(uploadCtr);

    } else if (source == newLink) {
      fireEvent(ureq, new Event("New Page"));

    } else if (source == copyLink) {
      if (currentPage.isOrgaPage()) {
        showInfo("cptreecontroller.orga.cannot.be.copied");
      } else {
View Full Code Here

   * @see org.olat.core.gui.components.form.flexible.impl.FormBasicController#formOK(org.olat.core.gui.UserRequest)
   */
  @Override
  protected void formOK(UserRequest ureq) {
    uploadFiles();
    Event pageImported = new NewCPPageEvent("pages imported", pageToBeSelected());
    this.fireEvent(ureq, pageImported);
  }
View Full Code Here

      AssessmentInstance ai = qticomp.getAssessmentInstance();
      Navigator navig = ai.getNavigator();
      if (wfCommand.equals("sitse")) { // submitItemorSection
        navig.submitItems(iqm.getItemsInput(ureq)); //
        if (ai.isClosed()) { // do all the finishing stuff
          event(ureq, source, new Event(QTIConstants.QTI_WF_SUBMIT));
          return;
        }
      } else if (wfCommand.equals("sflash")) { // submit flash answer
        navig.submitItems(iqm.getItemsInput(ureq)); //
        if (ai.isClosed()) { // do all the finishing stuff
          event(ureq, source, new Event(QTIConstants.QTI_WF_SUBMIT));
          return;
        }
      } else if (wfCommand.equals("git")) { // goToItem
        String seid = ureq.getParameter("seid");
        String itid = ureq.getParameter("itid");
View Full Code Here

   *
   * @see org.olat.core.gui.components.Component#dispatchRequest(org.olat.core.gui.UserRequest)
   */
  protected void doDispatchRequest(UserRequest ureq) {
    if (ureq.getParameter("cid") != null) {
      fireEvent(ureq, new Event(ureq.getParameter("cid")));
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.Event

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.