com.ideo.sweetdevria.builder
Class ComponentBuilder

java.lang.Object
  extended by com.ideo.sweetdevria.builder.ComponentBuilder

public class ComponentBuilder
extends java.lang.Object


Constructor Summary
ComponentBuilder()
          Default constructor.
 
Method Summary
 void addContext(java.util.Map params)
          Add entries to the context.
 void addContext(java.lang.String key, java.lang.Object value)
          Add an entry to the context.
 void buildEnd(java.io.Writer writer)
          Build the end part, using default Velocity template.
 void buildEnd(java.io.Writer writer, java.lang.String velocityTemplatePath)
          Build the start part using Velocity template given by parameter.
 void buildStart(java.io.Writer writer)
          Build the start part, using default Velocity template.
 void buildStart(java.io.Writer writer, java.lang.String velocityTemplatePath)
          Build the start part using Velocity template given by parameter.
 BuilderConfig getConfig()
          Get the config.
 RIAContext getInternalContext()
          Get the internalContext.
 void setConfig(BuilderConfig config)
          Set the config.
 void setInternalContext(RIAContext internalContext)
          Set the internalContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentBuilder

public ComponentBuilder()
Default constructor.

Method Detail

getInternalContext

public RIAContext getInternalContext()
Get the internalContext.

Returns:
Returns the internalContext.

setInternalContext

public void setInternalContext(RIAContext internalContext)
Set the internalContext.

Parameters:
internalContext - The internalContext to set.

addContext

public void addContext(java.util.Map params)
Add entries to the context.

Parameters:
params -

addContext

public void addContext(java.lang.String key,
                       java.lang.Object value)
Add an entry to the context.

Parameters:
key -
value -

getConfig

public BuilderConfig getConfig()
Get the config.

Returns:
Returns the config.

setConfig

public void setConfig(BuilderConfig config)
Set the config.

Parameters:
config - The config to set.

buildStart

public void buildStart(java.io.Writer writer)
                throws java.lang.Exception
Build the start part, using default Velocity template.

Parameters:
writer -
Throws:
java.lang.Exception

buildEnd

public void buildEnd(java.io.Writer writer)
              throws java.lang.Exception
Build the end part, using default Velocity template.

Parameters:
writer -
Throws:
java.lang.Exception

buildStart

public void buildStart(java.io.Writer writer,
                       java.lang.String velocityTemplatePath)
                throws java.lang.Exception
Build the start part using Velocity template given by parameter.

Parameters:
writer -
velocityTemplatePath - Velocity template path.
Throws:
java.lang.Exception

buildEnd

public void buildEnd(java.io.Writer writer,
                     java.lang.String velocityTemplatePath)
              throws java.lang.Exception
Build the start part using Velocity template given by parameter.

Parameters:
writer -
velocityTemplatePath - Velocity template path.
Throws:
java.lang.Exception


Copyright © 2010 Ideo Technologies. All Rights Reserved.