Package org.olat.core.gui.components.form.flexible.impl.components

Examples of org.olat.core.gui.components.form.flexible.impl.components.SimpleFormErrorText


   * @return
   */
  public FormItem createSimpleErrorText(final String name, final String translatedText) {
    FormItem wrapper = new FormItemImpl(name) {
     
      SimpleFormErrorText mySimpleErrorTextC = new SimpleFormErrorText(name, translatedText);
     
      @SuppressWarnings("unchecked")
      @Override
      public void validate(@SuppressWarnings("unused")
      List validationResults) {
View Full Code Here


      if(labelTrsl == null && hasLabel()){
        throw new AssertException("Your label "+labelKey+" for formitem "+getName()+" is not available, please use the addXXX method with labelI18nKey and set it to null.");
      }
    }
    labelC = new SimpleLabelText(labelKey, labelTrsl);
    errorComponent = new SimpleFormErrorText(errorKey, translate(errorKey, errorParams));
    exampleC = new SimpleExampleText(exampleKey, translate(exampleKey, exampleParams));
    labelPanel.setContent(labelC);
    errorPanel.setContent(errorComponent);
    examplePanel.setContent(exampleC);
  }
View Full Code Here

  public void setErrorKey(String errorKey, String[] params) {
    this.hasError = true;
    this.errorKey = errorKey;
    this.errorParams = params;
    if (getTranslator() != null) {
      errorComponent = new SimpleFormErrorText(errorKey, translate(errorKey, errorParams));   
      errorPanel.setContent(errorComponent);
    }
    this.showError(hasError);
    this.getRootForm().getInitialComponent().setDirty(true);
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.form.flexible.impl.components.SimpleFormErrorText

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.