Examples of IntegerElement


Examples of org.olat.core.gui.components.form.flexible.elements.IntegerElement

    }
    return ie;
  }
 
  public IntegerElement addInlineIntegerElement(String name, int initVal, FormItemContainer formLayout, FormBasicController listener){
    IntegerElement iie = new IntegerElementImpl(name, initVal, true);
    iie.addActionListener(listener, FormEvent.ONCLICK);
    if(listener != null){
      formLayout.add(iie);
    }
    return iie;
  }
View Full Code Here

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

    }
   
    isAssessableEl = new CheckBoxElement("assessable.label", isAssessable);
    addFormElement("isassessable", isAssessableEl);
   
    cutValueEl = new IntegerElement("cutvalue.label", cutValue);
    addFormElement("cutvalue", cutValueEl);

    addSubmitKey("save","save");
 
  }
View Full Code Here

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

   
    description = new TextElement("cif.description", "", false, 255);
    addFormElement("cif_description", description);
   
    if (isAdmin) {
      id = new IntegerElement("cif.id");
      addFormElement("cif_id", id);
    } else {
      id = null;
    }
   
View Full Code Here

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

      passedType.select(ScoreCalculator.PASSED_TYPE_NONE, true); // default
    }

    int cutinitval = 0;
    if (scoreCalculator != null) cutinitval = scoreCalculator.getPassedCutValue();
    passedCutValue = new IntegerElement("scform.passedCutValue", cutinitval, 4);
    addFormElement("passedCutValue", passedCutValue);

    passedNodeIdents = initNodeSelectionElement("scform.passedNodeIndents", scoreCalculator, (scoreCalculator == null ? null
        : scoreCalculator.getPassedNodes()), nodeIdentList);
    addFormElement("passedNodeIdents", passedNodeIdents);
View Full Code Here

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

  /**
   * @param name
   */
  public PreviewForm(String name, Translator translator) {
    super(name, translator);
    telem = new IntegerElement("label.points");
    addFormElement("points", telem);
    setSubmitKey("save");
  }
View Full Code Here

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

   * @param isAdmin if true, no field must be filled in at all, otherwise
   *          validation takes place
   */
  public SelectionForm(String name, Translator translator) {
    super(name, translator);
    lastUsageDuration = new IntegerElement("edit.parameter.form.lastusage.duration", RepositoryDeletionManager.getInstance().getLastUsageDuration());
    addFormElement("lastUsageDuration", lastUsageDuration);
    emailDuration = new IntegerElement("edit.parameter.form.email.duration", RepositoryDeletionManager.getInstance().getDeleteEmailDuration());
    addFormElement("emailDuration", emailDuration);
    addSubmitKey("edit.parameter.form.submit", "submit");
    setCancelButton();
  }
View Full Code Here

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

   * @param isAdmin if true, no field must be filled in at all, otherwise
   *          validation takes place
   */
  public SelectionForm(String name, Translator translator) {
    super(name, translator);
    lastUsageDuration = new IntegerElement("edit.parameter.form.lastusage.duration", GroupDeletionManager.getInstance().getLastUsageDuration());
    addFormElement("lastUsageDuration", lastUsageDuration);
    emailDuration = new IntegerElement("edit.parameter.form.email.duration", GroupDeletionManager.getInstance().getDeleteEmailDuration());
    addFormElement("emailDuration", emailDuration);
    addSubmitKey("edit.parameter.form.submit", "submit");
    setCancelButton();
  }
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.