ValidationView

This class represents the visual elements and their logic for the validation module :

  • Button "See documents in validation" to change the document source
  • Panel "Currently seing ..." to inform the user that he/she is consulting documents in validation or validated documents
  • Button "Validate" to validate a document

Constructor

new ValidationView(provider, validationService, validationSource, parentElementValidateButton)

Creates the view.

Parameters:
NameTypeDescription
providerobject

The document module.

validationServiceValidationService

The validation service.

validationSourceDocumentsInValidationDocumentSource

The source for documents in validation

parentElementValidateButtonHTMLElement

Where to add the validate button

Classes

ValidationView

Members

displayingDocumentsToValidate :boolean

Defines wether the interface displays documents to validate (true) or validated documents (false).

Type:
  • boolean

previousDocumentSource :DocumentSource

Stores the previous document source to restore it (the source for validated documents).

validationSource :DocumentsInValidationDocumentSource

The validation source.