PdfJsViewerAdvisor

SPI service interface.

API

PdfJsViewerAdvisor.java
interface PdfJsViewerAdvisor {
  Advice advise(InstanceKey instanceKey)     (1)
  void pageNumChangedTo(InstanceKey instanceKey, int pageNum)     (2)
  void scaleChangedTo(InstanceKey instanceKey, Scale scale)     (3)
  void heightChangedTo(InstanceKey instanceKey, int height)     (4)
}
1 advise(InstanceKey)

The main SPI called by the viewer.

2 pageNumChangedTo(InstanceKey, int)

Updates the service implementation whenever the user updates the page number, for a particular object/property/user (ie ViewerKey).

3 scaleChangedTo(InstanceKey, Scale)

Updates the service implementation whenever the user updates the scale, for a particular object/property/user (ie ViewerKey).

4 heightChangedTo(InstanceKey, int)

Updates the service implementation whenever the user updates the height, for a particular object/property/user (ie ViewerKey).

Members

advise(InstanceKey)

The main SPI called by the viewer.

pageNumChangedTo(InstanceKey, int)

Updates the service implementation whenever the user updates the page number, for a particular object/property/user (ie ViewerKey).

scaleChangedTo(InstanceKey, Scale)

Updates the service implementation whenever the user updates the scale, for a particular object/property/user (ie ViewerKey).

heightChangedTo(InstanceKey, int)

Updates the service implementation whenever the user updates the height, for a particular object/property/user (ie ViewerKey).