org.springframework.extensions.surf.site
Class EmptyRegionRenderer

java.lang.Object
  extended by org.springframework.extensions.surf.render.AbstractProcessor
      extended by org.springframework.extensions.surf.site.EmptyRegionRenderer
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, Processor

public class EmptyRegionRenderer
extends AbstractProcessor

Processor class which renders a null result. Used to render vacant "empty" regions when there are no bound components. A common use case for application that are not "design focused".

Author:
Kevin Roast

Constructor Summary
EmptyRegionRenderer()
           
 
Method Summary
 void executeBody(ProcessorContext pc)
          Executes the "body" of the processor output using the given processor context.
 void executeHeader(ProcessorContext pc)
          Executes the "header" of the processor output using the given processor context.
 boolean exists(ProcessorContext pc)
          Indicates whether the engine responsible for processing the body of the processor exists.
 
Methods inherited from class org.springframework.extensions.surf.render.AbstractProcessor
execute, executeFooter, getProperty, getRenderingDescriptor, getRenderingDescriptor, init, onApplicationEvent, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyRegionRenderer

public EmptyRegionRenderer()
Method Detail

executeHeader

public void executeHeader(ProcessorContext pc)
                   throws RendererExecutionException
Description copied from interface: Processor
Executes the "header" of the processor output using the given processor context.

Specified by:
executeHeader in interface Processor
Overrides:
executeHeader in class AbstractProcessor
Parameters:
pc - processorContext
Throws:
RendererExecutionException

executeBody

public void executeBody(ProcessorContext pc)
                 throws RendererExecutionException
Description copied from interface: Processor
Executes the "body" of the processor output using the given processor context.

Specified by:
executeBody in interface Processor
Specified by:
executeBody in class AbstractProcessor
Parameters:
pc - processorContext
Throws:
RendererExecutionException

exists

public boolean exists(ProcessorContext pc)
Description copied from interface: Processor
Indicates whether the engine responsible for processing the body of the processor exists.

Returns:


Copyright © 2009 SpringSource, Inc. All Rights Reserved.