org.springframework.extensions.surf.render.bean
Class WebStudioRegionRenderer

java.lang.Object
  extended by org.springframework.extensions.surf.render.AbstractRenderer
      extended by org.springframework.extensions.surf.render.bean.RegionRenderer
          extended by org.springframework.extensions.surf.render.bean.WebStudioRegionRenderer
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, Renderer

public class WebStudioRegionRenderer
extends RegionRenderer

Modifies the way that components are rendered when Surf is running in preview mode. This allows Web Studio to pull "pulled in" to any Surf Preview application. Primarily, this enables the regions to output additional Web Studio specific JavaScript to bind client-side DOM elements together.

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.surf.render.AbstractRenderer
applicationContext, logger, processor
 
Constructor Summary
WebStudioRegionRenderer()
           
 
Method Summary
protected  WebStudioService getWebStudioService()
          Gets the web studio service.
 void postProcess(RenderContext context)
          Post-processing of regions
 void setWebStudioService(WebStudioService webStudioService)
          Sets the web studio service.
 
Methods inherited from class org.springframework.extensions.surf.render.bean.RegionRenderer
body, header
 
Methods inherited from class org.springframework.extensions.surf.render.AbstractRenderer
all, footer, getApplicationContext, getProcessor, getRenderService, getServiceRegistry, init, onApplicationEvent, print, print, render, setApplicationContext, setProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebStudioRegionRenderer

public WebStudioRegionRenderer()
Method Detail

setWebStudioService

public void setWebStudioService(WebStudioService webStudioService)
Sets the web studio service.

Parameters:
webStudioService - the new web studio service

getWebStudioService

protected WebStudioService getWebStudioService()
Gets the web studio service.

Returns:
the web studio service

postProcess

public void postProcess(RenderContext context)
                 throws IOException
Description copied from class: RegionRenderer
Post-processing of regions

Overrides:
postProcess in class RegionRenderer
Throws:
IOException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.