DocumentInspectorWindow

The window responsible for displaying the currently displayed document, as defined in the document provider. It also serves as a container to add extension buttons.

Constructor

new DocumentInspectorWindow(provider)

Constructs a documents inspector window.

Parameters:
NameTypeDescription
providerobject

document provider

Classes

DocumentInspectorWindow

Members

docDescriptionElement :HTMLElement

Type:
  • HTMLElement

docImageElement :HTMLElement

Type:
  • HTMLElement

docPubDateElement :HTMLElement

Type:
  • HTMLElement

docRefDateElement :HTMLElement

Type:
  • HTMLElement

docRightsHolderElement :HTMLElement

Type:
  • HTMLElement

docSourceElement :HTMLElement

Type:
  • HTMLElement

docTitleElement :HTMLElement

Type:
  • HTMLElement

domElement :HTMLElement

Type:
  • HTMLElement

Methods

(async) _fillFieldsFromDocument(newDocument)

Updates the HTML fields so that they describe the new displayed document.

Parameters:
NameTypeDescription
newDocumentDocument

The new displayed document.

_setDefaultFieldValues()

Sets the default values for the HTML fields.

(async) onDisplayedDocumentChange(newDocument)

Triggered when the displayed document change. Updates the HTML fields.

Parameters:
NameTypeDescription
newDocumentDocument

The new displayed document.