public abstract class AbstractStructureDialog extends BaseWindow
Modifier and Type | Class and Description |
---|---|
static class |
AbstractStructureDialog.StructureDialogResult
Result of Dialog.
|
static class |
AbstractStructureDialog.StructureItem
Represents a row in the dialog's list.
|
static class |
AbstractStructureDialog.StructureUploadAction
Actions to perform when a document was uploaded.
|
Modifier and Type | Field and Description |
---|---|
static int |
CANCEL
Cancel button.
|
protected static String |
CONTENT_LIST
ID of the listbox in the dialog.
|
protected List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> |
documentPages
List of the document's elements.
|
static int |
OK
OK button.
|
protected static String |
OK_BUTTON
ID of the login-button in the dialog.
|
protected static String |
STATUS
Name of the status attribute of a row.
|
protected static String |
STATUS_ADDED
Indicates that the row was added to the document's structure.
|
protected static String |
STATUS_LOADED
Indicates that the the document's content of a row in the dialog was changed.
|
protected static String |
STATUS_NEW
Status of the row that created a new item.
|
protected static String |
STATUS_REMOVED
Indicates that the element denoted by a row in the dialog will be deleted.
|
protected static String |
STATUS_UNCHANGED
Indicates that a row in the dialog was not changed.
|
AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED
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 |
---|
AbstractStructureDialog() |
Modifier and Type | Method and Description |
---|---|
void |
addContentUpdate(int position,
org.zkoss.util.media.Media media)
Adds update entry for the given position; if entry exits for that position, it is replaced.
|
protected org.zkoss.zul.Listitem |
addNewDocument(org.zkoss.zk.ui.event.UploadEvent uploadEvent)
Adds a new item to the structure.
|
void |
endModalCancel()
Cancel dialog.
|
void |
endModalOk(String versionComment)
Ok.
|
String |
getLocalizedString(String text) |
boolean |
hasNoUpdates() |
boolean |
isCommentEnabled() |
static boolean |
isDeletable(DocumentArchiveMetaInfo.ElementArchiveMetaInfo info)
Indicates if the given element can be deleted by this dialog.
|
static boolean |
isUploadable(DocumentArchiveMetaInfo.ElementArchiveMetaInfo info)
Indicates if the given element can be updloaded by this dialog.
|
void |
onUpload(org.zkoss.zk.ui.event.Event event)
Event-listener for upload-event triggered when a user adds a new document in the dialog.
|
abstract void |
removeItem()
Removes the selected item from the list.
|
protected void |
setCommentEnabled(boolean commentEnabled) |
protected void |
setDefaultComment(String defaultComment) |
protected void |
setDocumentPages(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentPages) |
protected void |
setListener(org.zkoss.zk.ui.event.EventListener eventListener) |
void |
setLocalization(LocalizationUtil localizationUtil)
Sets localization.
|
void |
setUploadAction(AbstractStructureDialog.StructureUploadAction action)
Sets the action to perform when a document was uploaded.
|
void |
undoContentUpdate(int position)
Deletes content entry at the given position.
|
abstract void |
uploadItem()
Uploads a new item to add it to the document.
|
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, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, 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, equals, 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
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected static final String STATUS_LOADED
protected static final String STATUS_REMOVED
protected static final String STATUS_UNCHANGED
protected static final String STATUS_NEW
protected static final String STATUS_ADDED
protected static final String STATUS
protected static final String OK_BUTTON
protected static final String CONTENT_LIST
public static final int OK
public static final int CANCEL
protected List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentPages
public abstract void removeItem()
public abstract void uploadItem()
public void setLocalization(LocalizationUtil localizationUtil)
localizationUtil
- localization utility objectprotected void setDocumentPages(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentPages)
documentPages
- list of the document's elementspublic void addContentUpdate(int position, org.zkoss.util.media.Media media)
position
- content's position in documentmedia
- content, null indicates content to be removedpublic void undoContentUpdate(int position)
position
- content's position in documentpublic boolean hasNoUpdates()
public void endModalOk(String versionComment) throws Exception
versionComment
- version commentException
- exceptionpublic String getLocalizedString(String text)
text
- text to localizepublic void endModalCancel() throws Exception
Exception
- exceptionprotected void setListener(org.zkoss.zk.ui.event.EventListener eventListener)
eventListener
- listener to be called when dialog is closedpublic void onUpload(org.zkoss.zk.ui.event.Event event)
event
- upload-eventprotected org.zkoss.zul.Listitem addNewDocument(org.zkoss.zk.ui.event.UploadEvent uploadEvent)
uploadEvent
- event with unploaded documentprotected void setDefaultComment(String defaultComment)
defaultComment
- default comment for comment-textbox in dialogprotected void setCommentEnabled(boolean commentEnabled)
commentEnabled
- enable or disable comment-textbox in dialogpublic boolean isCommentEnabled()
public void setUploadAction(AbstractStructureDialog.StructureUploadAction action)
action
- actionAbstractStructureDialog.StructureUploadAction
public static boolean isUploadable(DocumentArchiveMetaInfo.ElementArchiveMetaInfo info)
info
- archive-meta-info of elementpublic static boolean isDeletable(DocumentArchiveMetaInfo.ElementArchiveMetaInfo info)
info
- archive-meta-info of elementCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.