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

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


   * @param text
   * @param formLayout
   * @return
   */
  public FormItem addStaticExampleText(String name, String i18nLabel, String text, FormItemContainer formLayout){
    final SimpleExampleText set = new SimpleExampleText(name, text);
    //wrap the SimpleExampleText Component within a FormItem
    FormItem fiWrapper = new FormItemImpl("simpleExampleTextWrapper_"+name) {
     
      @Override
      protected Component getFormItemComponent() {
View Full Code Here


        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 setExampleKey(String exampleKey, String[] params) {
    hasExample = true;
    this.exampleKey = exampleKey;
    this.exampleParams = params;
    if (getTranslator() != null) {
      exampleC = new SimpleExampleText(exampleKey, translate(exampleKey, params));
      examplePanel.setContent(exampleC);
    }
  }
View Full Code Here

TOP

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

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.