C# Класс Uiml.Rendering.Renderer

This class implements widget set independent behavior for the widget set specific backends. It implements the general core (widget creation, applying properties on widgets) of the rendering backends.
Наследование: IRenderer
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_stopOnError bool

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

Метод Описание
ApplyProperty ( Part part, System.Property prop ) : void

This is the implementation of the method specified in the IPropertySetter Interface For now it is implemented in the rendering engine itself, but when it becomes too complex the IPropertySetter implementation will be isolated from this rendering class.

If part is null, the top part will be assumed

GetMemberInfo ( string setter, Type classType, Part part, System.Property p ) : MemberInfo
GetMethodWithRightParameters ( DParam dparams, MethodInfo methods ) : MethodInfo
PreRender ( UimlDocument uimlDoc ) : IRenderedInstance
Render ( UimlDocument uimlDoc ) : IRenderedInstance
Renderer ( ) : Uiml

Защищенные методы

Метод Описание
ApplyProperties ( System uiObject, Part part, Style style ) : Object

Applies several properties to an individual concrete widget instance. It implements two stages: - In the first stage the widget properties are applied completely dynamic: relying on the reflection mechanisms the Style properties are queried and loaded - When the first stage fails, another method is called using ad hoc knowledge about the widget and its properties

LoadAdHocProperties ( System &uiObject, Part part, Style s ) : Object
LoadAdHocPropertiesAfter ( System &uiObject, Part part, Style s ) : Object

Used to set ad-hoc properties after the other properties have been set.

ResolveProperty ( Type baseT, String newT, Type &retType, System &nextValue ) : MemberInfo

Dissects the method information for a specific property

SearchMembers ( Type t, string setter ) : System.Reflection.MemberInfo[]

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

Метод Описание
AddDefaultProperties ( Part part, Style style ) : void
ApplyProperty ( System &uiObject, System.Property p, Part part, Type tclassType ) : Object

This method sets the concrete property on a concrete widget. It is the most important method to get the defined properties reflected in the User Interface

InvokeMethod ( System targetObject, Part part, System.Property prop, MethodInfo mInfo ) : void

Invokes the method "setter" that sets the value of the property prop for the object targetObject

LoadClassProperties ( System &uiObject, Part part, Style style ) : Object

Loads the class properties available in style for the gtkObject widget

LoadNamedProperties ( System &uiObject, Part part, Style style ) : Object

Loads the named properties available in style for the gtkObject widget

LoadPartProperties ( System &uiObject, Part part ) : Object
SetProperty ( System targetObject, System.Property prop, PropertyInfo pInfo ) : void

Sets the value of property p for the object targetobject

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

ApplyProperties() защищенный Метод

Applies several properties to an individual concrete widget instance. It implements two stages: - In the first stage the widget properties are applied completely dynamic: relying on the reflection mechanisms the Style properties are queried and loaded - When the first stage fails, another method is called using ad hoc knowledge about the widget and its properties
protected ApplyProperties ( System uiObject, Part part, Style style ) : Object
uiObject System
part Part
style Uiml.Style
Результат System.Object

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

This is the implementation of the method specified in the IPropertySetter Interface For now it is implemented in the rendering engine itself, but when it becomes too complex the IPropertySetter implementation will be isolated from this rendering class.
If part is null, the top part will be assumed
public ApplyProperty ( Part part, System.Property prop ) : void
part Part The part on which prop will be applied
prop System.Property the property that will be applied
Результат void

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

public GetMemberInfo ( string setter, Type classType, Part part, System.Property p ) : MemberInfo
setter string
classType System.Type
part Part
p System.Property
Результат System.Reflection.MemberInfo

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

public GetMethodWithRightParameters ( DParam dparams, MethodInfo methods ) : MethodInfo
dparams DParam
methods System.Reflection.MethodInfo
Результат System.Reflection.MethodInfo

LoadAdHocProperties() абстрактный защищенный Метод

abstract protected LoadAdHocProperties ( System &uiObject, Part part, Style s ) : Object
uiObject System
part Part
s Uiml.Style
Результат System.Object

LoadAdHocPropertiesAfter() защищенный Метод

Used to set ad-hoc properties after the other properties have been set.
protected LoadAdHocPropertiesAfter ( System &uiObject, Part part, Style s ) : Object
uiObject System
part Part
s Uiml.Style
Результат System.Object

PreRender() абстрактный публичный Метод

abstract public PreRender ( UimlDocument uimlDoc ) : IRenderedInstance
uimlDoc UimlDocument
Результат IRenderedInstance

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

public Render ( UimlDocument uimlDoc ) : IRenderedInstance
uimlDoc UimlDocument
Результат IRenderedInstance

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

public Renderer ( ) : Uiml
Результат Uiml

ResolveProperty() защищенный Метод

Dissects the method information for a specific property
protected ResolveProperty ( Type baseT, String newT, Type &retType, System &nextValue ) : MemberInfo
baseT System.Type
newT String
retType System.Type
nextValue System
Результат System.Reflection.MemberInfo

SearchMembers() защищенный Метод

protected SearchMembers ( Type t, string setter ) : System.Reflection.MemberInfo[]
t System.Type
setter string
Результат System.Reflection.MemberInfo[]

Описание свойств

m_stopOnError защищенное свойство

protected bool m_stopOnError
Результат bool