C# Class Rock.Web.UI.Controls.AttributeEditor

Custom attribute editor control
Inheritance: System.Web.UI.WebControls.CompositeControl, IHasValidationGroup
ファイルを表示 Open project: SparkDevNetwork/Rock Class Usage Examples

Private Properties

Property Type Description
CreateFieldTypeDetailControls void
RegisterClientScript void
_ddlFieldType_SelectedIndexChanged void

Public Methods

Method Description
GetAttributeProperties ( Rock attribute ) : void

Gets the attribute properties.

SetAttributeProperties ( Rock attribute, Type objectType = null ) : void

Sets the attribute properties.

Protected Methods

Method Description
CreateChildControls ( ) : void

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

LoadViewState ( object savedState ) : void

Restores view-state information from a previous request that was saved with the M:System.Web.UI.WebControls.WebControl.SaveViewState method.

OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

OnPreRender ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.PreRender event.

Render ( System.Web.UI.HtmlTextWriter writer ) : void

Writes the T:System.Web.UI.WebControls.CompositeControl content to the specified T:System.Web.UI.HtmlTextWriter object, for display on the client.

SaveViewState ( ) : object

Saves any state that was modified after the M:System.Web.UI.WebControls.Style.TrackViewState method was invoked.

btnCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnCancel control.

btnSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSave control.

cvKey_ServerValidate ( object source, System.Web.UI.WebControls.ServerValidateEventArgs args ) : void

Handles the ServerValidate event of the cvKey control.

Private Methods

Method Description
CreateFieldTypeDetailControls ( int fieldTypeId, bool recreate = false ) : void

Creates the field type detail controls.

RegisterClientScript ( ) : void

Registers the client script.

_ddlFieldType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the _ddlFieldType control.

Method Details

CreateChildControls() protected method

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
protected CreateChildControls ( ) : void
return void

GetAttributeProperties() public method

Gets the attribute properties.
public GetAttributeProperties ( Rock attribute ) : void
attribute Rock The attribute.
return void

LoadViewState() protected method

Restores view-state information from a previous request that was saved with the M:System.Web.UI.WebControls.WebControl.SaveViewState method.
protected LoadViewState ( object savedState ) : void
savedState object An object that represents the control state to restore.
return void

OnInit() protected method

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void

OnLoad() protected method

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
return void

OnPreRender() protected method

Raises the E:System.Web.UI.Control.PreRender event.
protected OnPreRender ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void

Render() protected method

Writes the T:System.Web.UI.WebControls.CompositeControl content to the specified T:System.Web.UI.HtmlTextWriter object, for display on the client.
protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter An that represents the output stream to render HTML content on the client.
return void

SaveViewState() protected method

Saves any state that was modified after the M:System.Web.UI.WebControls.Style.TrackViewState method was invoked.
protected SaveViewState ( ) : object
return object

SetAttributeProperties() public method

Sets the attribute properties.
public SetAttributeProperties ( Rock attribute, Type objectType = null ) : void
attribute Rock The attribute.
objectType System.Type Type of the object.
return void

btnCancel_Click() protected method

Handles the Click event of the btnCancel control.
protected btnCancel_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnSave_Click() protected method

Handles the Click event of the btnSave control.
protected btnSave_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

cvKey_ServerValidate() protected method

Handles the ServerValidate event of the cvKey control.
protected cvKey_ServerValidate ( object source, System.Web.UI.WebControls.ServerValidateEventArgs args ) : void
source object The source of the event.
args System.Web.UI.WebControls.ServerValidateEventArgs The instance containing the event data.
return void