Package com.saperion.ngc.resultset
Class ResultSetViewImpl
java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Window
com.saperion.ngc.events.BaseWindow
com.saperion.ngc.resultset.ResultSetViewImpl
- All Implemented Interfaces:
EventChild,EventChildHandler,LogEventChildHandler,ResultSetView,Serializable,Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.IdSpace,org.zkoss.zk.ui.sys.ComponentCtrl,org.zkoss.zul.ext.Framable
Implementation of ResultSetView.
Important events:
Important events:
-
EventChild.ON_INDEX_RESULTITEMwhen the user selects an item in the list. Event is an instance ofIndexResultItemEvent. -
EventChild.ON_ITEM_DOUBLECLICKwhen the user double-clicks on an item in the list. Event is an instance ofItemDoubleClickEvent. -
EventChild.ON_AFTER_QUERYwhen a query was performed. Event is an instance ofEvent.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration for view modes.Nested classes/interfaces inherited from class org.zkoss.zul.Window
org.zkoss.zul.Window.ModeNested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrlNested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.ChildrenNested classes/interfaces inherited from interface com.saperion.ngc.resultset.ResultSetView
ResultSetView.DefaultButtonType, ResultSetView.ExportFormat -
Field Summary
Fields inherited from class org.zkoss.zul.Window
EMBEDDED, HIGHLIGHTED, MODAL, OVERLAPPED, POPUPFields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
_zclassFields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEFields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNOREFields inherited from interface com.saperion.ngc.events.EventChild
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_PROLONG_RETENTION, ON_DOCUMENT_REDUCE_DISPOSITION, 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_EXTERNAL_STORAGE_UPLOAD, ON_EXTERNAL_STORAGE_UPLOAD_STATUS, 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_ONEDRIVE_LOGIN, 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_SET_LITIGATION_HOLD, ON_SHAREBASE_DOCUMENT_CHECK, ON_SHAREBASE_LOGIN, ON_START_WORKFLOW, ON_TAB_SELECTED, ON_UNDELETE_SELECTED, ON_UPLOAD_DOCUMENT, ON_UPLOAD_EXTERNAL_STORAGE_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, ON_WORKFLOW_DISPLAY_COMMENTFields inherited from interface com.saperion.ngc.resultset.ResultSetView
CONTEXT_TIMEOUT, DATABASE_NAME, DEFAULT_BUTTON_DELETE_ID, DEFAULT_BUTTON_EDIT_ID, DEFAULT_BUTTON_INDEX_ID, DEFAULT_BUTTON_PRINT_ID, DEFAULT_BUTTON_SAVE_ID, DEFAULT_BUTTON_SECURITY_ID, DEFAULT_BUTTON_VIEW_ID, DEFAULT_RIGHTS_MASK, DISPLAY_NAME, FILTER_COLS, FILTER_TIMEOUT, MAX_COUNT_FOR_CLIENTSIDE_FUNCTIONS, RSS_BUTTONDELETE, RSS_BUTTONEDIT, RSS_BUTTONINDEX, RSS_BUTTONNEW, RSS_BUTTONPRINT, RSS_BUTTONSAVE, RSS_BUTTONSECURITY, RSS_BUTTONVIEW, RSS_CONDITION, RSS_OUTLINE, RSS_RESTRICTCURSOR, RSS_SINGLECLICK, WF_BOX_ID -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ResultSetViewImpl(boolean showTitleArea) Constructor for use in LookupPopup.ResultSetViewImpl(com.saperion.ngc.iform.xml.ResultType definition, boolean stretch, String maskName, com.saperion.ngc.iform.xml.PosType panePos, String ddc) Constructor for iForm use. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomCondition(FieldResultBean condition) Adds a condition that will be used each time this ResultSetView performs a query.voidaddCustomMenu(org.zkoss.zul.Menu menu, boolean multi) Adds a custom menu.voidaddCustomMenuItem(org.zkoss.zul.Menuitem item, boolean multi) Adds a custom menu item.voidafterSelect(boolean focus) Performs the necessary actions after an item was selected.final voidRemoves all child-components from ResultSetView-Center.voidDeletes the stored configuration of the columns (width and sort-direction).voiddoSort()Sorts the current result.voidexport()Exports the current query result.voidExports the current query result.Returns a list containing the properties of all rows.org.zkoss.zul.Centerorg.zkoss.zul.MenupopupReturns the popup of the context menu.List<org.zkoss.zul.Menuitem>getCustomMenuItems(boolean multi) Returns the custom menu items.List<org.zkoss.zul.Menu>getCustomMenus(boolean multi) Returns the custom menus.booleanfinal Stringfinal StringSet<org.zkoss.zul.Menupopup>final Stringfinal Stringget the MaskName .intGets maximum number of records for the result set.intReturns the number of items in this list.intReturns the original index of the currently selected item or -1 if no item is selected.final intReturns the parent form or null if this field is not part of a form.Returns the converter that is used to convertSaPropertyValueinstances to strings.getRemoveMenuItemList(boolean multi) Reads the list of remove menu items.Returns theResultListused in this ResultSetView.com.saperion.ngc.iform.xml.ResultTypeReturns theResultTypethat contains the properties of this ResultSetView as defined in the QBE-form.Returns the IDs of the selected documents.final intReturns the currently selected index.Deprecated.Deprecated.usegetSelectedListItems()instead.Returns the selected item.Returns all selected items.Returns a list containing the properties of the selected rows.final Stringfinal StringintReturns the total size of the last query result.voidinitializePaging(ResultPaging paging) Initialize paging options.booleanbooleanbooleanbooleanfinal booleanbooleanbooleanChecks if save layout is enabled.booleanvoidonButtonQuery(org.zkoss.zk.ui.event.Event event) Fires onButtonQuery-event for executing a database-query.voidonCancelEdit(org.zkoss.zk.ui.event.Event event) Fires onCancelEdit-event for cancel editing selected items in combo box.voidonChangeDocumentSecurity(org.zkoss.zk.ui.event.Event event) Event handler for change of document security.voidonDeleteSelected(org.zkoss.zk.ui.event.Event event) Delete selected documents.voidonDocumentCheck(org.zkoss.zk.ui.event.Event event) Checkout / checkin actual document.voidonDocumentRelease(org.zkoss.zk.ui.event.Event event) Release actual document.voidonDownloadResultItem(org.zkoss.zk.ui.event.Event event) Fires onDownloadResultItem-event for downloading items (containing in event) from server.voidonEditContent(org.zkoss.zk.ui.event.Event event) Handler for edit content event.voidonEditItemSelected(org.zkoss.zk.ui.event.Event event) Edit an existing row.voidonEditSelected(org.zkoss.zk.ui.event.Event event) Fires onEditSelected-event for editing selected items in combo box.voidonEditStructure(org.zkoss.zk.ui.event.Event event) Handles event to edit a document's structure.voidonExport(org.zkoss.zk.ui.event.Event event) Export current result.voidonExternalStorageUpload(org.zkoss.zk.ui.event.Event event) Handles event to upload a document to External Storage.voidonExternalStorageUploadStatus(org.zkoss.zk.ui.event.Event event) voidonIndexChange(org.zkoss.zk.ui.event.Event event) Perform a query based on a document selected by another view.voidonLaunchWorkflow(org.zkoss.zk.ui.event.Event event) Launch an workflow after user selection.voidonLitigtationHold(org.zkoss.zk.ui.event.Event event) set - / unset litigation holdvoidonNavigationFolder(org.zkoss.zk.ui.event.Event event) Fires onNavigationFolder-event for showing folder documents.voidonNewSelected(org.zkoss.zk.ui.event.Event event) Creates a new row.voidonOneDriveLogin(org.zkoss.zk.ui.event.Event event) voidonPageAttached(org.zkoss.zk.ui.Page newpage, org.zkoss.zk.ui.Page oldpage) voidonPageDetached(org.zkoss.zk.ui.Page page) voidonPrintDocuments(org.zkoss.zk.ui.event.Event event) Print selected documents.voidonProlongRetention(org.zkoss.zk.ui.event.Event event) prolong the retention.voidonReduceDisposition(org.zkoss.zk.ui.event.Event event) reduce disposition time.voidonRefresh(org.zkoss.zk.ui.event.Event event) Refresh the view.voidonResetGui(org.zkoss.zk.ui.event.Event event) Handler for reset ui event.voidonSaveDoc(org.zkoss.zk.ui.event.Event event) Event handler for save document event.voidonSelectDDC(org.zkoss.zk.ui.event.Event event) Fires a SelectDDCEvent.voidonSendMailResultItem(org.zkoss.zk.ui.event.Event event) Fires onSendMailResultItem-event for sending items (contained in event) as mail from server.voidonShareBaseDocumentCheck(org.zkoss.zk.ui.event.Event event) Checkout / checkin document with ShareBase.voidonShareBaseLogin(org.zkoss.zk.ui.event.Event event) Handles event for login to ShareBase.voidonStartWorkflow(org.zkoss.zk.ui.event.Event event) Fires onStartWorkflow-event for starting the workflow for the selected document.voidonUnDeleteSelected(org.zkoss.zk.ui.event.Event event) Undelete selected documents.voidonUploadSuccess(org.zkoss.zk.ui.event.Event event) Handles upload success events.voidonWorkflowAction(org.zkoss.zk.ui.event.Event event) Performs a workflow action.voidonWorkflowComment(org.zkoss.zk.ui.event.Event event) Performs a workflow action.voidonWorkflowDisplayComment(org.zkoss.zk.ui.event.Event event) Performs a workflow action.voidperformQuery(com.saperion.rmi.SaQueryInfo query) Performs execution of the given query.voidrefresh(boolean newQuery) Refreshes the result list.voidUnlocks all documents.final voidreset()Removes the ResultSetList from main-center.voidselects the first valid row.voidselects the last valid row.voidselects the next row.voidselects the previous row.voidsetAllowed(String value) voidsetCustomSortSequences(Map<String, SortDirection> sortSequences) Sets custom sort sequences for the specified column names.voidsetDefaultButtonType(ResultSetView.DefaultButtonType defaultButton) Sets the default type of button to be shown for each item in result list.voidsetDefaultMenu(boolean value) voidDeprecated.usesetDocumentRead(ResultListItem)instead.voidSets the specified item's state to 'read' without creating a new revision.voidDeprecated.usesetDocumentUnread(ResultListItem)instead.voidSets the specified item's state to 'unread' without creating a new revision.voidsetEnableDocEdit(boolean enableDocEdit) voidsetEnableDocView(boolean enableDocView) voidsetExportEnabled(boolean enabled) Enables or disables the export button.final voidsetFieldsToDisplay(String fieldstodisplay) voidsetFileParent(FolderId parent) Sets the folder this result list is using.final voidsetFilterViewShown(boolean showFilterView) Enables or disables the filter view.voidsetFormName(String name) final voidsetHeaderAlignments(String alignments) Sets the alignments of the headers.final voidsetHeaderNames(String names) Sets the names of the column headers from left to right.final voidsetHeaderWidths(String widths) Sets the widths of the headers.voidSet the list to lookup mode.voidsetMaxRecords(int maxRecords) Sets maximum number of records for the result set.final voidsetPageSize(int size) Sets the page size of the list.voidsetRemoveMenuItemList(List<MenuItemKey> removeList, boolean multi) Set menu items for removing.voidsetResultColumns(Map<String, ResultSetColumn> resultColumns) Sets the columns for the result list.voidsetResultListClass(Class<? extends ResultList> clazz) Sets the class that will be used for the internalResultList.voidsetSaveFavoriteEnabled(boolean enabled) Sets the saveFavoriteEnabled parameter.voidsetSaveLayout(boolean save) Enables or disabled saving of the layout.voidsetSearchMode(SearchMode mode) Sets the search-mode.final voidsetSelectedIndex(int index) Moves the selected index of the result list to the specified position.voidSet the list to select lookup mode.final voidsetSelectQuery(String query) Setter for selectQuery attribute to be used in zul.final voidsetSelectWfQuery(String query, boolean perform) Setter for selectQuery attribute to be used in zul.voidsetSimpleMode(boolean mode) Sets the simple mode parameter.final voidsetSortingDirections(String directions) Sets the sorting direction for each column from left to right.voidSets the title.voidsetVisibleColumns(Set<String> columns) voidupdateListItem(ResultListItem item) Updates the specified item in the list.Methods inherited from class com.saperion.ngc.events.BaseWindow
getEventtarget, getMainWindow, postAddLinkEvent, postAddToFavoritesEvent, postCancelSelectedEvent, postChangeDocumentSecurityEvent, postChangeFolderSecurityEvent, postDeleteSelectedEvent, postDisplayPopupEvent, postDisplayPopupEvent, postDisplayPopupEvent, postDisplayResultItemEvent, postDisplayResultItemEvent, postDocumentCheckEvent, postDocumentCheckWithShareBaseEvent, postDocumentFilingEvent, postDocumentFilingEvent, postDocumentReleaseEvent, postDownloadResultItemEvent, postEditContentEvent, postEditItemSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditStructureEvent, postErrorLogEvent, postErrorLogEvent, postExternalStorageUploadEvent, postExternalStorageUploadStatusEvent, postFieldChangeEvent, postFileActionEvent, postFileActionEvent, postFormButtonEvent, postIndexResultItemEvent, postInfoLogEvent, postInfoLogEvent, postLaunchWorkflowEvent, postLockDocumentEvent, postLogonEvent, postLogonEvent, postNavigationFolderEvent, postNavigationFormEvent, postNavigationFormEvent, postNavigationWebpartEvent, postNewSelectedEvent, postOpenMaskEvent, postPrintDocumentEvent, postProlongRetentionEvent, postQueryFavoriteEvent, postReduceDispositionEvent, postRefreshEvent, postResetGuiEvent, postResultFieldEvent, postSaveDocumentEvent, postSaveDocumentEvent, postSelectTreeItemEvent, postSendMailResultItemEvent, postSetLitigationHoldEvent, postShareBaseLoginEvent, postStartWorkflowEvent, postTabSelectedEvent, postUnDeleteSelectedEvent, postUploadDocumentEvent, postUploadeExternalStorageDocumentEvent, postUploadSuccessEvent, postWarningLogEvent, postWarningLogEvent, postWorkflowActionEvent, postWorkflowCommentEvent, postWorkflowDisplayCommentEvent, setEventtargetMethods inherited from class org.zkoss.zul.Window
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, renderProperties, service, setBorder, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMaximizable, setMaximized, setMinheight, setMinimizable, setMinimized, setMinwidth, setMode, setMode, setMode, setPosition, setShadow, setSizable, setTopmost, setVisibleMethods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesMethods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, 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, setZIndexDirectlyMethods inherited from class org.zkoss.zk.ui.AbstractComponent
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, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, 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, willSerializeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.zkoss.zk.ui.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, setWidgetOverrideMethods inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
invalidatePartialMethods inherited from interface com.saperion.ngc.events.EventChild
getEventtarget, setEventtargetMethods inherited from interface com.saperion.ngc.events.EventChildHandler
postAddLinkEvent, postAddToFavoritesEvent, postCancelSelectedEvent, postChangeDocumentSecurityEvent, postChangeFolderSecurityEvent, postDeleteSelectedEvent, postDisplayPopupEvent, postDisplayPopupEvent, postDisplayPopupEvent, postDisplayResultItemEvent, postDisplayResultItemEvent, postDocumentCheckEvent, postDocumentCheckWithShareBaseEvent, postDocumentFilingEvent, postDocumentFilingEvent, postDocumentReleaseEvent, postDownloadResultItemEvent, postEditContentEvent, postEditItemSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditSelectedEvent, postEditStructureEvent, postExternalStorageUploadEvent, postExternalStorageUploadStatusEvent, postFieldChangeEvent, postFileActionEvent, postFileActionEvent, postFormButtonEvent, postIndexResultItemEvent, postLaunchWorkflowEvent, postLockDocumentEvent, postLogonEvent, postLogonEvent, postNavigationFolderEvent, postNavigationFormEvent, postNavigationFormEvent, postNavigationWebpartEvent, postNewSelectedEvent, postOpenMaskEvent, postPrintDocumentEvent, postProlongRetentionEvent, postQueryFavoriteEvent, postReduceDispositionEvent, postRefreshEvent, postResetGuiEvent, postResultFieldEvent, postSaveDocumentEvent, postSaveDocumentEvent, postSelectTreeItemEvent, postSendMailResultItemEvent, postSetLitigationHoldEvent, postShareBaseLoginEvent, postStartWorkflowEvent, postTabSelectedEvent, postUnDeleteSelectedEvent, postUploadDocumentEvent, postUploadeExternalStorageDocumentEvent, postUploadSuccessEvent, postWorkflowActionEvent, postWorkflowCommentEvent, postWorkflowDisplayCommentEventMethods inherited from interface org.zkoss.zk.ui.IdSpace
getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, hasFellow, hasFellowMethods inherited from interface com.saperion.ngc.events.LogEventChildHandler
postErrorLogEvent, postErrorLogEvent, postInfoLogEvent, postInfoLogEvent, postWarningLogEvent, postWarningLogEventMethods inherited from interface org.zkoss.zk.ui.ext.Scope
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
-
Constructor Details
-
ResultSetViewImpl
public ResultSetViewImpl()Constructor. -
ResultSetViewImpl
public ResultSetViewImpl(boolean showTitleArea) Constructor for use in LookupPopup.- Parameters:
showTitleArea- whether to show the title area or not. Note that when the title area is disabled, the favorite button and the filter-box are disabled, too.
-
ResultSetViewImpl
public ResultSetViewImpl(com.saperion.ngc.iform.xml.ResultType definition, boolean stretch, String maskName, com.saperion.ngc.iform.xml.PosType panePos, String ddc) Constructor for iForm use.- Parameters:
definition- component definitionstretch- true if the component should fill its containermaskName- Mask namepanePos- Pane positionddc- DDC name
-
-
Method Details
-
getOriginalItemIndex
public int getOriginalItemIndex()Description copied from interface:ResultSetViewReturns the original index of the currently selected item or -1 if no item is selected.- Specified by:
getOriginalItemIndexin interfaceResultSetView- Returns:
- the original given item index
- See Also:
-
getCenter
public org.zkoss.zul.Center getCenter()- Returns:
- main boderlayout-center of the ResultSetView
-
doSort
public void doSort()Sorts the current result. The sort-directions are taken from the headers returned byResultList.getHeaderInformation(). -
clearResultSet
public final void clearResultSet()Removes all child-components from ResultSetView-Center. Inserts a not-found-label. Clears the result set.- Specified by:
clearResultSetin interfaceResultSetView- See Also:
-
reset
public final void reset()Removes the ResultSetList from main-center. Reset view.- Specified by:
resetin interfaceResultSetView- See Also:
-
releaseLocks
public void releaseLocks()Unlocks all documents. Unlocks all previously locked documents.- Specified by:
releaseLocksin interfaceResultSetView- See Also:
-
onSelectDDC
public void onSelectDDC(org.zkoss.zk.ui.event.Event event) Fires a SelectDDCEvent. Handle DDC select event.- Specified by:
onSelectDDCin interfaceResultSetView- Parameters:
event- the event contains the database to be select- See Also:
-
onDownloadResultItem
public void onDownloadResultItem(org.zkoss.zk.ui.event.Event event) Fires onDownloadResultItem-event for downloading items (containing in event) from server. Handle download document event.- Specified by:
onDownloadResultItemin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onSendMailResultItem
public void onSendMailResultItem(org.zkoss.zk.ui.event.Event event) Fires onSendMailResultItem-event for sending items (contained in event) as mail from server. Handle send documents as mail event.- Specified by:
onSendMailResultItemin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onButtonQuery
public void onButtonQuery(org.zkoss.zk.ui.event.Event event) Fires onButtonQuery-event for executing a database-query. Handles query button.- Specified by:
onButtonQueryin interfaceResultSetView- Parameters:
event- Events- See Also:
-
onEditSelected
public void onEditSelected(org.zkoss.zk.ui.event.Event event) Fires onEditSelected-event for editing selected items in combo box. Locks the selected row.- Specified by:
onEditSelectedin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onCancelEdit
public void onCancelEdit(org.zkoss.zk.ui.event.Event event) Fires onCancelEdit-event for cancel editing selected items in combo box. Event handler for cancel edit event.- Specified by:
onCancelEditin interfaceResultSetView- Parameters:
event- event- See Also:
-
onEditStructure
public void onEditStructure(org.zkoss.zk.ui.event.Event event) Handles event to edit a document's structure.- Specified by:
onEditStructurein interfaceResultSetView- Parameters:
event- event- See Also:
-
selectNext
public void selectNext()selects the next row.- Specified by:
selectNextin interfaceResultSetView
-
selectPrevious
public void selectPrevious()selects the previous row.- Specified by:
selectPreviousin interfaceResultSetView
-
selectFirst
public void selectFirst()selects the first valid row.- Specified by:
selectFirstin interfaceResultSetView
-
selectLast
public void selectLast()selects the last valid row.- Specified by:
selectLastin interfaceResultSetView
-
getNumberOfIndexes
public int getNumberOfIndexes()Description copied from interface:ResultSetViewReturns the number of items in this list.- Specified by:
getNumberOfIndexesin interfaceResultSetView- Returns:
- item count in result-list.
-
onSaveDoc
public void onSaveDoc(org.zkoss.zk.ui.event.Event event) Event handler for save document event.- Specified by:
onSaveDocin interfaceResultSetView- Parameters:
event- event- See Also:
-
onChangeDocumentSecurity
public void onChangeDocumentSecurity(org.zkoss.zk.ui.event.Event event) Event handler for change of document security.- Specified by:
onChangeDocumentSecurityin interfaceResultSetView- Parameters:
event- event- See Also:
-
onRefresh
public void onRefresh(org.zkoss.zk.ui.event.Event event) Refresh the view.- Specified by:
onRefreshin interfaceResultSetView- Parameters:
event- Event- See Also:
-
refresh
public void refresh(boolean newQuery) Refreshes the result list.- Specified by:
refreshin interfaceResultSetView- Parameters:
newQuery- if true, the query will be executed on the backend system again- See Also:
-
updateListItem
Description copied from interface:ResultSetViewUpdates the specified item in the list. The other items will remain as they are. The list will not automatically scroll to updated item or activate the page that contains the specified item. This method throws anIllegalArgumentExceptionwhen the specified item is not contained in the current query-result.- Specified by:
updateListItemin interfaceResultSetView- Parameters:
item- the item to be updated
-
onStartWorkflow
public void onStartWorkflow(org.zkoss.zk.ui.event.Event event) Fires onStartWorkflow-event for starting the workflow for the selected document.- Specified by:
onStartWorkflowin interfaceResultSetView- Parameters:
event- Event onStartWorkflow.- See Also:
-
onLaunchWorkflow
public void onLaunchWorkflow(org.zkoss.zk.ui.event.Event event) Launch an workflow after user selection. Launch an workflow after user selection.- Specified by:
onLaunchWorkflowin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onWorkflowAction
public void onWorkflowAction(org.zkoss.zk.ui.event.Event event) Performs a workflow action. Performs a workflow action.- Specified by:
onWorkflowActionin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onWorkflowComment
public void onWorkflowComment(org.zkoss.zk.ui.event.Event event) Performs a workflow action. Handle workflow comment event.- Specified by:
onWorkflowCommentin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onWorkflowDisplayComment
public void onWorkflowDisplayComment(org.zkoss.zk.ui.event.Event event) Performs a workflow action. Handle workflow display comment event- Specified by:
onWorkflowDisplayCommentin interfaceResultSetView- See Also:
-
onDeleteSelected
public void onDeleteSelected(org.zkoss.zk.ui.event.Event event) Delete selected documents.- Specified by:
onDeleteSelectedin interfaceResultSetView- Parameters:
event- event- See Also:
-
onUnDeleteSelected
public void onUnDeleteSelected(org.zkoss.zk.ui.event.Event event) Undelete selected documents.- Specified by:
onUnDeleteSelectedin interfaceResultSetView- Parameters:
event- event- See Also:
-
onNewSelected
public void onNewSelected(org.zkoss.zk.ui.event.Event event) Creates a new row.- Specified by:
onNewSelectedin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onEditItemSelected
public void onEditItemSelected(org.zkoss.zk.ui.event.Event event) Edit an existing row.- Specified by:
onEditItemSelectedin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onDocumentCheck
public void onDocumentCheck(org.zkoss.zk.ui.event.Event event) Checkout / checkin actual document.- Specified by:
onDocumentCheckin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onDocumentRelease
public void onDocumentRelease(org.zkoss.zk.ui.event.Event event) Release actual document.- Specified by:
onDocumentReleasein interfaceResultSetView- Parameters:
event- Event- See Also:
-
onPrintDocuments
public void onPrintDocuments(org.zkoss.zk.ui.event.Event event) Print selected documents.- Specified by:
onPrintDocumentsin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onExport
public void onExport(org.zkoss.zk.ui.event.Event event) Export current result.- Specified by:
onExportin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onProlongRetention
public void onProlongRetention(org.zkoss.zk.ui.event.Event event) prolong the retention.- Specified by:
onProlongRetentionin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onReduceDisposition
public void onReduceDisposition(org.zkoss.zk.ui.event.Event event) reduce disposition time.- Specified by:
onReduceDispositionin interfaceResultSetView- Parameters:
event- Event- See Also:
-
onLitigtationHold
public void onLitigtationHold(org.zkoss.zk.ui.event.Event event) set - / unset litigation hold- Specified by:
onLitigtationHoldin interfaceResultSetView- Parameters:
event- Event- See Also:
-
getSelectedIds
Returns the IDs of the selected documents.- Specified by:
getSelectedIdsin interfaceResultSetView- Returns:
- Id's from selected items in result list.
- See Also:
-
setSelectQuery
Setter for selectQuery attribute to be used in zul. Performs execution of the given query.- Specified by:
setSelectQueryin interfaceResultSetView- Parameters:
query- Query string- See Also:
-
setSelectWfQuery
Setter for selectQuery attribute to be used in zul. Performs execution of the given query.- Specified by:
setSelectWfQueryin interfaceResultSetView- Parameters:
query- Query stringperform- True for perform immediately- See Also:
-
performQuery
public void performQuery(com.saperion.rmi.SaQueryInfo query) Performs execution of the given query.- Specified by:
performQueryin interfaceResultSetView- Parameters:
query- query info- See Also:
-
getSelectQuery
- Specified by:
getSelectQueryin interfaceResultSetView- Returns:
- select query
- See Also:
-
setPageSize
public final void setPageSize(int size) Sets the page size of the list.- Specified by:
setPageSizein interfaceResultSetView- Parameters:
size- page size- See Also:
-
getPageSize
public final int getPageSize()- Specified by:
getPageSizein interfaceResultSetView- Returns:
- the page size
- See Also:
-
setFilterViewShown
public final void setFilterViewShown(boolean showFilterView) Enables or disables the filter view.- Specified by:
setFilterViewShownin interfaceResultSetView- Parameters:
showFilterView- true if filter view should be shown- See Also:
-
isFilterViewShown
public final boolean isFilterViewShown()- Specified by:
isFilterViewShownin interfaceResultSetView- Returns:
- filter view shown
- See Also:
-
setSelectedIndex
public final void setSelectedIndex(int index) Moves the selected index of the result list to the specified position. If the specified position is not available, the method has no effect.- Specified by:
setSelectedIndexin interfaceResultSetView- Parameters:
index- new index to select- See Also:
-
getSelectedIndex
public final int getSelectedIndex()Returns the currently selected index.- Specified by:
getSelectedIndexin interfaceResultSetView- Returns:
- the currently selected index
- See Also:
-
getFieldsToDisplay
- Specified by:
getFieldsToDisplayin interfaceResultSetView- Returns:
- the fieldsToDisplay
- See Also:
-
setFieldsToDisplay
- Specified by:
setFieldsToDisplayin interfaceResultSetView- Parameters:
fieldstodisplay- the fieldsToDisplay to set- See Also:
-
setSortingDirections
Sets the sorting direction for each column from left to right. Can only be set in combination with fieldsToDisplay.- Specified by:
setSortingDirectionsin interfaceResultSetView- Parameters:
directions- Comma-separated list of directions. Possible values: 'ascending', 'descending', 'natural', 'disabled'.- See Also:
-
getSortingDirections
- Specified by:
getSortingDirectionsin interfaceResultSetView- Returns:
- sorting directions
- See Also:
-
setHeaderNames
Sets the names of the column headers from left to right. Can only be set in combination with fieldsToDisplay.- Specified by:
setHeaderNamesin interfaceResultSetView- Parameters:
names- header names- See Also:
-
getHeaderNames
- Specified by:
getHeaderNamesin interfaceResultSetView- Returns:
- the preset header names
- See Also:
-
setHeaderAlignments
Sets the alignments of the headers. Can only be set in combination with fieldsToDisplay.- Specified by:
setHeaderAlignmentsin interfaceResultSetView- Parameters:
alignments- alignments. Possible values: 'right', 'left', 'center'.- See Also:
-
getHeaderAlignments
- Specified by:
getHeaderAlignmentsin interfaceResultSetView- Returns:
- header alignments
- See Also:
-
setHeaderWidths
Sets the widths of the headers. Can only be used in combination with fieldsToDisplay.- Specified by:
setHeaderWidthsin interfaceResultSetView- Parameters:
widths- widths When an invalid value was found- See Also:
-
getHeaderWidths
- Specified by:
getHeaderWidthsin interfaceResultSetView- Returns:
- header widths
-
afterSelect
public void afterSelect(boolean focus) Performs the necessary actions after an item was selected.- Parameters:
focus- if true, the selected item will be focused
-
getSelectedItems
Deprecated.usegetSelectedListItems()instead. Will be removed in 8.1.Description copied from interface:ResultSetViewReturns all selected items.- Specified by:
getSelectedItemsin interfaceResultSetView- Returns:
- selected items
- See Also:
-
getSelectedItem
Deprecated.usegetSelectedListItem()instead. Will be removed in 8.1.Description copied from interface:ResultSetViewReturns the selected item.- Specified by:
getSelectedItemin interfaceResultSetView- Returns:
- selected item
- See Also:
-
getSelectedListItems
Returns all selected items.- Specified by:
getSelectedListItemsin interfaceResultSetView- Returns:
- selected items
- See Also:
-
getSelectedListItem
Returns the selected item.- Specified by:
getSelectedListItemin interfaceResultSetView- Returns:
- selected item
- See Also:
-
onIndexChange
public void onIndexChange(org.zkoss.zk.ui.event.Event event) Perform a query based on a document selected by another view.- Specified by:
onIndexChangein interfaceResultSetView- Parameters:
event- Event- See Also:
-
onResetGui
public void onResetGui(org.zkoss.zk.ui.event.Event event) Handler for reset ui event.- Specified by:
onResetGuiin interfaceResultSetView- Parameters:
event- ZK event- See Also:
-
onEditContent
public void onEditContent(org.zkoss.zk.ui.event.Event event) Handler for edit content event.- Specified by:
onEditContentin interfaceResultSetView- Parameters:
event- ZK event- See Also:
-
setResultColumns
Sets the columns for the result list.- Specified by:
setResultColumnsin interfaceResultSetView- Parameters:
resultColumns- columns- See Also:
-
getDocumentVersions
- Parameters:
id- Document id- Returns:
- Version info for this id
-
isSimpleMode
public boolean isSimpleMode()- Specified by:
isSimpleModein interfaceResultSetView- Returns:
- simple mode parameter value
- See Also:
-
setSimpleMode
public void setSimpleMode(boolean mode) Sets the simple mode parameter.- Specified by:
setSimpleModein interfaceResultSetView- Parameters:
mode- parameter value- See Also:
-
setLookupMode
public void setLookupMode()Set the list to lookup mode. -
setSelectLookupMode
public void setSelectLookupMode()Set the list to select lookup mode. -
setVisibleColumns
- Parameters:
columns- Columns
-
getFormName
- Specified by:
getFormNamein interfaceResultSetView- Returns:
- Form name
- See Also:
-
setFormName
- Specified by:
setFormNamein interfaceResultSetView- Parameters:
name- Form name- See Also:
-
isSaveFavoriteEnabled
public boolean isSaveFavoriteEnabled()- Specified by:
isSaveFavoriteEnabledin interfaceResultSetView- Returns:
- saveFavoriteEnabled parameter
- See Also:
-
setSaveFavoriteEnabled
public void setSaveFavoriteEnabled(boolean enabled) Sets the saveFavoriteEnabled parameter.- Specified by:
setSaveFavoriteEnabledin interfaceResultSetView- Parameters:
enabled- value- See Also:
-
setExportEnabled
public void setExportEnabled(boolean enabled) Enables or disables the export button.- Specified by:
setExportEnabledin interfaceResultSetView- Parameters:
enabled- enabled or not- See Also:
-
isExportEnabled
public boolean isExportEnabled()- Specified by:
isExportEnabledin interfaceResultSetView- Returns:
- whether export is enabled or not
- See Also:
-
isAutoSearch
public boolean isAutoSearch()- Specified by:
isAutoSearchin interfaceResultSetView- Returns:
- Auto search on.
- See Also:
-
setTitle
Sets the title. Used in iForms to display frame title.- Specified by:
setTitlein interfaceResultSetView- Overrides:
setTitlein classorg.zkoss.zul.Window- Parameters:
titleString- title string- See Also:
-
Window.setTitle(java.lang.String)
-
onPageAttached
public void onPageAttached(org.zkoss.zk.ui.Page newpage, org.zkoss.zk.ui.Page oldpage) - Specified by:
onPageAttachedin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
onPageAttachedin classorg.zkoss.zk.ui.AbstractComponent- See Also:
-
AbstractComponent.onPageAttached(org.zkoss.zk.ui.Page, org.zkoss.zk.ui.Page)
-
onPageDetached
public void onPageDetached(org.zkoss.zk.ui.Page page) - Specified by:
onPageDetachedin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
onPageDetachedin classorg.zkoss.zul.Window- See Also:
-
Window.onPageDetached(org.zkoss.zk.ui.Page)
-
addCustomMenuItem
public void addCustomMenuItem(org.zkoss.zul.Menuitem item, boolean multi) Adds a custom menu item. Ifmultiis true, the menu item will be added to the single and multi selection menus.- Specified by:
addCustomMenuItemin interfaceResultSetView- Parameters:
item- the itemmulti- set to true if the item should be available for multi selection- See Also:
-
getCustomMenuItems
Returns the custom menu items.- Specified by:
getCustomMenuItemsin interfaceResultSetView- Parameters:
multi- if true, the menu items returned can be used with multi selection- Returns:
- map with label/menuitem pairs
- See Also:
-
addCustomMenu
public void addCustomMenu(org.zkoss.zul.Menu menu, boolean multi) Adds a custom menu. Ifmultiis true, the menu item will be added to the single and multi selection menus.- Specified by:
addCustomMenuin interfaceResultSetView- Parameters:
menu- the menumulti- set to true if the menu should be available for multi selection- See Also:
-
getCustomMenus
Returns the custom menus.- Specified by:
getCustomMenusin interfaceResultSetView- Parameters:
multi- if true, the menus returned can be used with multi selection- Returns:
- list of menus
- See Also:
-
getSelectedRows
Returns a list containing the properties of the selected rows. If no row is selected, an empty list is returned.- Specified by:
getSelectedRowsin interfaceResultSetView- Returns:
- list of properties of the selected rows
- See Also:
-
getAllRows
Returns a list containing the properties of all rows.- Specified by:
getAllRowsin interfaceResultSetView- Returns:
- list of properties of all rows
- See Also:
-
getParentForm
Returns the parent form or null if this field is not part of a form.- Specified by:
getParentFormin interfaceResultSetView- Returns:
- parent form or null
- See Also:
-
getResultSetList
Description copied from interface:ResultSetViewReturns theResultListused in this ResultSetView.- Specified by:
getResultSetListin interfaceResultSetView- Returns:
ResultListused in this ResultSetView
-
getResultType
public com.saperion.ngc.iform.xml.ResultType getResultType()Description copied from interface:ResultSetViewReturns theResultTypethat contains the properties of this ResultSetView as defined in the QBE-form.- Specified by:
getResultTypein interfaceResultSetView- Returns:
- the
ResultTypeof this ResultSetView
-
setFileParent
Sets the folder this result list is using.- Parameters:
parent- parent folder for filing actions
-
getFileParent
- Returns:
- parent folder for filing actions
-
getAllowed
- Specified by:
getAllowedin interfaceResultSetView- Returns:
- Returns all allowed features.
-
setAllowed
- Specified by:
setAllowedin interfaceResultSetView- Parameters:
value- Comma separated list of allowed features. One of: EDIT, DELETE, INDEX, SAVE, NEW, VIEW, SECURITY- See Also:
-
getDefaultMenu
public boolean getDefaultMenu()- Specified by:
getDefaultMenuin interfaceResultSetView- Returns:
- True, if default menu switched on.
- See Also:
-
setDefaultMenu
public void setDefaultMenu(boolean value) - Specified by:
setDefaultMenuin interfaceResultSetView- Parameters:
value- True for switched on default menu.- See Also:
-
getViewMode
- Returns:
- the view-mode used by this result-set
-
getResultSetViewFilterArea
- Returns:
- current Filter-Area (north)
-
initializePaging
Description copied from interface:ResultSetViewInitialize paging options.- Specified by:
initializePagingin interfaceResultSetView- Parameters:
paging- paging
-
getContextMenuPopup
public org.zkoss.zul.Menupopup getContextMenuPopup()Returns the popup of the context menu. Note that the popup is replaced each time the list is rendered. To modify the menu, useaddCustomMenuoraddCustomMenuIteminstead.- Specified by:
getContextMenuPopupin interfaceResultSetView- Returns:
- the context menu popup of the result list
- See Also:
-
setDefaultButtonType
Sets the default type of button to be shown for each item in result list.- Specified by:
setDefaultButtonTypein interfaceResultSetView- Parameters:
defaultButton- default button type to be set- See Also:
-
getDefaultButtonType
- Specified by:
getDefaultButtonTypein interfaceResultSetView- Returns:
- the default type of button to be shown for each item in result list.
- See Also:
-
getIndexMask
- Specified by:
getIndexMaskin interfaceResultSetView- Returns:
- the index mask defined in the definition of this ResultSetView
- See Also:
-
getMaskName
get the MaskName .- Returns:
- maskName
-
setSaveLayout
public void setSaveLayout(boolean save) Enables or disabled saving of the layout.- Specified by:
setSaveLayoutin interfaceResultSetView- Parameters:
save- true to enable, false to disable- See Also:
-
isSaveLayout
public boolean isSaveLayout()Checks if save layout is enabled.- Specified by:
isSaveLayoutin interfaceResultSetView- Returns:
- true, if enabled, false if not.
- See Also:
-
setRemoveMenuItemList
Set menu items for removing.- Specified by:
setRemoveMenuItemListin interfaceResultSetView- Parameters:
removeList- List of items.multi- True for multiselect- See Also:
-
getRemoveMenuItemList
Reads the list of remove menu items.- Specified by:
getRemoveMenuItemListin interfaceResultSetView- Parameters:
multi- True for multiselect- Returns:
- list of remove menu items
- See Also:
-
deleteConfiguration
public void deleteConfiguration()Deletes the stored configuration of the columns (width and sort-direction).- Specified by:
deleteConfigurationin interfaceResultSetView- See Also:
-
setMaxRecords
public void setMaxRecords(int maxRecords) Sets maximum number of records for the result set.- Parameters:
maxRecords- maximum number of records
-
getMaxRecords
public int getMaxRecords()Gets maximum number of records for the result set.- Returns:
- maximum number of records
-
setSearchMode
Sets the search-mode. SeeSearchModefor possible modes.- Specified by:
setSearchModein interfaceResultSetView- Parameters:
mode- the search mode to use- See Also:
-
getSearchMode
- Specified by:
getSearchModein interfaceResultSetView- Returns:
- the search mode currently in use
- See Also:
-
export
public void export()Exports the current query result. A settings-dialog is shown to let the user decide the format, filename and columns for the export.- Specified by:
exportin interfaceResultSetView- See Also:
-
export
public void export(Map<String, String> columnsToExport, ResultSetView.ExportFormat format, String filename) Exports the current query result. No settings-dialog will be shown.- Specified by:
exportin interfaceResultSetView- Parameters:
columnsToExport- columns to be exported. The map contains the upper-case column names as in the database as keys and the desired display-names of the columns as values.format- the format to export tofilename- the name of the resulting file- See Also:
-
getTotalSize
public int getTotalSize()Returns the total size of the last query result.- Specified by:
getTotalSizein interfaceResultSetView- Returns:
- total size of result
- See Also:
-
setDocumentRead
Deprecated.usesetDocumentRead(ResultListItem)instead. Will be removed in 8.1.Description copied from interface:ResultSetViewSets the specified item's state to 'read' without creating a new revision.- Specified by:
setDocumentReadin interfaceResultSetView- Parameters:
item- item to change- See Also:
-
setDocumentUnread
Deprecated.usesetDocumentUnread(ResultListItem)instead. Will be removed in 8.1.Description copied from interface:ResultSetViewSets the specified item's state to 'unread' without creating a new revision.- Specified by:
setDocumentUnreadin interfaceResultSetView- Parameters:
item- item to change- See Also:
-
setDocumentRead
Sets the specified item's state to 'read' without creating a new revision.- Specified by:
setDocumentReadin interfaceResultSetView- Parameters:
item- item to change- See Also:
-
setDocumentUnread
Sets the specified item's state to 'unread' without creating a new revision.- Specified by:
setDocumentUnreadin interfaceResultSetView- Parameters:
item- item to change- See Also:
-
addCustomCondition
Adds a condition that will be used each time this ResultSetView performs a query.- Specified by:
addCustomConditionin interfaceResultSetView- Parameters:
condition- aFieldResultBeanor aCustomConditionBeanwith the condition- See Also:
-
getCustomConditions
- Specified by:
getCustomConditionsin interfaceResultSetView- Returns:
- list of all custom conditions that were added by
ResultSetView.addCustomCondition(FieldResultBean). The returned list can be modified. - See Also:
-
setResultListClass
Description copied from interface:ResultSetViewSets the class that will be used for the internalResultList. The default isResultListImpl. The class must have a constructor with no arguments.- Specified by:
setResultListClassin interfaceResultSetView- Parameters:
clazz- class to be used
-
setCustomSortSequences
Description copied from interface:ResultSetViewSets custom sort sequences for the specified column names. These sort sequences will overwrite the sort sequences selected by the user in the UI.- Specified by:
setCustomSortSequencesin interfaceResultSetView- Parameters:
sortSequences- a map that maps the database-name of a column with aSortDirection
-
getCustomSortSequences
- Specified by:
getCustomSortSequencesin interfaceResultSetView- Returns:
- the custom sort sequences set by
ResultSetView.setCustomSortSequences(Map). If no custom sort sequences were set, this method returns an empty map.
-
onUploadSuccess
public void onUploadSuccess(org.zkoss.zk.ui.event.Event event) Description copied from interface:ResultSetViewHandles upload success events.- Specified by:
onUploadSuccessin interfaceResultSetView- Parameters:
event- event
-
getPropertyConverter
Description copied from interface:ResultSetViewReturns the converter that is used to convertSaPropertyValueinstances to strings. The converter is initialized with the current locale and the DDC used by this ResultSetView.- Specified by:
getPropertyConverterin interfaceResultSetView- Returns:
- the property converter used by this ResultSetView
-
getHeaderMenuPopups
-
onExternalStorageUpload
public void onExternalStorageUpload(org.zkoss.zk.ui.event.Event event) Description copied from interface:ResultSetViewHandles event to upload a document to External Storage.- Specified by:
onExternalStorageUploadin interfaceResultSetView- Parameters:
event- event
-
onExternalStorageUploadStatus
public void onExternalStorageUploadStatus(org.zkoss.zk.ui.event.Event event) - Specified by:
onExternalStorageUploadStatusin interfaceResultSetView
-
onOneDriveLogin
public void onOneDriveLogin(org.zkoss.zk.ui.event.Event event) - Specified by:
onOneDriveLoginin interfaceResultSetView
-
isEnableDocView
public boolean isEnableDocView() -
setEnableDocView
public void setEnableDocView(boolean enableDocView) -
isEnableDocEdit
public boolean isEnableDocEdit() -
setEnableDocEdit
public void setEnableDocEdit(boolean enableDocEdit)
-
getSelectedListItem()instead.