Method:

Method:

Method Group:

reloadList()

E.g. ViewONE.reloadList()

This method forces the list used with the openList() method to be reloaded and the document to be re-opened. It will reload the list file from source (i.e. the web server) each time, so if it has changed then the changes will be picked up.

openDoc(index)

E.g. ViewONE.openDoc(2)

This method applies only when the “doc<N>” HTML parameter is used (see HTML manual). The value of “index” represents the associated “doc<N>” parameter. Therefore, the above example will cause ViewONE to open the second document in the list (i.e., that specified by the “doc2” HTML parameter).

nextDoc()

prevDoc()

firstDoc()

lastDoc()

getDocIndex()

getNumDocs()

These are convenience methods that can be used in place of the “openDoc” method described above.

Method:getNumPages()

E.g. var numPages = ViewONE.getNumPages();

Gets the number of pages in the current document (an integer).

23

Page 23
Image 23
JAVA Tech VERSION 3.0 ReloadList, OpenDocindex, NextDoc PrevDoc FirstDoc LastDoc GetDocIndex GetNumDocs, MethodgetNumPages