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 protected
AbstractView(ViewerContext context, File physicalFile, int nbPages)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areSearchDataComputed()
Indicates if search data have been computed.String
getDisplayLicenseKey()
Getting the license of display software product if anyint
getNbPages()
Gets total of pagesboolean
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.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:Preview
Getting the license of display software product if any- Specified by:
getDisplayLicenseKey
in interfacePreview
- Overrides:
getDisplayLicenseKey
in classAbstractPreview
- Returns:
- a string.
-
getNbPages
public int getNbPages()
Description copied from interface:DocumentView
Gets total of pages- Specified by:
getNbPages
in interfaceDocumentView
- 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 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:DocumentView
Indicates if search data have been computed.- Specified by:
areSearchDataComputed
in interfaceDocumentView
- Returns:
- true if search data have been computed, false otherwise.
-
markSearchDataComputed
public void markSearchDataComputed(boolean searchDataComputed)
-
-