Package org.olat.core.gui.formelements

Examples of org.olat.core.gui.formelements.SelectionElement


    List rules = f.getVisibilityDependsOnSelectionRules();
    Iterator iter = rules.iterator();
    while (iter.hasNext()) {
      VisibilityDependsOnSelectionRule rule = (VisibilityDependsOnSelectionRule) iter.next();
      FormElement dependentElement = rule.getDependentElement();
      SelectionElement selection = rule.getSelectionElement();
      String resetValueOrig = rule.getResetValue();
      String resetValue = null;
      if (resetValueOrig != null) {
        // quote return caracters to fill into js variable
        resetValue = resetValueOrig.replaceAll("\n", "\\\\n");
        resetValue = resetValue.replaceAll("\r", "\\\\n");
      }
      sb.append("b_form_updateFormElementVisibility('")
      .append(f.getComponentName())
      .append("','")
      .append(selection.getName())
      .append("','")
      .append(dependentElement.getName())
      .append("','")
      .append(rule.getVisibilityRuleValue())
      .append("',")
View Full Code Here

TOP

Related Classes of org.olat.core.gui.formelements.SelectionElement

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.