Class ObjectCodeNameSelectorComponent
Object code name selector.
[ComponentAttribute(typeof(ObjectCodeNameSelectorComponentAttribute))]
public sealed class ObjectCodeNameSelectorComponent : MultipleObjectSelectorBase<ObjectCodenameSelectorProperties, string>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
- Inheritance
-
objectFormComponent<ObjectCodenameSelectorProperties, ObjectSelectorClientProperties<string>, IEnumerable<string>>ObjectSelectorBase<ObjectCodenameSelectorProperties, ObjectSelectorClientProperties<string>, IEnumerable<string>, string>ObjectCodeNameSelectorComponent
- Implements
- Inherited Members
- Extension Methods
Constructors
ObjectCodeNameSelectorComponent(IObjectsRetriever, IObjectSelectorWhereConditionProviderActivator, ILocalizationService)
Constructor.
public ObjectCodeNameSelectorComponent(IObjectsRetriever objectsRetriever, IObjectSelectorWhereConditionProviderActivator whereConditionProviderActivator, ILocalizationService localizationService)
Parameters
objectsRetriever
IObjectsRetrieverObjects retriever.
whereConditionProviderActivator
IObjectSelectorWhereConditionProviderActivatorWHERE condition provider activator.
localizationService
ILocalizationServiceLocalization service.
Fields
IDENTIFIER
Object code name selector identifier.
public const string IDENTIFIER = "Kentico.Administration.ObjectCodeNameSelector"
Field Value
- string
Methods
ConfigureComponent()
Configures the form component. This method is called when all form component properties are set.
protected override void ConfigureComponent()
Remarks
Override this method to set component inner state, like additional component validation rules.
ConvertFormComponentValue(IEnumerable<string>)
Extracts an array of selected object identifiers from component value for the sake of providing selected objects meta data to the client component.
protected override IEnumerable<string> ConvertFormComponentValue(IEnumerable<string> value)
Parameters
value
IEnumerable<string>Component value.
Returns
- IEnumerable<string>
ExtractValue(IDataContainer, ObjectTypeInfo)
Enables IObjectsRetriever to create an element from a source data.
protected override string ExtractValue(IDataContainer dataContainer, ObjectTypeInfo typeInfo)
Parameters
dataContainer
IDataContainerSource data.
typeInfo
ObjectTypeInfoType info.
Returns
- string