C# Class SenseNet.Portal.UI.Controls.Binary

Inheritance: FieldControl, INamingContainer, ITemplateFieldControl
Mostra file Open project: maxpavlov/FlexNet Class Usage Examples

Private Properties

Property Type Description
RenderInnerControls void
SetBinaryDataProperties void

Public Methods

Method Description
Binary ( ) : System

Initializes a new instance of the Binary class.

GetData ( ) : object

Gets object data.

Exception handling and displayed is done at ContentView level; FormatExceptions and Exceptions are handled and displayed at this level. Should you need custom or localized error messages, throw a FieldControlDataException with your own error message.

GetInnerControl ( ) : Control
GetLabelForDescription ( ) : Control
GetLabelForTitleControl ( ) : Control
GetUploadeControl ( ) : Control
SetData ( object data ) : void

Sets data within the FieldControl

Protected Methods

Method Description
GetControlId ( Control control, Node node ) : string

Gets the control id.

InitTemplates ( ) : void
OnInit ( EventArgs e ) : void

Raises the E:Init event.

OnPreRender ( EventArgs e ) : void
RenderContents ( System.Web.UI.HtmlTextWriter writer ) : void

Renders the contents of the control to the specified writer. This method is used primarily by control developers.

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

Renders the editor.

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

Renders the HTML anchor.

Private Methods

Method Description
RenderInnerControls ( System.Web.UI.HtmlTextWriter writer ) : void

Renders the inner controls.

SetBinaryDataProperties ( BinaryData data, System.Web.UI.WebControls.FileUpload fileUpload, ITextControl editor ) : void

Method Details

Binary() public method

Initializes a new instance of the Binary class.
public Binary ( ) : System
return System

GetControlId() protected method

Gets the control id.
protected GetControlId ( Control control, Node node ) : string
control System.Web.UI.Control The control.
node Node The node.
return string

GetData() public method

Gets object data.
Exception handling and displayed is done at ContentView level; FormatExceptions and Exceptions are handled and displayed at this level. Should you need custom or localized error messages, throw a FieldControlDataException with your own error message.
public GetData ( ) : object
return object

GetInnerControl() public method

public GetInnerControl ( ) : Control
return System.Web.UI.Control

GetLabelForDescription() public method

public GetLabelForDescription ( ) : Control
return System.Web.UI.Control

GetLabelForTitleControl() public method

public GetLabelForTitleControl ( ) : Control
return System.Web.UI.Control

GetUploadeControl() public method

public GetUploadeControl ( ) : Control
return System.Web.UI.Control

InitTemplates() protected method

protected InitTemplates ( ) : void
return void

OnInit() protected method

Raises the E:Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
return void

OnPreRender() protected method

protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
return void

RenderContents() protected method

Renders the contents of the control to the specified writer. This method is used primarily by control developers.
protected RenderContents ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter A that represents the output stream to render HTML content on the client.
return void

RenderEditor() protected method

Renders the editor.
protected RenderEditor ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
return void

RenderHtmlAnchor() protected method

Renders the HTML anchor.
protected RenderHtmlAnchor ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
return void

SetData() public method

Sets data within the FieldControl
public SetData ( object data ) : void
data object Data of the Field wrapped
return void