Package org.silverpeas.core.viewer.model
Class AbstractView
- java.lang.Object
-
- org.silverpeas.core.viewer.model.AbstractPreview
-
- org.silverpeas.core.viewer.model.AbstractView
-
- All Implemented Interfaces:
Serializable,DocumentView,Preview
- Direct Known Subclasses:
TemporaryFlexPaperView,TemporaryPdfView
public abstract class AbstractView extends AbstractPreview implements DocumentView
- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractView(ViewerContext context, File physicalFile, int nbPages)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareSearchDataComputed()Indicates if search data have been computed.StringgetDisplayLicenseKey()Getting the license of display software product if anyintgetNbPages()Gets total of pagesbooleanisDocumentSplit()Indicates if the document view is split into several pieces.voidmarkDocumentSplit(boolean documentSplit)voidmarkSearchDataComputed(boolean searchDataComputed)-
Methods inherited from class org.silverpeas.core.viewer.model.AbstractPreview
getDocumentId, getDocumentType, getHeight, getLanguage, getOriginalFileName, getPhysicalFile, getServerFilePath, 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.core.viewer.model.Preview
getDocumentId, getDocumentType, getHeight, getLanguage, getOriginalFileName, getPhysicalFile, getServerFilePath, getURLAsString, getWidth
-
-
-
-
Constructor Detail
-
AbstractView
protected AbstractView(ViewerContext context, File physicalFile, int nbPages)
Default constructor
-
-
Method Detail
-
getDisplayLicenseKey
public String getDisplayLicenseKey()
Description copied from interface:PreviewGetting the license of display software product if any- Specified by:
getDisplayLicenseKeyin interfacePreview- Overrides:
getDisplayLicenseKeyin classAbstractPreview- Returns:
- a string.
-
getNbPages
public int getNbPages()
Description copied from interface:DocumentViewGets total of pages- Specified by:
getNbPagesin interfaceDocumentView- Returns:
- the nbPages
-
isDocumentSplit
public boolean isDocumentSplit()
Description copied from interface:DocumentViewIndicates if the document view is split into several pieces.- Specified by:
isDocumentSplitin interfaceDocumentView- Returns:
- true if the document view is split, false otherwise.
-
markDocumentSplit
public void markDocumentSplit(boolean documentSplit)
-
areSearchDataComputed
public boolean areSearchDataComputed()
Description copied from interface:DocumentViewIndicates if search data have been computed.- Specified by:
areSearchDataComputedin interfaceDocumentView- Returns:
- true if search data have been computed, false otherwise.
-
markSearchDataComputed
public void markSearchDataComputed(boolean searchDataComputed)
-
-