org.silverpeas.viewer
Class AbstractPreview

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

public abstract class AbstractPreview
extends Object
implements Preview

Author:
Yohann Chastagnier
See Also:
Serialized Form

Constructor Summary
protected AbstractPreview(String originalFileName, File physicalFile)
          Default constructor
 
Method Summary
 String getDisplayLicenseKey()
          Getting the license of display software product if any
 String getHeight()
          Getting the height of the document
 String getOriginalFileName()
          Getting the original file of the document
 File getPhysicalFile()
          Getting the physical file of the document
 String getURLAsString()
          Getting URL of the document
 String getWidth()
          Getting the width of the document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPreview

protected AbstractPreview(String originalFileName,
                          File physicalFile)
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
Returns:

getOriginalFileName

public String getOriginalFileName()
Description copied from interface: Preview
Getting the original file of the document

Specified by:
getOriginalFileName in interface Preview
Returns:

getPhysicalFile

public File getPhysicalFile()
Description copied from interface: Preview
Getting the physical file of the document

Specified by:
getPhysicalFile in interface Preview
Returns:

getWidth

public String getWidth()
Description copied from interface: Preview
Getting the width of the document

Specified by:
getWidth in interface Preview
Returns:

getHeight

public String getHeight()
Description copied from interface: Preview
Getting the height of the document

Specified by:
getHeight in interface Preview
Returns:

getURLAsString

public String getURLAsString()
Description copied from interface: Preview
Getting URL of the document

Specified by:
getURLAsString in interface Preview
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.