C# Класс Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewContextAdapter

IViewComponentContext's implementation for NVelocity
Наследование: IViewComponentContext
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
RegisterSection void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
RegisterSection ( SubSectionDirective section ) : void

Описание методов

HasSection() публичный Метод

Determines whether the current component declaration on the view has the specified section.
public HasSection ( String sectionName ) : bool
sectionName String Name of the section.
Результат bool

NVelocityViewContextAdapter() публичный Метод

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() публичный Метод

Renders the component body.
public RenderBody ( ) : void
Результат void

RenderBody() публичный Метод

Renders the body into the specified TextWriter
public RenderBody ( TextWriter writer ) : void
writer System.IO.TextWriter The writer.
Результат void

RenderSection() публичный Метод

Renders the the specified section
public RenderSection ( String sectionName ) : void
sectionName String Name of the section.
Результат void

RenderSection() публичный Метод

Renders the the specified section
public RenderSection ( string sectionName, TextWriter writer ) : void
sectionName string Name of the section.
writer System.IO.TextWriter The writer.
Результат void

RenderView() публичный Метод

Pendent
public RenderView ( string name, TextWriter writer ) : void
name string
writer System.IO.TextWriter
Результат void