Examples of FormItem


Examples of org.olat.core.gui.components.form.flexible.FormItem

  /**
   * @see org.olat.core.gui.components.form.flexible.FormDecorator#hasError(java.lang.String)
   */
  public boolean hasError(String formItemName) {
    FormItem foco = getFormItem(formItemName);
    return foco == null ? false : foco.hasError();
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.FormItem

  /**
   * @see org.olat.core.gui.components.form.flexible.FormDecorator#hasExample(java.lang.String)
   */
  public boolean hasExample(String formItemName) {
    FormItem foco = getFormItem(formItemName);
    return foco == null ? false : foco.hasExample();
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.FormItem

  /**
   * @see org.olat.core.gui.components.form.flexible.FormDecorator#hasLabel(java.lang.String)
   */
  public boolean hasLabel(String formItemName) {
    FormItem foco = getFormItem(formItemName);
    return foco == null ? false : foco.hasLabel();
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.FormItem

  /**
   * @see org.olat.core.gui.components.form.flexible.FormDecorator#isMandatory(java.lang.String)
   */
  public boolean isMandatory(String formItemName) {
    FormItem foco = getFormItem(formItemName);
    return foco == null ? false : foco.isMandatory();
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.FormItem

  /**
   * @see org.olat.core.gui.components.form.flexible.FormDecorator#isEnabled(java.lang.String)
   */
  public boolean isEnabled(String formItemName) {
    FormItem foco = getFormItem(formItemName);
    return foco == null ? false : foco.isEnabled();
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.FormItem

  /**
   * @see org.olat.core.gui.components.form.flexible.FormDecorator#isVisible(java.lang.String)
   */
  public boolean isVisible(String formItemName) {
    FormItem foco = getFormItem(formItemName);
    return foco == null ? false : foco.isVisible();
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.FormItem

  /**
   * @see org.olat.core.gui.components.form.flexible.FormDecorator#getItemId(java.lang.String)
   */
  public String getItemId(String formItemName) {
    FormItem foco = getFormItem(formItemName);
    return foco == null ? "" : foco.getFormDispatchId();
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.FormItem

  /**
   * @see org.olat.core.gui.components.form.flexible.FormDecorator#isSpacerElement(java.lang.String)
   */
  public boolean isSpacerElement(String formItemName) {
    FormItem item = getFormItem(formItemName);
    if (item == null)
      return false;
    else
      return (item instanceof SpacerElement);
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.FormItem

   * @param formItemName
   * @return
   */
  private FormItem getFormItem(String formItemName) {
    Map<String, FormItem> comps = container.getFormComponents();
    FormItem foco = comps.get(formItemName);
    return foco;
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.FormItem

    // ......... 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
    // ......... calling the submit
    FormItem dispatchFormItem = efcv.getDispatchToComponent();
    //.......... doDispatchFormRequest is called on the found item
    //.......... which in turn may call submit(UserRequest ureq).
    //.......... After submitting, which fires a ok/nok event
    //.......... the code goes further with step 3.........................
    if (implicitFormSubmit) {
      //implicit Submit (Press Enter without on a Field without submit item.)
      // see also OLAT-3141
      submit(ureq);
    }else{
      if (dispatchFormItem == null) {
        // source not found. This "never happens". Try to produce some hints.
        String fbc = new String();
        for (FormBasicController i: formListeners) {
          if (fbc.length()>0) {
            fbc += ",";
          }
          fbc+=(i.getClass().getName());
        }
        logWarn("OLAT-5061: Could not determine request source in FlexiForm >"+formName+"<. Check >"+fbc+"<", null);
       
        // TODO: what now?
        // Assuming the same as "implicitFormSubmit" for now.
        submit(ureq);
       
      } else {
        // ****************************************
        // explicit Submit or valid form dispatch *
        // ****************************************
        dispatchFormItem.doDispatchFormRequest(ureq);
        // step 3: find parent container of dispatched component
        // .......... check dependency rules
        // .......... apply dependency rules
        FindParentFormComponentVisitor fpfcv = new FindParentFormComponentVisitor(
            dispatchFormItem);
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.