Examples of visitAll()


Examples of org.olat.core.util.component.ComponentTraverser.visitAll()

        if (comp.getParent().getComponent(childName) == comp) {
          founds.add(comp);
        }
        return true;
      }}, searchRoot, true);
    ct.visitAll(null);
    return founds;
  }
}
View Full Code Here

Examples of org.olat.core.util.component.ComponentTraverser.visitAll()

      awin = (Window) it_wins.next();

      // find the correct component within the window
      MyVisitor v = new MyVisitor(compToFind);
      ComponentTraverser ct = new ComponentTraverser(v, awin.getContentPane(), false);
      ct.visitAll(null);
      if (v.f != null) return awin;

    }
    return null;
  }
View Full Code Here

Examples of org.olat.core.util.component.ComponentTraverser.visitAll()

              if (inline || !validForDispatching) {
                Container top = getContentPane();
                // always validate here, since we are never in the case of just rerendering (we are in the bg iframe)
                ValidatingVisitor vv = new ValidatingVisitor(gsettings, jsAndCssAdder);
                ComponentTraverser ct = new ComponentTraverser(vv, top, false);
                ct.visitAll(ureq);
                wbackofficeImpl.fireCycleEvent(Window.AFTER_VALIDATING);
                //fire possible OLDTIMESTAMPCALL after validation
                //validation does a voting about where the GUIMsg is rendered
                if(!validForDispatching){
                  // not valid: fire oldtimestamp event and later rerender
View Full Code Here

Examples of org.olat.core.util.component.ComponentTraverser.visitAll()

          if (validate) { // do not validate if a previous validate lead to a
            // redirect; validating makes no sense here
            //long t1 = System.currentTimeMillis();
            ValidatingVisitor vv = new ValidatingVisitor(gsettings, jsAndCssAdder);
            ComponentTraverser ct = new ComponentTraverser(vv, top, false);
            ct.visitAll(ureq);
            wbackofficeImpl.fireCycleEvent(Window.AFTER_VALIDATING);
            ValidationResult vr = vv.getValidationResult();
            String newModUri = vr.getNewModuleURI();

            vr.getJsAndCSSAdder().finishAndCheckChange(); // ignore the return value since we are just about rendering anyway
View Full Code Here

Examples of org.olat.core.util.component.ComponentTraverser.visitAll()

            visitChildren = true;
          }       
          return visitChildren;
        }};
      ComponentTraverser ct = new ComponentTraverser(dirtyV, getContentPane(), false);
      ct.visitAll(null);
     
      int dCnt = dirties.size();
      if (dCnt > 0) { // collect the redraw dirties command
        try {     
          JSONObject root = new JSONObject();
View Full Code Here

Examples of org.olat.core.util.component.FormComponentTraverser.visitAll()

    // step 1: call evalFormRequest(ureq) on each FormComponent this gives
    // ....... for each element the possibility to intermediate save a value.
    // ....... As a sideeffect the formcomponent to be dispatched is found.
    EvaluatingFormComponentVisitor efcv = new EvaluatingFormComponentVisitor(dispatchUri);
    FormComponentTraverser ct = new FormComponentTraverser(efcv, formLayout, false);
    ct.visitAll(ureq);
    // step 2: dispatch to the form component
    // ......... only one component to be dispatched can be found, e.g. clicked
    // ......... element....................................................
    // ......... dispatch changes server model -> rerendered
    // ......... dispatch may also request a form validation by
View Full Code Here

Examples of org.olat.core.util.component.FormComponentTraverser.visitAll()

        // .......... check dependency rules
        // .......... apply dependency rules
        FindParentFormComponentVisitor fpfcv = new FindParentFormComponentVisitor(
            dispatchFormItem);
        ct = new FormComponentTraverser(fpfcv, formLayout, false);
        ct.visitAll(ureq);
        fpfcv.getParent().evalDependencyRuleSetFor(ureq, dispatchFormItem);
      }
    }
    //
    action = -1;
View Full Code Here

Examples of org.olat.core.util.component.FormComponentTraverser.visitAll()

   * @param ureq
   */
  public void submit(UserRequest ureq) {
    ValidatingFormComponentVisitor vfcv = new ValidatingFormComponentVisitor();
    FormComponentTraverser ct = new FormComponentTraverser(vfcv, formLayout, false);
    ct.visitAll(ureq);
    // validate all form elements and gather validation status
    ValidationStatus[] status = vfcv.getStatus();
    //
    boolean isValid = status == null || status.length == 0;
    // let the businesslogic validate this is implemented by the outside listener
View Full Code Here

Examples of org.olat.core.util.component.FormComponentTraverser.visitAll()

   * @param ureq
   */
  public void reset(UserRequest ureq) {
    ResettingFormComponentVisitor rfcv = new ResettingFormComponentVisitor();
    FormComponentTraverser ct = new FormComponentTraverser(rfcv, formLayout, false);
    ct.visitAll(ureq);//calls reset on all elements!
    //
    evalAllFormDependencyRules(ureq);
    //
    formWrapperComponent.fireFormEvent(ureq, FormEvent.RESET);
    hasAlreadyFired = true;
View Full Code Here

Examples of org.olat.core.util.component.FormComponentTraverser.visitAll()

   * @param ureq
   */
  void evalAllFormDependencyRules(UserRequest ureq) {
    FormDependencyRulesInitComponentVisitor fdrocv = new FormDependencyRulesInitComponentVisitor();
    FormComponentTraverser ct = new FormComponentTraverser(fdrocv, formLayout, false);
    ct.visitAll(ureq);//visit all container and eval container with its elements!
  }

  public boolean isSubmittedAndValid(){
    return isValidAndSubmitted;
  }
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.