C# Class 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.
Inheritance: IRenderer
Afficher le fichier Open project: jozilla/Uiml.net

Protected Properties

Свойство Type Description
m_stopOnError bool

Méthodes publiques

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

Méthodes protégées

Méthode Description
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[]

Private Methods

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

Method Details

ApplyProperties() protected méthode

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
Résultat System.Object

ApplyProperty() public méthode

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
Résultat void

GetMemberInfo() public méthode

public GetMemberInfo ( string setter, Type classType, Part part, System.Property p ) : MemberInfo
setter string
classType System.Type
part Part
p System.Property
Résultat System.Reflection.MemberInfo

GetMethodWithRightParameters() public méthode

public GetMethodWithRightParameters ( DParam dparams, MethodInfo methods ) : MethodInfo
dparams DParam
methods System.Reflection.MethodInfo
Résultat System.Reflection.MethodInfo

LoadAdHocProperties() abstract protected méthode

abstract protected LoadAdHocProperties ( System &uiObject, Part part, Style s ) : Object
uiObject System
part Part
s Uiml.Style
Résultat System.Object

LoadAdHocPropertiesAfter() protected méthode

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
Résultat System.Object

PreRender() abstract public méthode

abstract public PreRender ( UimlDocument uimlDoc ) : IRenderedInstance
uimlDoc UimlDocument
Résultat IRenderedInstance

Render() public méthode

public Render ( UimlDocument uimlDoc ) : IRenderedInstance
uimlDoc UimlDocument
Résultat IRenderedInstance

Renderer() public méthode

public Renderer ( ) : Uiml
Résultat Uiml

ResolveProperty() protected méthode

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
Résultat System.Reflection.MemberInfo

SearchMembers() protected méthode

protected SearchMembers ( Type t, string setter ) : System.Reflection.MemberInfo[]
t System.Type
setter string
Résultat System.Reflection.MemberInfo[]

Property Details

m_stopOnError protected_oe property

protected bool m_stopOnError
Résultat bool