public interface ViewerComponent
extends org.zkoss.zk.ui.Component
DocumentView
.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 annotationUrl,
DocumentArchiveMetaInfo.ElementArchiveMetaInfo pageMetaInfo,
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 viewerId)
Called from parent component to initialize the viewer-component.
|
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.
|
addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getDefinition, getDesktop, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getUuid, getVariable, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setVariable, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, unsetVariable
void displayDocument(String documentUrl, String annotationUrl, DocumentArchiveMetaInfo.ElementArchiveMetaInfo pageMetaInfo, DocumentId documentId)
documentUrl
- the document urlannotationUrl
- the annotation urlpageMetaInfo
- meta information about the page to be displayeddocumentId
- Id of the documentvoid displayTemporaryDocument(String documentUrl, TemporaryDocumentId id)
documentUrl
- The URL to the download servlet.id
- The id of the temporary document.void init(String viewerId)
viewerId
- the id of the viewer, passed only as additional informationvoid refreshDocument()
void resetView()
void resetView(boolean showInitImage)
showInitImage
- if true, the viewer will show an initial imagevoid disable()
void enable()
boolean hasOpenChanges()
void setParentViewComponent(DocumentView documentView)
documentView
- the new parent view componentvoid tabSelected()
String getConfigurationFile()
boolean canModifyDocument()
boolean canShowRevisions()
String getExternalViewerWindowPath()
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.