C# Class Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewContextAdapter

IViewComponentContext's implementation for NVelocity
Inheritance: IViewComponentContext
Mostrar archivo Open project: nats/castle-1.0.3-mono

Private Properties

Property Type Description
RegisterSection void

Public Methods

Method Description
HasSection ( String sectionName ) : bool

Determines whether the current component declaration on the view has the specified section.

NVelocityViewContextAdapter ( String componentName, NVelocity.Runtime.Parser.Node.INode parentNode, IViewEngine viewEngine, IViewRenderer renderer )

Initializes a new instance of the NVelocityViewContextAdapter class.

RenderBody ( ) : void

Renders the component body.

RenderBody ( TextWriter writer ) : void

Renders the body into the specified TextWriter

RenderSection ( String sectionName ) : void

Renders the the specified section

RenderSection ( string sectionName, TextWriter writer ) : void

Renders the the specified section

RenderView ( string name, TextWriter writer ) : void

Pendent

Private Methods

Method Description
RegisterSection ( SubSectionDirective section ) : void

Method Details

HasSection() public method

Determines whether the current component declaration on the view has the specified section.
public HasSection ( String sectionName ) : bool
sectionName String Name of the section.
return bool

NVelocityViewContextAdapter() public method

Initializes a new instance of the NVelocityViewContextAdapter class.
public NVelocityViewContextAdapter ( String componentName, NVelocity.Runtime.Parser.Node.INode parentNode, IViewEngine viewEngine, IViewRenderer renderer )
componentName String Name of the component.
parentNode NVelocity.Runtime.Parser.Node.INode The parent node.
viewEngine IViewEngine The view engine.
renderer IViewRenderer The view renderer.

RenderBody() public method

Renders the component body.
public RenderBody ( ) : void
return void

RenderBody() public method

Renders the body into the specified TextWriter
public RenderBody ( TextWriter writer ) : void
writer System.IO.TextWriter The writer.
return void

RenderSection() public method

Renders the the specified section
public RenderSection ( String sectionName ) : void
sectionName String Name of the section.
return void

RenderSection() public method

Renders the the specified section
public RenderSection ( string sectionName, TextWriter writer ) : void
sectionName string Name of the section.
writer System.IO.TextWriter The writer.
return void

RenderView() public method

Pendent
public RenderView ( string name, TextWriter writer ) : void
name string
writer System.IO.TextWriter
return void