Class ObjectSelectorComponent
Object selector form component.
[ComponentAttribute(typeof(ObjectSelectorComponentAttribute))]
public sealed class ObjectSelectorComponent : MultipleObjectSelectorBase<ObjectSelectorProperties, ObjectRelatedItem>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
- Inheritance
-
objectFormComponent<ObjectSelectorProperties, ObjectSelectorClientProperties<ObjectRelatedItem>, IEnumerable<ObjectRelatedItem>>ObjectSelectorBase<ObjectSelectorProperties, ObjectSelectorClientProperties<ObjectRelatedItem>, IEnumerable<ObjectRelatedItem>, ObjectRelatedItem>ObjectSelectorComponent
- Implements
- Inherited Members
- Extension Methods
Constructors
ObjectSelectorComponent(IObjectsRetriever, IObjectSelectorWhereConditionProviderActivator, ILocalizationService)
Constructor.
public ObjectSelectorComponent(IObjectsRetriever objectsRetriever, IObjectSelectorWhereConditionProviderActivator whereConditionProviderActivator, ILocalizationService localizationService)
Parameters
objectsRetriever
IObjectsRetrieverObjects retriever.
whereConditionProviderActivator
IObjectSelectorWhereConditionProviderActivatorWHERE condition provider activator.
localizationService
ILocalizationServiceLocalization service.
Methods
ConvertFormComponentValue(IEnumerable<ObjectRelatedItem>)
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<ObjectRelatedItem> value)
Parameters
value
IEnumerable<ObjectRelatedItem>Component value.
Returns
- IEnumerable<string>
ExtractValue(IDataContainer, ObjectTypeInfo)
Enables IObjectsRetriever to create an element from a source data.
protected override ObjectRelatedItem ExtractValue(IDataContainer dataContainer, ObjectTypeInfo typeInfo)
Parameters
dataContainer
IDataContainerSource data.
typeInfo
ObjectTypeInfoType info.