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,java.io.Serializable,java.lang.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
public class ResultSetViewImpl extends BaseWindow implements ResultSetView
Implementation of ResultSetView.
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResultSetViewImpl.ViewModeEnumeration for view modes.-
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
-
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.Children
-
Nested classes/interfaces inherited from interface com.saperion.ngc.resultset.ResultSetView
ResultSetView.DefaultButtonType, ResultSetView.ExportFormat
-
-
Field Summary
-
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
-
Fields 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_IGNORE
-
Fields 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_COMMENT
-
Fields 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
Constructors Constructor Description ResultSetViewImpl()Constructor.ResultSetViewImpl(boolean showTitleArea)Constructor for use in LookupPopup.ResultSetViewImpl(com.saperion.ngc.iform.xml.ResultType definition, boolean stretch, java.lang.String maskName, com.saperion.ngc.iform.xml.PosType panePos, java.lang.String ddc)Constructor for iForm use.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddCustomCondition(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.voidclearResultSet()Removes all child-components from ResultSetView-Center.voiddeleteConfiguration()Deletes the stored configuration of the columns (width and sort-direction).voiddoSort()Sorts the current result.voidexport()Exports the current query result.voidexport(java.util.Map<java.lang.String,java.lang.String> columnsToExport, ResultSetView.ExportFormat format, java.lang.String filename)Exports the current query result.java.lang.StringgetAllowed()java.util.List<ResultProperties>getAllRows()Returns a list containing the properties of all rows.org.zkoss.zul.CentergetCenter()org.zkoss.zul.MenupopupgetContextMenuPopup()Returns the popup of the context menu.java.util.List<FieldResultBean>getCustomConditions()java.util.List<org.zkoss.zul.Menuitem>getCustomMenuItems(boolean multi)Returns the custom menu items.java.util.List<org.zkoss.zul.Menu>getCustomMenus(boolean multi)Returns the custom menus.java.util.Map<java.lang.String,SortDirection>getCustomSortSequences()ResultSetView.DefaultButtonTypegetDefaultButtonType()booleangetDefaultMenu()java.util.List<DocumentVersionInfo>getDocumentVersions(DocumentId id)java.lang.StringgetFieldsToDisplay()FolderIdgetFileParent()java.lang.StringgetFormName()java.lang.StringgetHeaderAlignments()java.util.Set<org.zkoss.zul.Menupopup>getHeaderMenuPopups()java.lang.StringgetHeaderNames()java.lang.StringgetHeaderWidths()java.lang.StringgetIndexMask()java.lang.StringgetMaskName()get the MaskName .intgetMaxRecords()Gets maximum number of records for the result set.intgetNumberOfIndexes()Returns the number of items in this list.intgetOriginalItemIndex()Returns the original index of the currently selected item or -1 if no item is selected.intgetPageSize()IntelligentFormViewgetParentForm()Returns the parent form or null if this field is not part of a form.PropertyToStringConvertergetPropertyConverter()Returns the converter that is used to convertSaPropertyValueinstances to strings.java.util.List<MenuItemKey>getRemoveMenuItemList(boolean multi)Reads the list of remove menu items.ResultListgetResultSetList()Returns theResultListused in this ResultSetView.ResultSetViewFilterAreagetResultSetViewFilterArea()com.saperion.ngc.iform.xml.ResultTypegetResultType()Returns theResultTypethat contains the properties of this ResultSetView as defined in the QBE-form.SearchModegetSearchMode()java.util.List<DocumentId>getSelectedIds()Returns the IDs of the selected documents.intgetSelectedIndex()Returns the currently selected index.DraggableListItemgetSelectedItem()Deprecated.usegetSelectedListItem()instead.java.util.Set<DraggableListItem>getSelectedItems()Deprecated.usegetSelectedListItems()instead.ResultListItemgetSelectedListItem()Returns the selected item.java.util.Set<ResultListItem>getSelectedListItems()Returns all selected items.java.util.List<ResultProperties>getSelectedRows()Returns a list containing the properties of the selected rows.java.lang.StringgetSelectQuery()java.lang.StringgetSortingDirections()intgetTotalSize()Returns the total size of the last query result.ResultSetViewImpl.ViewModegetViewMode()voidinitializePaging(ResultPaging paging)Initialize paging options.booleanisAutoSearch()booleanisEnableDocEdit()booleanisEnableDocView()booleanisExportEnabled()booleanisFilterViewShown()booleanisSaveFavoriteEnabled()booleanisSaveLayout()Checks if save layout is enabled.booleanisSimpleMode()voidonButtonQuery(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.voidreleaseLocks()Unlocks all documents.voidreset()Removes the ResultSetList from main-center.voidselectFirst()selects the first valid row.voidselectLast()selects the last valid row.voidselectNext()selects the next row.voidselectPrevious()selects the previous row.voidsetAllowed(java.lang.String value)voidsetCustomSortSequences(java.util.Map<java.lang.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)voidsetDocumentRead(DraggableListItem item)Deprecated.usesetDocumentRead(ResultListItem)instead.voidsetDocumentRead(ResultListItem item)Sets the specified item's state to 'read' without creating a new revision.voidsetDocumentUnread(DraggableListItem item)Deprecated.usesetDocumentUnread(ResultListItem)instead.voidsetDocumentUnread(ResultListItem item)Sets 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.voidsetFieldsToDisplay(java.lang.String fieldstodisplay)voidsetFileParent(FolderId parent)Sets the folder this result list is using.voidsetFilterViewShown(boolean showFilterView)Enables or disables the filter view.voidsetFormName(java.lang.String name)voidsetHeaderAlignments(java.lang.String alignments)Sets the alignments of the headers.voidsetHeaderNames(java.lang.String names)Sets the names of the column headers from left to right.voidsetHeaderWidths(java.lang.String widths)Sets the widths of the headers.voidsetLookupMode()Set the list to lookup mode.voidsetMaxRecords(int maxRecords)Sets maximum number of records for the result set.voidsetPageSize(int size)Sets the page size of the list.voidsetRemoveMenuItemList(java.util.List<MenuItemKey> removeList, boolean multi)Set menu items for removing.voidsetResultColumns(java.util.Map<java.lang.String,ResultSetColumn> resultColumns)Sets the columns for the result list.voidsetResultListClass(java.lang.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.voidsetSelectedIndex(int index)Moves the selected index of the result list to the specified position.voidsetSelectLookupMode()Set the list to select lookup mode.voidsetSelectQuery(java.lang.String query)Setter for selectQuery attribute to be used in zul.voidsetSelectWfQuery(java.lang.String query, boolean perform)Setter for selectQuery attribute to be used in zul.voidsetSimpleMode(boolean mode)Sets the simple mode parameter.voidsetSortingDirections(java.lang.String directions)Sets the sorting direction for each column from left to right.voidsetTitle(java.lang.String titleString)Sets the title.voidsetVisibleColumns(java.util.Set<java.lang.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, setEventtarget
-
Methods 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, setVisible
-
Methods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
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
-
Methods 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, isChildable, 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, willSerialize
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods 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, setWidgetOverride
-
Methods inherited from interface com.saperion.ngc.events.EventChild
getEventtarget, setEventtarget
-
Methods 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, postWorkflowDisplayCommentEvent
-
Methods inherited from interface org.zkoss.zk.ui.IdSpace
getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, hasFellow, hasFellow
-
Methods inherited from interface com.saperion.ngc.events.LogEventChildHandler
postErrorLogEvent, postErrorLogEvent, postInfoLogEvent, postInfoLogEvent, postWarningLogEvent, postWarningLogEvent
-
-
-
-
Constructor Detail
-
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, java.lang.String maskName, com.saperion.ngc.iform.xml.PosType panePos, java.lang.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 Detail
-
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:
ResultSetView.getOriginalItemIndex()
-
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:
ResultSetView.clearResultSet()
-
reset
public final void reset()
Removes the ResultSetList from main-center. Reset view.- Specified by:
resetin interfaceResultSetView- See Also:
ResultSetView.reset()
-
releaseLocks
public void releaseLocks()
Unlocks all documents. Unlocks all previously locked documents.- Specified by:
releaseLocksin interfaceResultSetView- See Also:
ResultSetView.releaseLocks()
-
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:
ResultSetView.onSelectDDC(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onDownloadResultItem(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onSendMailResultItem(org.zkoss.zk.ui.event.Event)
-
onNavigationFolder
public void onNavigationFolder(org.zkoss.zk.ui.event.Event event)
Fires onNavigationFolder-event for showing folder documents.- Specified by:
onNavigationFolderin interfaceResultSetView- Parameters:
event- - Event on Navigation Folder.- See Also:
ResultSetView.onNavigationFolder(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onButtonQuery(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onEditSelected(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onCancelEdit(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onEditStructure(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onSaveDoc(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onChangeDocumentSecurity(org.zkoss.zk.ui.event.Event)
-
onRefresh
public void onRefresh(org.zkoss.zk.ui.event.Event event)
Refresh the view.- Specified by:
onRefreshin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onRefresh(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.refresh(boolean)
-
updateListItem
public void updateListItem(ResultListItem item)
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:
ResultSetView.onStartWorkflow(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onLaunchWorkflow(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onWorkflowAction(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onWorkflowComment(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onWorkflowDisplayComment(org.zkoss.zk.ui.event.Event)
-
onDeleteSelected
public void onDeleteSelected(org.zkoss.zk.ui.event.Event event)
Delete selected documents.- Specified by:
onDeleteSelectedin interfaceResultSetView- Parameters:
event- event- See Also:
ResultSetView.onDeleteSelected(org.zkoss.zk.ui.event.Event)
-
onUnDeleteSelected
public void onUnDeleteSelected(org.zkoss.zk.ui.event.Event event)
Undelete selected documents.- Specified by:
onUnDeleteSelectedin interfaceResultSetView- Parameters:
event- event- See Also:
ResultSetView.onUnDeleteSelected(org.zkoss.zk.ui.event.Event)
-
onNewSelected
public void onNewSelected(org.zkoss.zk.ui.event.Event event)
Creates a new row.- Specified by:
onNewSelectedin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onNewSelected(org.zkoss.zk.ui.event.Event)
-
onEditItemSelected
public void onEditItemSelected(org.zkoss.zk.ui.event.Event event)
Edit an existing row.- Specified by:
onEditItemSelectedin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onEditItemSelected(org.zkoss.zk.ui.event.Event)
-
onDocumentCheck
public void onDocumentCheck(org.zkoss.zk.ui.event.Event event)
Checkout / checkin actual document.- Specified by:
onDocumentCheckin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onDocumentCheck(org.zkoss.zk.ui.event.Event)
-
onShareBaseDocumentCheck
public void onShareBaseDocumentCheck(org.zkoss.zk.ui.event.Event event)
Checkout / checkin document with ShareBase.- Specified by:
onShareBaseDocumentCheckin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onShareBaseDocumentCheck(org.zkoss.zk.ui.event.Event)
-
onDocumentRelease
public void onDocumentRelease(org.zkoss.zk.ui.event.Event event)
Release actual document.- Specified by:
onDocumentReleasein interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onDocumentRelease(org.zkoss.zk.ui.event.Event)
-
onPrintDocuments
public void onPrintDocuments(org.zkoss.zk.ui.event.Event event)
Print selected documents.- Specified by:
onPrintDocumentsin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onPrintDocuments(org.zkoss.zk.ui.event.Event)
-
onExport
public void onExport(org.zkoss.zk.ui.event.Event event)
Export current result.- Specified by:
onExportin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onExport(org.zkoss.zk.ui.event.Event)
-
onProlongRetention
public void onProlongRetention(org.zkoss.zk.ui.event.Event event)
prolong the retention.- Specified by:
onProlongRetentionin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onProlongRetention(org.zkoss.zk.ui.event.Event)
-
onReduceDisposition
public void onReduceDisposition(org.zkoss.zk.ui.event.Event event)
reduce disposition time.- Specified by:
onReduceDispositionin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onReduceDisposition(org.zkoss.zk.ui.event.Event)
-
onLitigtationHold
public void onLitigtationHold(org.zkoss.zk.ui.event.Event event)
set - / unset litigation hold- Specified by:
onLitigtationHoldin interfaceResultSetView- Parameters:
event- Event- See Also:
ResultSetView.onLitigtationHold(org.zkoss.zk.ui.event.Event)
-
getSelectedIds
public java.util.List<DocumentId> getSelectedIds()
Returns the IDs of the selected documents.- Specified by:
getSelectedIdsin interfaceResultSetView- Returns:
- Id's from selected items in result list.
- See Also:
ResultSetView.getSelectedIds()
-
setSelectQuery
public final void setSelectQuery(java.lang.String query)
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:
ResultSetView.setSelectQuery(java.lang.String)
-
setSelectWfQuery
public final void setSelectWfQuery(java.lang.String query, boolean perform)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:
ResultSetView.setSelectWfQuery(java.lang.String, boolean)
-
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:
ResultSetView.performQuery(com.saperion.rmi.SaQueryInfo)
-
getSelectQuery
public final java.lang.String getSelectQuery()
- Specified by:
getSelectQueryin interfaceResultSetView- Returns:
- select query
- See Also:
ResultSetView.getSelectQuery()
-
setPageSize
public final void setPageSize(int size)
Sets the page size of the list.- Specified by:
setPageSizein interfaceResultSetView- Parameters:
size- page size- See Also:
ResultSetView.setPageSize(int)
-
getPageSize
public final int getPageSize()
- Specified by:
getPageSizein interfaceResultSetView- Returns:
- the page size
- See Also:
ResultSetView.getPageSize()
-
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:
ResultSetView.setFilterViewShown(boolean)
-
isFilterViewShown
public final boolean isFilterViewShown()
- Specified by:
isFilterViewShownin interfaceResultSetView- Returns:
- filter view shown
- See Also:
ResultSetView.isFilterViewShown()
-
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:
ResultSetView.setSelectedIndex(int)
-
getSelectedIndex
public final int getSelectedIndex()
Returns the currently selected index.- Specified by:
getSelectedIndexin interfaceResultSetView- Returns:
- the currently selected index
- See Also:
ResultSetView.getSelectedIndex()
-
getFieldsToDisplay
public final java.lang.String getFieldsToDisplay()
- Specified by:
getFieldsToDisplayin interfaceResultSetView- Returns:
- the fieldsToDisplay
- See Also:
ResultSetView.getFieldsToDisplay()
-
setFieldsToDisplay
public final void setFieldsToDisplay(java.lang.String fieldstodisplay)
- Specified by:
setFieldsToDisplayin interfaceResultSetView- Parameters:
fieldstodisplay- the fieldsToDisplay to set- See Also:
ResultSetView.setFieldsToDisplay(java.lang.String)
-
setSortingDirections
public final void setSortingDirections(java.lang.String directions)
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:
ResultSetView.setSortingDirections(java.lang.String)
-
getSortingDirections
public final java.lang.String getSortingDirections()
- Specified by:
getSortingDirectionsin interfaceResultSetView- Returns:
- sorting directions
- See Also:
ResultSetView.getSortingDirections()
-
setHeaderNames
public final void setHeaderNames(java.lang.String names)
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:
ResultSetView.setHeaderNames(java.lang.String)
-
getHeaderNames
public final java.lang.String getHeaderNames()
- Specified by:
getHeaderNamesin interfaceResultSetView- Returns:
- the preset header names
- See Also:
ResultSetView.getHeaderNames()
-
setHeaderAlignments
public final void setHeaderAlignments(java.lang.String alignments)
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:
ResultSetView.setHeaderAlignments(java.lang.String)
-
getHeaderAlignments
public final java.lang.String getHeaderAlignments()
- Specified by:
getHeaderAlignmentsin interfaceResultSetView- Returns:
- header alignments
- See Also:
ResultSetView.getHeaderAlignments()
-
setHeaderWidths
public final void setHeaderWidths(java.lang.String widths)
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:
ResultSetView.setHeaderWidths(java.lang.String)
-
getHeaderWidths
public final java.lang.String 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 public java.util.Set<DraggableListItem> 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:
ResultSetView.getSelectedItems()
-
getSelectedItem
@Deprecated public DraggableListItem 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:
ResultSetView.getSelectedItem()
-
getSelectedListItems
public java.util.Set<ResultListItem> getSelectedListItems()
Returns all selected items.- Specified by:
getSelectedListItemsin interfaceResultSetView- Returns:
- selected items
- See Also:
ResultSetView.getSelectedListItems()
-
getSelectedListItem
public ResultListItem getSelectedListItem()
Returns the selected item.- Specified by:
getSelectedListItemin interfaceResultSetView- Returns:
- selected item
- See Also:
ResultSetView.getSelectedListItem()
-
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:
ResultSetView.onIndexChange(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onResetGui(org.zkoss.zk.ui.event.Event)
-
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:
ResultSetView.onEditContent(org.zkoss.zk.ui.event.Event)
-
setResultColumns
public void setResultColumns(java.util.Map<java.lang.String,ResultSetColumn> resultColumns)
Sets the columns for the result list.- Specified by:
setResultColumnsin interfaceResultSetView- Parameters:
resultColumns- columns- See Also:
ResultSetView.setResultColumns(java.util.Map)
-
getDocumentVersions
public java.util.List<DocumentVersionInfo> getDocumentVersions(DocumentId id)
- 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:
ResultSetView.isSimpleMode()
-
setSimpleMode
public void setSimpleMode(boolean mode)
Sets the simple mode parameter.- Specified by:
setSimpleModein interfaceResultSetView- Parameters:
mode- parameter value- See Also:
ResultSetView.setSimpleMode(boolean)
-
setLookupMode
public void setLookupMode()
Set the list to lookup mode.
-
setSelectLookupMode
public void setSelectLookupMode()
Set the list to select lookup mode.
-
setVisibleColumns
public void setVisibleColumns(java.util.Set<java.lang.String> columns)
- Parameters:
columns- Columns
-
getFormName
public java.lang.String getFormName()
- Specified by:
getFormNamein interfaceResultSetView- Returns:
- Form name
- See Also:
ResultSetView.getFormName()
-
setFormName
public void setFormName(java.lang.String name)
- Specified by:
setFormNamein interfaceResultSetView- Parameters:
name- Form name- See Also:
ResultSetView.setFormName(java.lang.String)
-
isSaveFavoriteEnabled
public boolean isSaveFavoriteEnabled()
- Specified by:
isSaveFavoriteEnabledin interfaceResultSetView- Returns:
- saveFavoriteEnabled parameter
- See Also:
ResultSetView.isSaveFavoriteEnabled()
-
setSaveFavoriteEnabled
public void setSaveFavoriteEnabled(boolean enabled)
Sets the saveFavoriteEnabled parameter.- Specified by:
setSaveFavoriteEnabledin interfaceResultSetView- Parameters:
enabled- value- See Also:
ResultSetView.setSaveFavoriteEnabled(boolean)
-
setExportEnabled
public void setExportEnabled(boolean enabled)
Enables or disables the export button.- Specified by:
setExportEnabledin interfaceResultSetView- Parameters:
enabled- enabled or not- See Also:
ResultSetView.setExportEnabled(boolean)
-
isExportEnabled
public boolean isExportEnabled()
- Specified by:
isExportEnabledin interfaceResultSetView- Returns:
- whether export is enabled or not
- See Also:
ResultSetView.isExportEnabled()
-
isAutoSearch
public boolean isAutoSearch()
- Specified by:
isAutoSearchin interfaceResultSetView- Returns:
- Auto search on.
- See Also:
ResultSetView.isAutoSearch()
-
setTitle
public void setTitle(java.lang.String titleString)
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:
ResultSetView.addCustomMenuItem(org.zkoss.zul.Menuitem, boolean)
-
getCustomMenuItems
public java.util.List<org.zkoss.zul.Menuitem> getCustomMenuItems(boolean multi)
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:
ResultSetView.getCustomMenuItems(boolean)
-
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:
ResultSetView.addCustomMenu(Menu, boolean)
-
getCustomMenus
public java.util.List<org.zkoss.zul.Menu> getCustomMenus(boolean multi)
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:
ResultSetView.getCustomMenus(boolean)
-
getSelectedRows
public java.util.List<ResultProperties> 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:
ResultSetView.getSelectedRows()
-
getAllRows
public java.util.List<ResultProperties> getAllRows()
Returns a list containing the properties of all rows.- Specified by:
getAllRowsin interfaceResultSetView- Returns:
- list of properties of all rows
- See Also:
ResultSetView.getAllRows()
-
getParentForm
public IntelligentFormView 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:
IntelligentField.getParentForm()
-
getResultSetList
public ResultList 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
public void setFileParent(FolderId parent)
Sets the folder this result list is using.- Parameters:
parent- parent folder for filing actions
-
getFileParent
public FolderId getFileParent()
- Returns:
- parent folder for filing actions
-
getAllowed
public java.lang.String getAllowed()
- Specified by:
getAllowedin interfaceResultSetView- Returns:
- Returns all allowed features.
-
setAllowed
public void setAllowed(java.lang.String value)
- Specified by:
setAllowedin interfaceResultSetView- Parameters:
value- Comma separated list of allowed features. One of: EDIT, DELETE, INDEX, SAVE, NEW, VIEW, SECURITY- See Also:
ResultSetView.setAllowed(java.lang.String)
-
getDefaultMenu
public boolean getDefaultMenu()
- Specified by:
getDefaultMenuin interfaceResultSetView- Returns:
- True, if default menu switched on.
- See Also:
ResultSetView.getDefaultMenu()
-
setDefaultMenu
public void setDefaultMenu(boolean value)
- Specified by:
setDefaultMenuin interfaceResultSetView- Parameters:
value- True for switched on default menu.- See Also:
ResultSetView.setDefaultMenu(boolean)
-
getViewMode
public ResultSetViewImpl.ViewMode getViewMode()
- Returns:
- the view-mode used by this result-set
-
getResultSetViewFilterArea
public ResultSetViewFilterArea getResultSetViewFilterArea()
- Returns:
- current Filter-Area (north)
-
initializePaging
public void initializePaging(ResultPaging paging)
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:
ResultSetView.getContextMenuPopup()
-
setDefaultButtonType
public void setDefaultButtonType(ResultSetView.DefaultButtonType defaultButton)
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:
(com.saperion.ngc.resultset.ResultSetView.DefaultButtonType)
-
getDefaultButtonType
public ResultSetView.DefaultButtonType getDefaultButtonType()
- Specified by:
getDefaultButtonTypein interfaceResultSetView- Returns:
- the default type of button to be shown for each item in result list.
- See Also:
ResultSetView.getDefaultButtonType()
-
getIndexMask
public java.lang.String getIndexMask()
- Specified by:
getIndexMaskin interfaceResultSetView- Returns:
- the index mask defined in the definition of this ResultSetView
- See Also:
ResultSetView.getIndexMask()
-
getMaskName
public java.lang.String 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:
ResultSetView.setSaveLayout(boolean)
-
isSaveLayout
public boolean isSaveLayout()
Checks if save layout is enabled.- Specified by:
isSaveLayoutin interfaceResultSetView- Returns:
- true, if enabled, false if not.
- See Also:
ResultSetView.isSaveLayout()
-
setRemoveMenuItemList
public void setRemoveMenuItemList(java.util.List<MenuItemKey> removeList, boolean multi)
Set menu items for removing.- Specified by:
setRemoveMenuItemListin interfaceResultSetView- Parameters:
removeList- List of items.multi- True for multiselect- See Also:
ResultSetView.setRemoveMenuItemList(java.util.List, boolean)
-
getRemoveMenuItemList
public java.util.List<MenuItemKey> getRemoveMenuItemList(boolean multi)
Reads the list of remove menu items.- Specified by:
getRemoveMenuItemListin interfaceResultSetView- Parameters:
multi- True for multiselect- Returns:
- list of remove menu items
- See Also:
ResultSetView.getRemoveMenuItemList(boolean)
-
deleteConfiguration
public void deleteConfiguration()
Deletes the stored configuration of the columns (width and sort-direction).- Specified by:
deleteConfigurationin interfaceResultSetView- See Also:
ResultSetView.deleteConfiguration()
-
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
public void setSearchMode(SearchMode mode)
Sets the search-mode. SeeSearchModefor possible modes.- Specified by:
setSearchModein interfaceResultSetView- Parameters:
mode- the search mode to use- See Also:
ResultSetView.setSearchMode(com.saperion.ngc.resultset.SearchMode)
-
getSearchMode
public SearchMode getSearchMode()
- Specified by:
getSearchModein interfaceResultSetView- Returns:
- the search mode currently in use
- See Also:
ResultSetView.getSearchMode()
-
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:
ResultSetView.export()
-
export
public void export(java.util.Map<java.lang.String,java.lang.String> columnsToExport, ResultSetView.ExportFormat format, java.lang.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:
ResultSetView.export(java.util.Map, com.saperion.ngc.resultset.ResultSetView.ExportFormat, java.lang.String)
-
getTotalSize
public int getTotalSize()
Returns the total size of the last query result.- Specified by:
getTotalSizein interfaceResultSetView- Returns:
- total size of result
- See Also:
ResultSetView.getTotalSize()
-
setDocumentRead
@Deprecated public void setDocumentRead(DraggableListItem item)
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:
ResultSetView.setDocumentRead(com.saperion.ngc.resultset.DraggableListItem)
-
setDocumentUnread
@Deprecated public void setDocumentUnread(DraggableListItem item)
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:
ResultSetView.setDocumentUnread(com.saperion.ngc.resultset.DraggableListItem)
-
setDocumentRead
public void setDocumentRead(ResultListItem item)
Sets the specified item's state to 'read' without creating a new revision.- Specified by:
setDocumentReadin interfaceResultSetView- Parameters:
item- item to change- See Also:
ResultSetView.setDocumentRead(com.saperion.ngc.resultset.DraggableListItem)
-
setDocumentUnread
public void setDocumentUnread(ResultListItem item)
Sets the specified item's state to 'unread' without creating a new revision.- Specified by:
setDocumentUnreadin interfaceResultSetView- Parameters:
item- item to change- See Also:
ResultSetView.setDocumentUnread(com.saperion.ngc.resultset.DraggableListItem)
-
addCustomCondition
public void addCustomCondition(FieldResultBean condition)
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:
ResultSetView.addCustomCondition(com.saperion.ngc.iform.FieldResultBean)
-
getCustomConditions
public java.util.List<FieldResultBean> 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:
ResultSetView.getCustomConditions()
-
setResultListClass
public void setResultListClass(java.lang.Class<? extends ResultList> clazz)
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
public void setCustomSortSequences(java.util.Map<java.lang.String,SortDirection> sortSequences)
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
public java.util.Map<java.lang.String,SortDirection> 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
public PropertyToStringConverter 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
public java.util.Set<org.zkoss.zul.Menupopup> 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
-
onShareBaseLogin
public void onShareBaseLogin(org.zkoss.zk.ui.event.Event event)
Description copied from interface:ResultSetViewHandles event for login to ShareBase.- Specified by:
onShareBaseLoginin 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)
-
-