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

IViewComponentContext's implementation for NVelocity
Inheritance: IViewComponentContext
Afficher le fichier Open project: nats/castle-1.0.3-mono

Private Properties

Свойство Type Description
RegisterSection void

Méthodes publiques

Méthode 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

Méthode Description
RegisterSection ( SubSectionDirective section ) : void

Method Details

HasSection() public méthode

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

NVelocityViewContextAdapter() public méthode

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 méthode

Renders the component body.
public RenderBody ( ) : void
Résultat void

RenderBody() public méthode

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

RenderSection() public méthode

Renders the the specified section
public RenderSection ( String sectionName ) : void
sectionName String Name of the section.
Résultat void

RenderSection() public méthode

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

RenderView() public méthode

Pendent
public RenderView ( string name, TextWriter writer ) : void
name string
writer System.IO.TextWriter
Résultat void