public class PDFViewer extends AbstractFileForm
| Modifier and Type | Class and Description |
|---|---|
static class |
PDFViewer.GotoPageActionListener
The listener interface for receiving gotoPageAction events.
|
static class |
PDFViewer.NextPageActionListener
The listener interface for receiving nextPageAction events.
|
static class |
PDFViewer.PreviousPageActionListener
The listener interface for receiving previousPageAction events.
|
static class |
PDFViewer.RotateLeftPageActionListener
The listener interface for receiving rotateLeftPageAction events.
|
static class |
PDFViewer.RotateRightPageActionListener
The listener interface for receiving rotateRightPageAction events.
|
static class |
PDFViewer.ScalePageActionListener
The listener interface for receiving scalePageAction events.
|
static class |
PDFViewer.ZoomInPageActionListener
The listener interface for receiving zoomInPageAction events.
|
static class |
PDFViewer.ZoomOutPageActionListener
The listener interface for receiving zoomOutPageAction events.
|
drive, fileLOG| Constructor and Description |
|---|
PDFViewer()
Instantiates a new PDF viewer.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getCurrentRotation()
Gets the current rotation.
|
float |
getCurrentScale()
Gets the current scale.
|
Map<String,String> |
getFileMetadata()
Gets the file metadata.
|
int |
getNumberOfPages()
Gets the number of pages.
|
String |
getPageImageLink()
Gets the page image link.
|
int |
getPageNumber()
Gets the page number.
|
String |
getPdfLink()
Gets the pdf link.
|
void |
initFile(org.exoplatform.clouddrive.CloudDrive drive,
org.exoplatform.clouddrive.CloudFile file)
Initialize UI component to represent the given cloud file.
|
boolean |
isViewable()
Checks if is viewable.
|
protected String |
localeFile()
Locale file.
|
void |
setPageNumber(int pageNum)
Sets the page number.
|
void |
setRotation(float rotation)
Sets the rotation.
|
void |
setScale(float scale)
Sets the scale.
|
getDrive, getFile, getResourceBundle, processRenderactivate, deActivate, initContextaddUIComponentInput, 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, urladdChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesbroadcast, buildModelObject, 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, urlpublic boolean isViewable()
isViewable in class AbstractFileFormtrue if file can be represented as Web document.protected String localeFile()
localeFile in class AbstractFileFormpublic void initFile(org.exoplatform.clouddrive.CloudDrive drive,
org.exoplatform.clouddrive.CloudFile file)
initFile in interface CloudFileViewerinitFile in class AbstractFileFormdrive - CloudDrivefile - CloudFilepublic Map<String,String> getFileMetadata()
public int getNumberOfPages()
public String getPageImageLink()
public String getPdfLink()
public float getCurrentRotation()
public void setRotation(float rotation)
rotation - the new rotationpublic float getCurrentScale()
public void setScale(float scale)
scale - the new scalepublic int getPageNumber()
public void setPageNumber(int pageNum)
pageNum - the new page numberCopyright © 2003–2016 eXo Platform SAS. All rights reserved.