Class ObjectIdSelectorComponent
Object id selector.
[ComponentAttribute(typeof(ObjectIdSelectorComponentAttribute))]
public sealed class ObjectIdSelectorComponent : MultipleObjectSelectorBase<ObjectSelectorProperties, int>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
- Inheritance
-
objectObjectSelectorBase<ObjectSelectorProperties, ObjectSelectorClientProperties<int>, IEnumerable<int>, int>ObjectIdSelectorComponent
- Implements
- Inherited Members
- Extension Methods
Constructors
ObjectIdSelectorComponent(IObjectsRetriever, IObjectSelectorWhereConditionProviderActivator, ILocalizationService)
Constructor.
public ObjectIdSelectorComponent(IObjectsRetriever objectsRetriever, IObjectSelectorWhereConditionProviderActivator whereConditionProviderActivator, ILocalizationService localizationService)
Parameters
objectsRetriever
IObjectsRetrieverObjects retriever.
whereConditionProviderActivator
IObjectSelectorWhereConditionProviderActivatorWHERE condition provider activator.
localizationService
ILocalizationServiceLocalization service.
Fields
IDENTIFIER
Object id selector identifier.
public const string IDENTIFIER = "Kentico.Administration.ObjectIdSelector"
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<int>)
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<int> value)
Parameters
value
IEnumerable<int>Component value.
Returns
- IEnumerable<string>
ExtractValue(IDataContainer, ObjectTypeInfo)
Enables IObjectsRetriever to create an element from a source data.
protected override int ExtractValue(IDataContainer dataContainer, ObjectTypeInfo typeInfo)
Parameters
dataContainer
IDataContainerSource data.
typeInfo
ObjectTypeInfoType info.
Returns
- int