C# Class Habanero.Faces.Base.ControlNamingStrategy

This is the Naming strategy for naming controls generated by Faces for the various parts of the auto-generated user interfaces.
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
GetInputControlName ( IUIFormField formField ) : string

Get the name to use for an input control representing a IUIFormField.

GetLabelControlName ( IUIFormField formField ) : string

Get the name to use for a label control representing a IUIFormField.

GetUIFormControlName ( IUIForm uiForm ) : string

Get the name to use for a control representing a IUIForm.

GetUniqueControlNameWithin ( IControlHabanero containerControl, string name ) : string

Determines a unique name for the control within the context of the controls that already exist in the containerControl.

Method Details

GetInputControlName() public method

Get the name to use for an input control representing a IUIFormField.
public GetInputControlName ( IUIFormField formField ) : string
formField IUIFormField The to represent with the name.
return string

GetLabelControlName() public method

Get the name to use for a label control representing a IUIFormField.
public GetLabelControlName ( IUIFormField formField ) : string
formField IUIFormField The to represent with the name.
return string

GetUIFormControlName() public method

Get the name to use for a control representing a IUIForm.
public GetUIFormControlName ( IUIForm uiForm ) : string
uiForm IUIForm The to represent with the name.
return string

GetUniqueControlNameWithin() public method

Determines a unique name for the control within the context of the controls that already exist in the containerControl.
public GetUniqueControlNameWithin ( IControlHabanero containerControl, string name ) : string
containerControl IControlHabanero The control within which the supplied should be unique.
name string The name to be altered for uniqueness.
return string