Package org.olat.core.logging

Examples of org.olat.core.logging.AssertException


        // this may happen -only- right after the login when the home page appears and as the next click the browser-reload button is pressed.
        // to avoid this rare case red screen, we return silently.
        if (diff == 0) { // reload
          return;         
        } else {
          throw new AssertException("rootWCI was null: never dispatched, but pressed back or forward??");
        }
      }
      int esize = guipathentries.size();
     
      // BACK case
View Full Code Here


      // since exactly one match, there is no ambiguity -> return the match
      return classMatches.get(0);
    } else {
      // classMatches > 1 -> ambiguity
      // brasato:: todo now compare the controller initialcomponents parent-hierarchy
      throw new AssertException("todo!!");
    }
  }
View Full Code Here

    return name;
  }

  @Override
  public boolean isInlineEditingOn() {
    if(!isInlineEditingElement) throw new AssertException("isInlineEditingOn called although it is not a inlineEditingElement");
    return isInlineEditingOn;
  }
View Full Code Here

    this.i18nKey4EmptyText = i18nKey4Text;
    return this;
  }
 
  public String getEmptyDisplayText(){
    if(getTranslator()==null) throw new AssertException("getEmptyDisplayText called to early, no translator available");
    return translate(i18nKey4EmptyText, null);
  }
View Full Code Here

    if(getTranslator()==null) throw new AssertException("getEmptyDisplayText called to early, no translator available");
    return translate(i18nKey4EmptyText, null);
  }
 
  protected void isInlineEditingOn(boolean isOn){
    if(!isInlineEditingElement) throw new AssertException("isInlineEditingOn(..) called although it is not a inlineEditingElement");
    isInlineEditingOn = isOn;
  }
View Full Code Here

    if(!isInlineEditingElement) throw new AssertException("isInlineEditingOn(..) called although it is not a inlineEditingElement");
    isInlineEditingOn = isOn;
  }
 
  protected Component getInlineEditingComponent(){
    if(!isInlineEditingElement) throw new AssertException("getInlineEditingComponent called although it is not a inlineEditingElement");
    return inlineEditingComponent;
  }
View Full Code Here

    if(!isInlineEditingElement) throw new AssertException("getInlineEditingComponent called although it is not a inlineEditingElement");
    return inlineEditingComponent;
  }
 
  protected void setInlineEditingComponent(Component inlineEditingComponent){
    if(!isInlineEditingElement) throw new AssertException("getInlineEditingComponent called although it is not a inlineEditingElement");
    this.inlineEditingComponent = inlineEditingComponent;
  }
View Full Code Here

      //in develmode, check that either translation for labelkey is available
      //or that the other method to add the element is used.
      //other in the sense of using the LabelI18nKey set to null, this
      //avoids false messages in the logfile concering missng translations.
      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));
View Full Code Here

   * @param container
   * @return this
   */
  public FormItem setLabelComponent(FormItem labelComponent, FormItemContainer container) {
    if(labelComponent == null){
      throw new AssertException("do not clear error by setting null, instead use showLabel(false).");
    }
   
    this.hasLabel = true;
    //initialize root form of form item
    FormLayoutContainer flc = (FormLayoutContainer)container;//TODO:pb: fix this hierarchy mismatch
View Full Code Here

  /**
   * @see org.olat.core.gui.components.form.flexible.FormComponent#setErrorController(org.olat.core.gui.control.Controller)
   */
  public void setErrorComponent(FormItem errorFormItem, FormLayouter container) {
    if(errorFormItem == null){
      throw new AssertException("do not clear error by setting null, instead use showError(false).");
    }
    //initialize root form of form item
    FormLayoutContainer flc = (FormLayoutContainer)container;//TODO:pb: fix this hierarchy mismatch
    flc.register(errorFormItem);//errorFormItem must be part of the composite chain, that it gets dispatched
   
View Full Code Here

TOP

Related Classes of org.olat.core.logging.AssertException

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.