C# Class SharpUI.TemplateControl

显示文件 Open project: duckmaestro/Sharp-UI Class Usage Examples

Protected Properties

Property Type Description
_hash_oNamedChildControls Dictionary
_hash_oNamedChildElements Dictionary

Private Properties

Property Type Description
AutoFillMemberFields void
CaptureMouse void
CaptureMouse void
CombinePaths string
FindTemplate string
FromRootElement TemplateControl
GenerateNewAutoCssClass string
GenerateNewAutoId string
GenerateNewInstanceId string
GetLocalId string
InitDocumentDetection void
InitDocumentMouseTracking void
MakeJQueryPosition jQueryApi.jQueryPosition
NotifyAddedToDocument void
NotifyPresented void
NotifyRemovedFromDocument void
OnIntervalCheckParent void
OnMouseDownDocument void
OnMouseMoveDocument void
OnMouseUpDocument void
ProcessCss void
ResolveTypeName string
StaticConstructor void
TemplateControl System
TemplateControl System
TryFromRootElement TemplateControl

Public Methods

Method Description
NotifyLayoutUpdated ( ) : void
TemplateControl ( object oTemplate ) : System

Protected Methods

Method Description
GetControl ( string strId ) : TemplateControl
GetElement ( string strId ) : jQueryObject
GetGroup ( string formFieldGroupname ) : jQueryObject
ProcessChildContent ( jQueryObject jqChildContent ) : void

If this control instance had content placed inside its declaration, this method is called with said content.

TryGetElement ( string strId ) : jQueryObject

Private Methods

Method Description
AutoFillMemberFields ( ) : void
CaptureMouse ( jQueryApi.jQueryEvent mouseEvent, MouseCaptureHandler h ) : void
CaptureMouse ( jQueryApi.jQueryEvent mouseEvent, MouseCaptureHandler h, string cssMouseCursor ) : void
CombinePaths ( string p1, string p2 ) : string
FindTemplate ( TemplateControl templateControl ) : string

For the given template control, retrieve its html template.

FromRootElement ( object elem ) : TemplateControl

Helper method. Retrieves the TemplateControl instance from its jQuery root element.

GenerateNewAutoCssClass ( ) : string
GenerateNewAutoId ( ) : string
GenerateNewInstanceId ( ) : string
GetLocalId ( jQueryObject jqElement ) : string
InitDocumentDetection ( ) : void
InitDocumentMouseTracking ( ) : void
MakeJQueryPosition ( double left, double top ) : jQueryApi.jQueryPosition
NotifyAddedToDocument ( ) : void
NotifyPresented ( ) : void
NotifyRemovedFromDocument ( ) : void
OnIntervalCheckParent ( ) : void
OnMouseDownDocument ( jQueryApi.jQueryEvent e ) : void
OnMouseMoveDocument ( jQueryApi.jQueryEvent e ) : void
OnMouseUpDocument ( jQueryApi.jQueryEvent e ) : void
ProcessCss ( TemplateControl rootControl, string strRawCss ) : void
ResolveTypeName ( string strShortName, string startingNamespace ) : string
StaticConstructor ( ) : void Proper static construct declaration conflicting with extern instance constructor. This is workaround.
TemplateControl ( ) : System
TemplateControl ( string strTemplate ) : System
TryFromRootElement ( object elem ) : TemplateControl

Method Details

GetControl() protected method

protected GetControl ( string strId ) : TemplateControl
strId string
return TemplateControl

GetElement() protected method

protected GetElement ( string strId ) : jQueryObject
strId string
return jQueryObject

GetGroup() protected method

protected GetGroup ( string formFieldGroupname ) : jQueryObject
formFieldGroupname string
return jQueryObject

NotifyLayoutUpdated() public method

public NotifyLayoutUpdated ( ) : void
return void

ProcessChildContent() protected method

If this control instance had content placed inside its declaration, this method is called with said content.
protected ProcessChildContent ( jQueryObject jqChildContent ) : void
jqChildContent jQueryObject
return void

TemplateControl() public method

public TemplateControl ( object oTemplate ) : System
oTemplate object
return System

TryGetElement() protected method

protected TryGetElement ( string strId ) : jQueryObject
strId string
return jQueryObject

Property Details

_hash_oNamedChildControls protected_oe property

protected Dictionary _hash_oNamedChildControls
return Dictionary

_hash_oNamedChildElements protected_oe property

protected Dictionary _hash_oNamedChildElements
return Dictionary