public interface DocumentView extends org.zkoss.zk.ui.Component, EventChild, EventChildHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
EDIT_WINDOW_PREFIX
Prefix of IDs of a popup-window in edit mode.
|
static String |
NO_EXTERNAL_WINDOW
Constant that defines that the viewer-implementation has no external window.
|
static String |
POPUP_BEAN_ATTRIBUTE
Name of the session attribute for the viewer popup.
|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEALL_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| Modifier and Type | Method and Description |
|---|---|
boolean |
canModifyDocument()
Checks if the
ViewerComponent used by this viewer can modify documents. |
void |
disable()
Disables the viewer.
|
void |
enable()
Enables the viewer.
|
IntelligentFormView |
getParentForm()
Gets the parent form of this DocumentView.
|
String |
getPropertiesFileName()
Gets the properties file name.
|
StructureList<?> |
getStructureList()
Gets the structure list.
|
String |
getViewerClass()
Gets the class-name of the contained viewer-component.
|
void |
handleLinkElement(DocumentArchiveMetaInfo.ElementArchiveMetaInfo linkElement)
Handles the viewing of a linked element.
|
boolean |
hasOpenChanges()
Check open changes in viewer.
|
boolean |
isEnableLoadingMessage() |
boolean |
isStructureButtonsBoxShown()
Tells you if the structure buttons of the structure view are shown or not.
|
boolean |
isStructureEnabled() |
void |
onDisplayResultItem(org.zkoss.zk.ui.event.Event event)
Display document.
|
void |
onLogon(org.zkoss.zk.ui.event.Event event)
Event handler for logon event.
|
void |
onResetGui(org.zkoss.zk.ui.event.Event event)
Handler for reset ui event.
|
void |
openDocument(DocumentId documentId,
List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentElements,
int element)
Opens the specified url and displays the document.
|
void |
openDocument(DocumentId documentId,
List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentElements,
int element,
boolean currentRevision)
Opens the specified url and displays the document.
|
void |
openSubDocument()
Opens a sub document structure.
|
void |
openTemporaryDocument(TemporaryDocumentId documentId)
Opens a temporary document.
|
void |
refreshView()
Refreshes the view with the last opened document.
|
void |
reset()
Closes the current document.
|
void |
reset(boolean showInitImage)
Closes the current document.
|
void |
setEnableLoadingMessage(boolean enable)
Enables or disables the loading message that will be shown when the viewer is initiated.
|
void |
setPropertiesFileName(String filename)
Sets the name of a properties file for the internal viewer component.
|
void |
setStructureButtonsBoxShown(boolean showStructureButtonsBox)
Set the visibility of the its structure button box and its containingn structure
buttons of the structure view.
|
void |
setStructureEnabled(boolean enabled)
Enables or disables the structure view.
|
void |
setViewerClass(String clazz)
Sets the class-name of the contained viewer-component.
|
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, setWidgetOverrideaddScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttributepostAddLinkEvent, postAddToFavoritesEvent, postCancelSelectedEvent, postChangeDocumentSecurityEvent, postChangeFolderSecurityEvent, postDeleteSelectedEvent, postDisplayPopupEvent, postDisplayPopupEvent, postDisplayResultItemEvent, postDisplayResultItemEvent, postDocumentCheckEvent, postDocumentFilingEvent, postDocumentFilingEvent, postDocumentReleaseEvent, postDownloadResultItemEvent, postEditContentEvent, postEditItemSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditStructureEvent, postFieldChangeEvent, postFileActionEvent, postFileActionEvent, postFormButtonEvent, postIndexResultItemEvent, postLaunchWorkflowEvent, postLockDocumentEvent, postLogonEvent, postLogonEvent, postNavigationFolderEvent, postNavigationFormEvent, postNavigationFormEvent, postNavigationWebpartEvent, postNewSelectedEvent, postOpenMaskEvent, postPrintDocumentEvent, postQueryFavoriteEvent, postRefreshEvent, postResetGuiEvent, postResultFieldEvent, postSaveDocumentEvent, postSaveDocumentEvent, postSelectTreeItemEvent, postSendMailResultItemEvent, postStartWorkflowEvent, postTabSelectedEvent, postUnDeleteSelectedEvent, postUploadDocumentEvent, postUploadSuccessEvent, postWorkflowActionEvent, postWorkflowCommentEventpostErrorLogEvent, postErrorLogEvent, postInfoLogEvent, postInfoLogEvent, postWarningLogEvent, postWarningLogEventgetEventtarget, setEventtargetstatic final String POPUP_BEAN_ATTRIBUTE
static final String EDIT_WINDOW_PREFIX
static final String NO_EXTERNAL_WINDOW
void openDocument(DocumentId documentId, List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentElements, int element)
documentId - the document's idelement - document elementdocumentElements - the document's elements (sub documents)void openDocument(DocumentId documentId, List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentElements, int element, boolean currentRevision)
documentId - the document's idelement - document elementdocumentElements - the document's elements (sub documents)currentRevision - whether to resolve the current revision or notvoid openSubDocument()
void openTemporaryDocument(TemporaryDocumentId documentId)
TemporaryDocumentId can be obtained by using TemporaryDocumentPreviewService
to cache the document.documentId - ID of the temporary documentvoid onLogon(org.zkoss.zk.ui.event.Event event)
event - ZK eventvoid disable()
void enable()
void refreshView()
void reset(boolean showInitImage)
showInitImage - true, shows an initialization image (if supported by the viewer-component in use)void reset()
void onDisplayResultItem(org.zkoss.zk.ui.event.Event event)
event - Eventvoid onResetGui(org.zkoss.zk.ui.event.Event event)
event - ZK eventvoid setPropertiesFileName(String filename)
filename - the new properties file nameString getPropertiesFileName()
boolean hasOpenChanges()
StructureList<?> getStructureList()
IntelligentFormView getParentForm()
void setEnableLoadingMessage(boolean enable)
enable - enabled or disabledboolean isEnableLoadingMessage()
void setViewerClass(String clazz)
clazz - the class-name of the viewer-componentString getViewerClass()
boolean isStructureButtonsBoxShown()
void setStructureButtonsBoxShown(boolean showStructureButtonsBox)
showStructureButtonsBox - Removes the structure buttons and its surrounding structure
button box if it is set to false and shows
the buttons if it is set to true.void handleLinkElement(DocumentArchiveMetaInfo.ElementArchiveMetaInfo linkElement)
linkElement - the linked element to viewvoid setStructureEnabled(boolean enabled)
enabled - enabled/disabledboolean isStructureEnabled()
boolean canModifyDocument()
ViewerComponent used by this viewer can modify documents.Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.