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
ファイルを表示 Open project: jozilla/Uiml.net

Protected Properties

Property Type Description
m_stopOnError bool

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

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
return System.Object

ApplyProperty() public method

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
return void

GetMemberInfo() public method

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

GetMethodWithRightParameters() public method

public GetMethodWithRightParameters ( DParam dparams, MethodInfo methods ) : MethodInfo
dparams DParam
methods System.Reflection.MethodInfo
return System.Reflection.MethodInfo

LoadAdHocProperties() abstract protected method

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

LoadAdHocPropertiesAfter() protected method

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
return System.Object

PreRender() abstract public method

abstract public PreRender ( UimlDocument uimlDoc ) : IRenderedInstance
uimlDoc UimlDocument
return IRenderedInstance

Render() public method

public Render ( UimlDocument uimlDoc ) : IRenderedInstance
uimlDoc UimlDocument
return IRenderedInstance

Renderer() public method

public Renderer ( ) : Uiml
return Uiml

ResolveProperty() protected method

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
return System.Reflection.MemberInfo

SearchMembers() protected method

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

Property Details

m_stopOnError protected_oe property

protected bool m_stopOnError
return bool