Package org.olat.core.gui.render.intercept

Examples of org.olat.core.gui.render.intercept.InterceptHandler


  }
 
  public void setForScreenReader(boolean forScreenReader) {
    this.forScreenReader = forScreenReader;
    if (forScreenReader) {
      screenreader_interceptHandler = new InterceptHandler() {

        public InterceptHandlerInstance createInterceptHandlerInstance() {
          return new ScreenReaderHandlerInstance();   
        }};
    } else {
View Full Code Here


    this.iframeName = "oaa"+wboId;
    window = new Window(windowName, this);
   
   
    // TODO make simpler, we do only need to support one intercept handler at a time!
    linkedInterceptHandler = new InterceptHandler() {
      public InterceptHandlerInstance createInterceptHandlerInstance() {
        InterceptHandler debugH = debug_interceptHandler;
        InterceptHandler screenReaderH = winmgrImpl.getScreenreader_interceptHandler();
        InterceptHandler inlineTranslationH = inlineTranslation_interceptHandler;
       
        final InterceptHandlerInstance debugI = debugH == null? null: debugH.createInterceptHandlerInstance();
        final InterceptHandlerInstance screenReaderI = screenReaderH == null? null: screenReaderH.createInterceptHandlerInstance();
        final InterceptHandlerInstance inlineTranslationI = (inlineTranslationH == null ? null : inlineTranslationH.createInterceptHandlerInstance());
       
        return new InterceptHandlerInstance() {

          public ComponentRenderer createInterceptComponentRenderer(ComponentRenderer originalRenderer) {
            ComponentRenderer toUse = originalRenderer;
View Full Code Here

            URLBuilder ubu = new URLBuilder(uriPrefix, getInstanceId(), newTimestamp, wbackofficeImpl);
            RenderResult renderResult = new RenderResult();
           
            // if we have an around-component-interception
            // set the handler for this render cycle
            InterceptHandler interceptHandler = wbackofficeImpl.getInterceptHandler();
            if (interceptHandler != null) {
              InterceptHandlerInstance dhri = interceptHandler.createInterceptHandlerInstance();
              renderResult.setInterceptHandlerRenderInstance(dhri);
            }
           
            Renderer fr = Renderer.getInstance(top, top.getTranslator(), ubu, renderResult, gsettings);
            long rstart = 0;
View Full Code Here

                renderResult = new RenderResult();

                // if we have an around-component-interception
                // set the handler for this render cycle
                InterceptHandler interceptHandler = wbackofficeImpl.getInterceptHandler();
                if (interceptHandler != null) {
                  InterceptHandlerInstance dhri = interceptHandler.createInterceptHandlerInstance();
                  renderResult.setInterceptHandlerRenderInstance(dhri);
                }

                Renderer fr = Renderer.getInstance(wrapper,null, ubu, renderResult, gsettings);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.render.intercept.InterceptHandler

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.