C# 클래스 Castle.MonoRail.Framework.Views.NVelocity.CustomDirectives.AbstractComponentDirective

Pendent
상속: NVelocity.Runtime.Directive.Directive, IViewRenderer
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
AbstractComponentDirective ( IViewComponentFactory viewComponentFactory, IViewEngine viewEngine ) : NVelocity.Runtime.Parser.Node

Initializes a new instance of the AbstractComponentDirective class.

Init ( IRuntimeServices rs, NVelocity.Context.IInternalContextAdapter context, INode node ) : void
Render ( NVelocity.Context.IInternalContextAdapter context, TextWriter writer, INode node ) : bool
RenderComponentView ( NVelocity.Context.IInternalContextAdapter context, String viewToRender, TextWriter writer, NVelocityViewContextAdapter contextAdapter ) : bool

보호된 메소드들

메소드 설명
CreateParameters ( NVelocity.Context.IInternalContextAdapter context, INode node ) : IDictionary
ProcessSubSections ( ViewComponent component, NVelocityViewContextAdapter contextAdapter ) : void

비공개 메소드들

메소드 설명
CheckTemplateStack ( NVelocity.Context.IInternalContextAdapter context ) : void
Evaluate ( NVelocity.Runtime.Parser.Node.SimpleNode inlineNode, NVelocity.Context.IInternalContextAdapter context ) : object
GetTemplate ( String viewToRender, String encoding ) : NVelocity.Template
ProcessFirstParam ( INode node, NVelocity.Context.IInternalContextAdapter context, int childrenCount ) : IDictionary

Processes the first param. first param can either be the literal string 'with' which means the user is using the syntax #blockcomponent(ComponentName with "param1=value1" "param2=value2") or it could be a dictionary string like: #blockcomponent(ComponentName "#{ param1='value1', param2='value2' }") anything different than that will throw an exception

ProcessRemainingParams ( int childrenCount, INode node, NVelocity.Context.IInternalContextAdapter context ) : IDictionary
RenderView ( NVelocity.Context.IInternalContextAdapter context, String viewToRender, NVelocity.Template template, TextWriter writer ) : bool
SetUpEncoding ( NVelocity.Context.IInternalContextAdapter context ) : String

메소드 상세

AbstractComponentDirective() 공개 메소드

Initializes a new instance of the AbstractComponentDirective class.
public AbstractComponentDirective ( IViewComponentFactory viewComponentFactory, IViewEngine viewEngine ) : NVelocity.Runtime.Parser.Node
viewComponentFactory IViewComponentFactory The view component factory.
viewEngine IViewEngine The view engine instance
리턴 NVelocity.Runtime.Parser.Node

CreateParameters() 보호된 메소드

protected CreateParameters ( NVelocity.Context.IInternalContextAdapter context, INode node ) : IDictionary
context NVelocity.Context.IInternalContextAdapter
node INode
리턴 IDictionary

Init() 공개 메소드

public Init ( IRuntimeServices rs, NVelocity.Context.IInternalContextAdapter context, INode node ) : void
rs IRuntimeServices
context NVelocity.Context.IInternalContextAdapter
node INode
리턴 void

ProcessSubSections() 보호된 메소드

protected ProcessSubSections ( ViewComponent component, NVelocityViewContextAdapter contextAdapter ) : void
component Castle.MonoRail.Framework.ViewComponent
contextAdapter NVelocityViewContextAdapter
리턴 void

Render() 공개 메소드

public Render ( NVelocity.Context.IInternalContextAdapter context, TextWriter writer, INode node ) : bool
context NVelocity.Context.IInternalContextAdapter
writer System.IO.TextWriter
node INode
리턴 bool

RenderComponentView() 공개 메소드

public RenderComponentView ( NVelocity.Context.IInternalContextAdapter context, String viewToRender, TextWriter writer, NVelocityViewContextAdapter contextAdapter ) : bool
context NVelocity.Context.IInternalContextAdapter
viewToRender String
writer System.IO.TextWriter
contextAdapter NVelocityViewContextAdapter
리턴 bool