Class ContentLanguageEdit
General tab of the language edit page.
public sealed class ContentLanguageEdit : InfoEditPage<ContentLanguageInfo>, IPage
- Inheritance
-
objectContentLanguageEdit
- Implements
- Inherited Members
- Extension Methods
Constructors
ContentLanguageEdit(IFormComponentMapper, IFormDataBinder, IContentLanguageRetriever)
Initializes a new instance of the ContentLanguageEdit class.
public ContentLanguageEdit(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IContentLanguageRetriever contentLanguageRetriever)
Parameters
formComponentMapper
IFormComponentMapperformDataBinder
IFormDataBindercontentLanguageRetriever
IContentLanguageRetriever
Properties
EditContentLanguageNameEvent
Edit language name event.
public EditContentLanguageNameHandler EditContentLanguageNameEvent { get; }
Property Value
ObjectId
ID of the language.
[PageParameter(typeof(IntPageModelBinder))]
public override int ObjectId { get; set; }
Property Value
- int
Methods
ConfigurePage()
Set up page's configuration. Configures the submit action.
public override Task ConfigurePage()
Returns
- Task
GetFormItems()
Prepares form items for editing object of the specified ObjectType.
protected override Task<ICollection<IFormItem>> GetFormItems()
Returns
- Task<ICollection<IFormItem>>
Returns the collection of form items.
GetFormItemsClientProperties()
Returns properties describing client form components for editing object.
protected override Task<IEnumerable<IFormItemClientProperties>> GetFormItemsClientProperties()
Returns
- Task<IEnumerable<IFormItemClientProperties>>
Exceptions
- InvalidOperationException
Thrown when object instance is null or data class info for ObjectType was not found.
SetFormData(ContentLanguageInfo, IFormFieldValueProvider)
Sets the infoObject
.
protected override Task SetFormData(ContentLanguageInfo infoObject, IFormFieldValueProvider fieldValueProvider)
Parameters
infoObject
ContentLanguageInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
Returns
- Task
SubmitInternal(FormSubmissionCommandArguments, ICollection<IFormItem>, IFormFieldValueProvider)
Handles the internal specific processing of form submit command.
protected override Task<ICommandResponse> SubmitInternal(FormSubmissionCommandArguments args, ICollection<IFormItem> items, IFormFieldValueProvider formFieldValueProvider)
Parameters
args
FormSubmissionCommandArgumentsForm submission arguments.
items
ICollection<IFormItem>Form items with bound component values.
formFieldValueProvider
IFormFieldValueProviderProvider of form field values.
Returns
- Task<ICommandResponse>
Returns the form submission result.
Remarks
This method is called by the default implementation of the Submit(FormSubmissionCommandArguments) method.
- See Also