org.exoplatform.clouddrive.cmis.ecms.viewer
Class PDFViewer

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.clouddrive.ecms.BaseCloudDriveForm
                  extended by org.exoplatform.clouddrive.ecms.viewer.AbstractFileForm
                      extended by org.exoplatform.clouddrive.cmis.ecms.viewer.PDFViewer
All Implemented Interfaces:
org.exoplatform.clouddrive.ecms.viewer.CloudFileViewer, org.exoplatform.webui.core.UIPopupComponent

public class PDFViewer
extends org.exoplatform.clouddrive.ecms.viewer.AbstractFileForm

PDF Viewer component which will be used to display PDF and office files from Cloud Drive.


Nested Class Summary
static class PDFViewer.GotoPageActionListener
           
static class PDFViewer.NextPageActionListener
           
static class PDFViewer.PreviousPageActionListener
           
static class PDFViewer.RotateLeftPageActionListener
           
static class PDFViewer.RotateRightPageActionListener
           
static class PDFViewer.ScalePageActionListener
           
static class PDFViewer.ZoomInPageActionListener
           
static class PDFViewer.ZoomOutPageActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.clouddrive.ecms.viewer.AbstractFileForm
drive, file
 
Fields inherited from class org.exoplatform.clouddrive.ecms.BaseCloudDriveForm
LOG, path, workspace
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
PDFViewer()
           
 
Method Summary
 float getCurrentRotation()
           
 float getCurrentScale()
           
 Map<String,String> getFileMetadata()
           
 int getNumberOfPages()
           
 String getPageImageLink()
           
 int getPageNumber()
           
 String getPdfLink()
           
 void initFile(org.exoplatform.clouddrive.CloudDrive drive, org.exoplatform.clouddrive.CloudFile file)
          
 boolean isViewable()
          
protected  String localeFile()
          
 void setPageNumber(int pageNum)
           
 void setRotation(float rotation)
           
 void setScale(float scale)
           
 
Methods inherited from class org.exoplatform.clouddrive.ecms.viewer.AbstractFileForm
getDrive, getFile, getResourceBundle, processRender
 
Methods inherited from class org.exoplatform.clouddrive.ecms.BaseCloudDriveForm
activate, deActivate, initContext
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFViewer

public PDFViewer()
          throws Exception
Throws:
Exception
Method Detail

isViewable

public boolean isViewable()

Overrides:
isViewable in class org.exoplatform.clouddrive.ecms.viewer.AbstractFileForm

localeFile

protected String localeFile()

Specified by:
localeFile in class org.exoplatform.clouddrive.ecms.viewer.AbstractFileForm

initFile

public void initFile(org.exoplatform.clouddrive.CloudDrive drive,
                     org.exoplatform.clouddrive.CloudFile file)

Specified by:
initFile in interface org.exoplatform.clouddrive.ecms.viewer.CloudFileViewer
Overrides:
initFile in class org.exoplatform.clouddrive.ecms.viewer.AbstractFileForm

getFileMetadata

public Map<String,String> getFileMetadata()

getNumberOfPages

public int getNumberOfPages()

getPageImageLink

public String getPageImageLink()
Returns:
the pageImageLink

getPdfLink

public String getPdfLink()
Returns:
the PDF link

getCurrentRotation

public float getCurrentRotation()

setRotation

public void setRotation(float rotation)

getCurrentScale

public float getCurrentScale()

setScale

public void setScale(float scale)

getPageNumber

public int getPageNumber()

setPageNumber

public void setPageNumber(int pageNum)


Copyright © 2003–2015 eXo Platform SAS. All rights reserved.