ZPT-Sharp  v1.0.0
Zope Page Templates for .NET
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
CSF.Zpt.Rendering.IRenderingContext Interface Reference

Interface for a rendering context. More...

Inheritance diagram for CSF.Zpt.Rendering.IRenderingContext:
Collaboration diagram for CSF.Zpt.Rendering.IRenderingContext:

Public Member Functions

IRenderingContext[] GetChildContexts ()
 Creates and returns a collection of child contexts, from the current instance. More...
 
IRenderingContext CreateSiblingContext (IZptElement element, bool cloneAttributes=false)
 Creates and returns a new sibling rendering context. More...
 
IZptAttribute GetAttribute (ZptNamespace nspace, string attributeName)
 Gets an attribute matching the given namespace and attribute name. More...
 
OriginalAttributeValuesCollection GetOriginalAttributes ()
 Gets the original attributes present upon the element wrapped by the current instance. More...
 
void CopyTo (IModelValueContainer container)
 Copies the state of the current instance to a model value container. More...
 

Properties

new IModel MetalModel [get]
 Gets the object model available to the METAL environment. More...
 
new IModel TalModel [get]
 Gets the object model available to the TAL environment. More...
 
IZptElement Element [get]
 Gets the ZPT element. More...
 
IRenderingSettings RenderingOptions [get]
 Gets the rendering options. More...
 
string SourceAnnotationRootPath [get]
 Gets the 'virtual' root path for the purpose of source annotation comments. More...
 
- Properties inherited from CSF.Zpt.Rendering.IModelValueContainer
IModelValueStore MetalModel [get]
 Exposes access to the METAL model instance, for addition of data. More...
 
IModelValueStore TalModel [get]
 Exposes access to the TAL model instance, for addition of data. More...
 

Detailed Description

Interface for a rendering context.

Member Function Documentation

void CSF.Zpt.Rendering.IRenderingContext.CopyTo ( IModelValueContainer  container)

Copies the state of the current instance to a model value container.

Parameters
containerThe container.

Implemented in CSF.Zpt.Rendering.RenderingContext.

IRenderingContext CSF.Zpt.Rendering.IRenderingContext.CreateSiblingContext ( IZptElement  element,
bool  cloneAttributes = false 
)

Creates and returns a new sibling rendering context.

Returns
The sibling context.
Parameters
elementThe ZPT element for which the new context is to be created.
cloneAttributesA value indicating whether or not the element's attributes should be cloned or not.

Implemented in CSF.Zpt.Rendering.RenderingContext.

IZptAttribute CSF.Zpt.Rendering.IRenderingContext.GetAttribute ( ZptNamespace  nspace,
string  attributeName 
)

Gets an attribute matching the given namespace and attribute name.

Returns
The attribute, or a null reference if no attribute is found.
Parameters
nspaceThe attribute namespace.
attributeNameThe attribute name.

Implemented in CSF.Zpt.Rendering.RenderingContext.

IRenderingContext [] CSF.Zpt.Rendering.IRenderingContext.GetChildContexts ( )

Creates and returns a collection of child contexts, from the current instance.

Returns
The child contexts.

Implemented in CSF.Zpt.Rendering.RenderingContext.

OriginalAttributeValuesCollection CSF.Zpt.Rendering.IRenderingContext.GetOriginalAttributes ( )

Gets the original attributes present upon the element wrapped by the current instance.

Returns
The original attributes.

Implemented in CSF.Zpt.Rendering.RenderingContext.

Property Documentation

IZptElement CSF.Zpt.Rendering.IRenderingContext.Element
get

Gets the ZPT element.

The element.

new IModel CSF.Zpt.Rendering.IRenderingContext.MetalModel
get

Gets the object model available to the METAL environment.

The METAL model.

IRenderingSettings CSF.Zpt.Rendering.IRenderingContext.RenderingOptions
get

Gets the rendering options.

The rendering options.

string CSF.Zpt.Rendering.IRenderingContext.SourceAnnotationRootPath
get

Gets the 'virtual' root path for the purpose of source annotation comments.

The source annotation root path.

new IModel CSF.Zpt.Rendering.IRenderingContext.TalModel
get

Gets the object model available to the TAL environment.

The TAL model.


The documentation for this interface was generated from the following file: