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

Inheritance: ViewControlBase, INamingContainer, IFieldControl
Afficher le fichier Open project: maxpavlov/FlexNet Class Usage Examples

Protected Properties

Свойство Type Description
DescriptionControlID string
InnerControlID string
InputUnitPanelID string
RequiredControlID string
TitleControlID string
_container System.Web.UI.Control
_field SenseNet.ContentRepository.Field
_fieldName string

Private Properties

Свойство Type Description
AddGlobalTemplate void
AddLocalTemplate void
AddTemplateTo void
InstantiateErrorTemplate void

Méthodes publiques

Méthode Description
ClearError ( ) : void

Clears the error message.

DoAutoConfigure ( FieldSetting setting ) : void
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.

GetOutputData ( OutputMethod method ) : string
RenderBeginTag ( System.Web.UI.HtmlTextWriter writer ) : void

Renders the beginning of the control

The opening tag of the wrapping container, Title and Description are rendered but not the control itself.

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

Renders the end part of the control

Tags left open in RenderBeginTag are closed.

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

Renders the description of the FieldControl.

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

Renders the title of the FieldControl.

SetData ( object data ) : void

Sets data within the FieldControl

SetErrorMessage ( string message ) : void

Sets the error message

Méthodes protégées

Méthode Description
FieldControl ( ) : System
GetInputUnitPanel ( ) : System.Web.UI.HtmlControls.HtmlGenericControl
GetRequiredControl ( ) : Control
InitTemplates ( ) : void
OnInit ( EventArgs e ) : void
OnLoad ( EventArgs e ) : void
Render ( System.Web.UI.HtmlTextWriter writer ) : void

Renders the control

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

Renders the error message

SetDataInternal ( ) : void
ShowErrorMessage ( ) : void

Shows the error message.

Private Methods

Méthode Description
AddGlobalTemplate ( string fieldControlName ) : void
AddLocalTemplate ( Control target, System.Web.UI.ControlCollection owner, ITemplate source, bool addErrorTemplate ) : void
AddTemplateTo ( Control target, System.Web.UI.ControlCollection owner, ITemplate source, bool addErrorTemplate ) : void
InstantiateErrorTemplate ( ) : void

Instantiates the error template.

Method Details

ClearError() public méthode

Clears the error message.
public ClearError ( ) : void
Résultat void

DoAutoConfigure() public méthode

public DoAutoConfigure ( FieldSetting setting ) : void
setting FieldSetting
Résultat void

FieldControl() protected méthode

protected FieldControl ( ) : System
Résultat System

GetData() public abstract méthode

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 abstract GetData ( ) : object
Résultat object

GetInputUnitPanel() protected méthode

protected GetInputUnitPanel ( ) : System.Web.UI.HtmlControls.HtmlGenericControl
Résultat System.Web.UI.HtmlControls.HtmlGenericControl

GetOutputData() public méthode

public GetOutputData ( OutputMethod method ) : string
method OutputMethod
Résultat string

GetRequiredControl() protected méthode

protected GetRequiredControl ( ) : Control
Résultat System.Web.UI.Control

InitTemplates() protected méthode

protected InitTemplates ( ) : void
Résultat void

OnInit() protected méthode

protected OnInit ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

Render() protected méthode

Renders the control
protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
Résultat void

RenderBeginTag() public méthode

Renders the beginning of the control
The opening tag of the wrapping container, Title and Description are rendered but not the control itself.
public RenderBeginTag ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
Résultat void

RenderEndTag() public méthode

Renders the end part of the control
Tags left open in RenderBeginTag are closed.
public RenderEndTag ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
Résultat void

RenderErrorMessage() protected méthode

Renders the error message
protected RenderErrorMessage ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
Résultat void

RenderFieldDescription() public méthode

Renders the description of the FieldControl.
public RenderFieldDescription ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
Résultat void

RenderFieldTitle() public méthode

Renders the title of the FieldControl.
public RenderFieldTitle ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
Résultat void

SetData() public abstract méthode

Sets data within the FieldControl
public abstract SetData ( object data ) : void
data object Data of the Field wrapped
Résultat void

SetDataInternal() protected méthode

protected SetDataInternal ( ) : void
Résultat void

SetErrorMessage() public méthode

Sets the error message
public SetErrorMessage ( string message ) : void
message string Error message to be set
Résultat void

ShowErrorMessage() protected méthode

Shows the error message.
protected ShowErrorMessage ( ) : void
Résultat void

Property Details

DescriptionControlID protected_oe property

protected string DescriptionControlID
Résultat string

InnerControlID protected_oe property

protected string InnerControlID
Résultat string

InputUnitPanelID protected_oe property

protected string InputUnitPanelID
Résultat string

RequiredControlID protected_oe property

protected string RequiredControlID
Résultat string

TitleControlID protected_oe property

protected string TitleControlID
Résultat string

_container protected_oe property

protected Control,System.Web.UI _container
Résultat System.Web.UI.Control

_field protected_oe property

The Field wrapped by the FieldControl
protected Field,SenseNet.ContentRepository _field
Résultat SenseNet.ContentRepository.Field

_fieldName protected_oe property

Name of the field that the FieldControl maps to
protected string _fieldName
Résultat string