org.silverpeas.viewer
Class AbstractView

java.lang.Object
  extended by org.silverpeas.viewer.AbstractPreview
      extended by org.silverpeas.viewer.AbstractView
All Implemented Interfaces:
Serializable, DocumentView, Preview
Direct Known Subclasses:
TemporaryFlexPaperView

public abstract class AbstractView
extends AbstractPreview
implements DocumentView

Author:
Yohann Chastagnier
See Also:
Serialized Form

Constructor Summary
protected AbstractView(String originalFileName, File physicalFile, int nbPages)
          Default constructor
 
Method Summary
 boolean areSearchDataComputed()
          Indicates if search data have been computed.
 String getDisplayLicenseKey()
          Getting the license of display software product if any
 int getNbPages()
          Gets total of pages
 boolean isDocumentSplit()
          Indicates if the document view is split into several pieces.
 void markDocumentSplit(boolean documentSplit)
           
 void markSearchDataComputed(boolean searchDataComputed)
           
 
Methods inherited from class org.silverpeas.viewer.AbstractPreview
getHeight, getOriginalFileName, getPhysicalFile, getURLAsString, getWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.silverpeas.viewer.Preview
getHeight, getOriginalFileName, getPhysicalFile, getURLAsString, getWidth
 

Constructor Detail

AbstractView

protected AbstractView(String originalFileName,
                       File physicalFile,
                       int nbPages)
Default constructor

Parameters:
originalFileName -
physicalFile -
Method Detail

getDisplayLicenseKey

public String getDisplayLicenseKey()
Description copied from interface: Preview
Getting the license of display software product if any

Specified by:
getDisplayLicenseKey in interface Preview
Overrides:
getDisplayLicenseKey in class AbstractPreview
Returns:

getNbPages

public int getNbPages()
Description copied from interface: DocumentView
Gets total of pages

Specified by:
getNbPages in interface DocumentView
Returns:
the nbPages

isDocumentSplit

public boolean isDocumentSplit()
Description copied from interface: DocumentView
Indicates if the document view is split into several pieces.

Specified by:
isDocumentSplit in interface DocumentView
Returns:
true if the document view is split, false otherwise.

markDocumentSplit

public void markDocumentSplit(boolean documentSplit)

areSearchDataComputed

public boolean areSearchDataComputed()
Description copied from interface: DocumentView
Indicates if search data have been computed.

Specified by:
areSearchDataComputed in interface DocumentView
Returns:
true if search data have been computed, false otherwise.

markSearchDataComputed

public void markSearchDataComputed(boolean searchDataComputed)


Copyright © 2016 Silverpeas. All Rights Reserved.