C# 클래스 Rock.Web.UI.Controls.ItemPicker

상속: System.Web.UI.WebControls.CompositeControl, IRockControl
파일 보기 프로젝트 열기: SparkDevNetwork/Rock

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
ItemPicker ( ) : System

Initializes a new instance of the ItemPicker class.

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

This is where you implment the simple aspects of rendering your control. The rest will be handled by calling RenderControlHelper's RenderControl() method.

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

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

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

Render any additional picker actions

SelectedValueAsId ( ) : int?

Returns the value of the currently selected item. It will return NULL if either T:Rock.Constants.None or T:Rock.Constants.All is selected. />

SelectedValueAsInt ( bool noneAsNull = true ) : int?

Gets the selected value as an integer, returning NULL if the selected value is "0"

SelectedValuesAsInt ( ) : IEnumerable

Selecteds the values as int.

SetValue ( int id ) : void

Sets the value.

SetValues ( IEnumerable ids ) : void

Sets the values.

ShowErrorMessage ( string errorMessage ) : void

Shows the error message.

보호된 메소드들

메소드 설명
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.

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.

RegisterJavaScript ( ) : void

Registers the java script.

SetValueOnSelect ( ) : void

Sets the value on select.

SetValuesOnSelect ( ) : void

Sets the values on select.

btnSelect_Click ( object sender, EventArgs e ) : void

Handles the Click event of the _btnSelect control.

메소드 상세

CreateChildControls() 보호된 메소드

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
리턴 void

ItemPicker() 공개 메소드

Initializes a new instance of the ItemPicker class.
public ItemPicker ( ) : System
리턴 System

OnInit() 보호된 메소드

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

OnLoad() 보호된 메소드

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

RegisterJavaScript() 보호된 메소드

Registers the java script.
protected RegisterJavaScript ( ) : void
리턴 void

RenderBaseControl() 공개 메소드

This is where you implment the simple aspects of rendering your control. The rest will be handled by calling RenderControlHelper's RenderControl() method.
public RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
리턴 void

RenderControl() 공개 메소드

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
public RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
리턴 void

RenderCustomPickerActions() 공개 메소드

Render any additional picker actions
public RenderCustomPickerActions ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
리턴 void

SelectedValueAsId() 공개 메소드

Returns the value of the currently selected item. It will return NULL if either T:Rock.Constants.None or T:Rock.Constants.All is selected. />
public SelectedValueAsId ( ) : int?
리턴 int?

SelectedValueAsInt() 공개 메소드

Gets the selected value as an integer, returning NULL if the selected value is "0"
public SelectedValueAsInt ( bool noneAsNull = true ) : int?
noneAsNull bool if set to true [none as null].
리턴 int?

SelectedValuesAsInt() 공개 메소드

Selecteds the values as int.
public SelectedValuesAsInt ( ) : IEnumerable
리턴 IEnumerable

SetValue() 공개 메소드

Sets the value.
public SetValue ( int id ) : void
id int The id.
리턴 void

SetValueOnSelect() 보호된 추상적인 메소드

Sets the value on select.
protected abstract SetValueOnSelect ( ) : void
리턴 void

SetValues() 공개 메소드

Sets the values.
public SetValues ( IEnumerable ids ) : void
ids IEnumerable The ids.
리턴 void

SetValuesOnSelect() 보호된 추상적인 메소드

Sets the values on select.
protected abstract SetValuesOnSelect ( ) : void
리턴 void

ShowErrorMessage() 공개 메소드

Shows the error message.
public ShowErrorMessage ( string errorMessage ) : void
errorMessage string The error message.
리턴 void

btnSelect_Click() 보호된 메소드

Handles the Click event of the _btnSelect control.
protected btnSelect_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
리턴 void