public class PdfjsViewerImpl extends BaseWindow implements ViewerComponent
Modifier and Type | Field and Description |
---|---|
static String |
ADDITIONAL_PARAMS
Additional parameters for viewer.html URL.
|
static String |
CONFIG_FILE
Name of the configuration file for pdfjs viewer.
|
static String |
DOWNLOAD_UNSUPPORTED
Show download link for unsupported documents.
|
static String |
EMBED_MP4
Embed MP4 objects.
|
static String |
FORCE_REDRAW
Forces the entire viewer to be redrawn each time a PDF is opened.
|
static String |
RENDER_IMAGES
Render images to PDF before viewing.
|
static String |
RENDER_TEMPORARY
Configures rendering of temporary documents.
|
static String |
USE_RENDER_ENGINE
Use render engine to display unknown formats.
|
static String |
USE_RENDER_ENGINE_FOR_IMAGES
Use render engine to display images.
|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
ALL_EVENTS, ON_ADD_LINK, ON_ADD_LOOKUP, ON_ADD_TO_FAVORITES, ON_AFTER_QUERY, ON_BUTTON, ON_BUTTON_QUERY, ON_CANCEL, ON_CANCEL_AND, ON_CANCEL_EDIT, ON_CHANGE_DOCUMENT_SECURITY, ON_CHANGE_FOLDER_SECURITY, ON_CLEAR, ON_DELETE_SELECTED, ON_DISPLAY_POPUP, ON_DISPLAY_RESULTITEM, ON_DISPLAY_TEMPORARY_DOCUMENT, ON_DOCUMENT_ADDED, ON_DOCUMENT_CHECK, ON_DOCUMENT_FILING, ON_DOCUMENT_LOCKED, ON_DOCUMENT_RELEASE, ON_DOWNLOAD_RESULTITEM, ON_EDIT_CONTENT, ON_EDIT_FOLDER, ON_EDIT_ITEM, ON_EDIT_ITEM_SELECTED, ON_EDIT_LOOKUP, ON_EDIT_SELECTED, ON_EDIT_STRUCTURE, ON_EXPORT, ON_FAST_ACCESS_DRAG_OVER, ON_FIELD_CHANGE, ON_FILE_ACTION, ON_FILE_PREVIEW, ON_FILE_SEARCH, ON_FORM_CREATED, ON_FORM_RENDER_ERROR, ON_FORWARD, ON_IGNORE, ON_INDEX, ON_INDEX_CLEAR, ON_INDEX_RESULTITEM, ON_ITEM_DOUBLECLICK, ON_LAUNCH_WORKFLOW, ON_LOG, ON_LOGON, ON_MACRO, ON_NAVIGATION, ON_NAVIGATION_FOLDER, ON_NAVIGATION_FORM, ON_NAVIGATION_WEBPART, ON_NEW_ITEM, ON_NEW_SELECTED, ON_OK, ON_OPEN_INDEX_MASK, ON_OPEN_MASK, ON_OPEN_QUERY_MASK, ON_PASSWORD_EXPIRED, ON_PRINT_DOCUMENTS, ON_QUERY, ON_QUERY_FAVORITE, ON_REFRESH, ON_REFRESH_FOLDER, ON_RESET_GUI, ON_REVISION_CREATED, ON_SAVE_AND, ON_SAVE_DOC, ON_SAVE_FOLDER, ON_SCROLL_NODE, ON_SELECT_TREE_ITEM, ON_SELECTDDC, ON_SEND_MAIL_RESULTITEM, ON_START_WORKFLOW, ON_TAB_SELECTED, ON_UNDELETE_SELECTED, ON_UPLOAD_DOCUMENT, ON_UPLOAD_SUCCESS, ON_VARIABLES_AVAILABLE, ON_WF, ON_WF_COMMENT_DIALOG_CANCEL, ON_WF_COMMENT_DIALOG_OK, ON_WFCOMMENTS, ON_WFDELEGATE, ON_WFFORWARD, ON_WFFORWARD1, ON_WFFORWARD2, ON_WFFORWARD3, ON_WFFORWARD4, ON_WFFORWARD5, ON_WFHISTORY, ON_WFPUTBACK, ON_WFREMINDER, ON_WFTAKE, ON_WORKFLOW_ACTION, ON_WORKFLOW_COMMENT
Constructor and Description |
---|
PdfjsViewerImpl()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canModifyDocument()
Used by the webclient to determine if this type of viewer is able to edit documents.
|
boolean |
canShowRevisions()
Used by web client to determine if this type of viewer can show the document revisions
|
void |
disable()
Disables the viewer.
|
void |
displayDocument(String documentUrl,
String annotationsUrl,
DocumentArchiveMetaInfo.ElementArchiveMetaInfo elementinfo,
DocumentId documentId)
Displays a document.
|
void |
displayTemporaryDocument(String documentUrl,
TemporaryDocumentId id)
Displays a temporary (not yet archived) document.
|
void |
enable()
Enables the viewer.
|
String |
getConfigurationFile()
Returns the name of the configuration file needed for this implementation of ViewerComponent.
|
String |
getExternalViewerWindowPath()
Returns the relative path to the JSP used as external window or null if this viewer
does not offer an external window.
|
boolean |
hasOpenChanges()
Returns, if the viewer has open changes.
|
void |
init(String id)
Called from parent component to initialize the viewer-component.
|
static boolean |
isDefault()
Checks if this viewer is configured as default.
|
void |
refreshDocument()
Refreshes the viewer using the last opened document.
|
void |
resetView()
Resets the view so that the viewer applet will not re-open the last opened document.
|
void |
resetView(boolean showInitImage)
Resets the view so that the viewer applet will not re-open the last opened document.
|
void |
setParentViewComponent(DocumentView documentView)
Used to pass a reference to the parent component to this ViewerComponent.
|
void |
tabSelected()
Method used to notify the ViewerComponent that the tab it is contained in was selected.
|
getEventtarget, getMainWindow, postAddLinkEvent, postAddToFavoritesEvent, postCancelSelectedEvent, postChangeDocumentSecurityEvent, postChangeFolderSecurityEvent, postDeleteSelectedEvent, postDisplayPopupEvent, postDisplayPopupEvent, postDisplayResultItemEvent, postDisplayResultItemEvent, postDocumentCheckEvent, postDocumentFilingEvent, postDocumentFilingEvent, postDocumentReleaseEvent, postDownloadResultItemEvent, postEditContentEvent, postEditItemSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditStructureEvent, postErrorLogEvent, postErrorLogEvent, postFieldChangeEvent, postFileActionEvent, postFileActionEvent, postFormButtonEvent, postIndexResultItemEvent, postInfoLogEvent, postInfoLogEvent, postLaunchWorkflowEvent, postLockDocumentEvent, postLogonEvent, postLogonEvent, postNavigationFolderEvent, postNavigationFormEvent, postNavigationFormEvent, postNavigationWebpartEvent, postNewSelectedEvent, postOpenMaskEvent, postPrintDocumentEvent, postQueryFavoriteEvent, postRefreshEvent, postResetGuiEvent, postResultFieldEvent, postSaveDocumentEvent, postSaveDocumentEvent, postSelectTreeItemEvent, postSendMailResultItemEvent, postStartWorkflowEvent, postTabSelectedEvent, postUnDeleteSelectedEvent, postUploadDocumentEvent, postUploadSuccessEvent, postWarningLogEvent, postWarningLogEvent, postWorkflowActionEvent, postWorkflowCommentEvent, setEventtarget
beforeChildAdded, clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMinheight, getMinwidth, getMode, getModeType, getPosition, getTitle, getZclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isCollapsible, isMaximizable, isMaximized, isMinimizable, isMinimized, isShadow, isSizable, onChildRemoved, onClose, onModal, onPageDetached, renderProperties, service, setBorder, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMaximizable, setMaximized, setMinheight, setMinimizable, setMinimized, setMinwidth, setMode, setMode, setMode, setPosition, setShadow, setSizable, setTitle, setTopmost, setVisible
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
addSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride
public static final String CONFIG_FILE
public static final String USE_RENDER_ENGINE
public static final String USE_RENDER_ENGINE_FOR_IMAGES
public static final String EMBED_MP4
public static final String RENDER_IMAGES
public static final String ADDITIONAL_PARAMS
public static final String DOWNLOAD_UNSUPPORTED
public static final String FORCE_REDRAW
public static final String RENDER_TEMPORARY
public void displayDocument(String documentUrl, String annotationsUrl, DocumentArchiveMetaInfo.ElementArchiveMetaInfo elementinfo, DocumentId documentId)
displayDocument
in interface ViewerComponent
documentUrl
- the document urlannotationsUrl
- the annotation urlelementinfo
- meta information about the page to be displayeddocumentId
- Id of the documentcom.saperion.ngc.viewer.ViewerComponent#displayDocument(String, String, ElementArchiveMetaInfo, DocumentId)
public void displayTemporaryDocument(String documentUrl, TemporaryDocumentId id)
displayTemporaryDocument
in interface ViewerComponent
documentUrl
- The URL to the download servlet.id
- The id of the temporary document.(java.lang.String, com.saperion.ngc.model.document.TemporaryDocumentId)
public void refreshDocument()
refreshDocument
in interface ViewerComponent
ViewerComponent.refreshDocument()
public void resetView(boolean showInitImage)
resetView
in interface ViewerComponent
showInitImage
- if true, the viewer will show an initial imageViewerComponent.resetView(boolean showInitImage)
public void resetView()
resetView
in interface ViewerComponent
ViewerComponent.resetView()
public void disable()
disable
in interface ViewerComponent
ViewerComponent.disable()
public void enable()
enable
in interface ViewerComponent
ViewerComponent.enable()
public void init(String id)
init
in interface ViewerComponent
id
- the id of the viewer, passed only as additional informationViewerComponent.init(java.lang.String)
public boolean hasOpenChanges()
hasOpenChanges
in interface ViewerComponent
ViewerComponent.hasOpenChanges()
public void setParentViewComponent(DocumentView documentView)
setParentViewComponent
in interface ViewerComponent
documentView
- the new parent view componentViewerComponent.setParentViewComponent(com.saperion.ngc.viewer.DocumentView)
public void tabSelected()
tabSelected
in interface ViewerComponent
ViewerComponent.tabSelected()
public String getConfigurationFile()
getConfigurationFile
in interface ViewerComponent
ViewerComponent.getConfigurationFile()
public boolean canModifyDocument()
ViewerComponent
canModifyDocument
in interface ViewerComponent
public boolean canShowRevisions()
ViewerComponent
canShowRevisions
in interface ViewerComponent
ViewerComponent.canShowRevisions()
public String getExternalViewerWindowPath()
ViewerComponent
getExternalViewerWindowPath
in interface ViewerComponent
public static boolean isDefault()
Copyright © 2021 Hyland Software Germany GmbH. All rights reserved.