Examples of DelegatingComponent


Examples of jfun.yan.DelegatingComponent

      return result;
    }
  }
  //useKey used in auto-wiring expects no property and argument, so optimize.
  private static Component useKey(final Object key){
    return new DelegatingComponent(Components.useKey(key)){
      public Object create(Dependency dep){
        final ComponentMap cmap = dep.getComponentMap();
        if(cmap instanceof Container){
          return ((Container)cmap).getInstance(key);
        }
View Full Code Here

Examples of jfun.yan.DelegatingComponent

      }
    };
  }
  //useKey used in auto-wiring expects no property and argument, so optimize.
  private static Component useType(final Class type){
    return new DelegatingComponent(Components.useType(type)){
      public Object create(Dependency dep){
        final ComponentMap cmap = dep.getComponentMap();
        if(cmap instanceof Container){
          return ((Container)cmap).getInstanceOfType(type);
        }
View Full Code Here

Examples of jfun.yan.DelegatingComponent

          final NutsContinuation cont = new NutsContinuation(exit, loc, id);
          frame = frame.put(exit, cont);
          final Object r = body.run(frame, runtime);
          if(r instanceof Component){
            final Component c = (Component)r;
            return new DelegatingComponent(c){
              public Object create(Dependency dep){
                try{
                  return super.create(dep);
                }
                catch(RuntimeException e){
View Full Code Here

Examples of org.olat.core.gui.components.delegating.DelegatingComponent

  InlineTranslationInterceptHandlerController(UserRequest ureq, WindowControl control) {
    super(ureq, control);
    // the deleagating component is ony used to provide the
    // inlineTranslationURLBuilder to be able to create the translation tool
    // links
    delegatingComponent = new DelegatingComponent("delegatingComponent", new ComponentRenderer() {
      public void render(Renderer renderer, StringOutput sb, Component source, URLBuilder ubu, Translator translator,
          RenderResult renderResult, String[] args) {
        // save urlbuilder for later use (valid only for one
        // request scope thus
        // transient, normally you may not save the url builder
View Full Code Here

Examples of org.olat.core.gui.components.delegating.DelegatingComponent

   * @param wControl needed for subsequent debug-actions e.g. on a modal screen
   */
  public GuiDebugDispatcherController(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);

    dc = new DelegatingComponent("deleg", new ComponentRenderer() {

      public void render(Renderer renderer, StringOutput sb, Component source, URLBuilder ubu, Translator translator,
          RenderResult renderResult, String[] args) {
        // save urlbuilder for later use (valid only for one request scope thus
        // transient, normally you may not save the url builder for later usage)
View Full Code Here

Examples of org.olat.core.gui.components.delegating.DelegatingComponent

  private boolean requiresFullPageRefresh = false;
 
  public JSAndCSSAdderImpl(WindowBackOfficeImpl wboImpl) {
    this.wboImpl = wboImpl;
    dc = new DelegatingComponent("jsAndCssAdderDeleComp", this);
    dc.setDomReplaceable(false);
    cssToRender = curCssList;
    jsToRender = curJsList;
  }
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.