public class OwObjectEditVersionsView extends OwObjectListViewRow
Versions view to display the versions of a OwObject. Uses the OwObjectListView
.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
OwObjectListViewPluginCache.OwPluginStatus, OwObjectListViewPluginCache.OwPluginStatusCachingUtility
OwObjectListView.OwFilter, OwObjectListView.OwFilterEntry, OwObjectListView.OwHtmlAlignmentMap, OwObjectListView.OwIcon, OwObjectListView.OwObjectListViewEventListner, OwObjectListView.OwPluginEntry
Modifier and Type | Field and Description |
---|---|
protected List |
m_defaultColumnInfoList
default column info list if no column info is found in folder object
|
protected Collection |
m_defaultPropertyNameList
default property list if no column info is found in folder object
|
protected int |
m_iMaxListSize
max number of versions to retrieve
|
protected OwObject |
m_ObjectRef
object reference to display versions
|
protected OwObjectCollection |
m_versionObjects
object cache with version objects
|
m_ColumnInfoList, m_iCurrentPage, m_MainContext, m_occuredObjectTypes, m_RefreshContext, m_Sort, m_theFieldManager, m_useContextMenu
m_HtmlAlignments, m_isStickyFooterInUse, m_pageSelectorComponent, m_pagingNode, MULTISELECT_COMOBO_MENU_NAME, OBJECT_INDEX_KEY, PLUG_INDEX_KEY, QUERY_KEY_PAGE, SELECT_DESELECT_NONCONSECUTIVE_OBJECTS_ACTION_ID, SORT_PROPERTY_KEY, VIEW_MASK_INLINE_EDITING, VIEW_MASK_INSTANCE_PLUGINS, VIEW_MASK_MULTI_SELECTION, VIEW_MASK_NO_PAGE_BUTTONS, VIEW_MASK_SINGLE_SELECTION, VIEW_MASK_USE_DOCUMENT_PLUGINS, VIEW_MASK_USE_SELECT_BUTTON
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
TYPE_AJAX, TYPE_CHECKIN_OBJECT, TYPE_CREATE_OBJECT, TYPE_META_OBJECT, TYPE_RESULT_LIST, TYPE_SEARCH, TYPE_SMALL
EMPTY_STRING
Constructor and Description |
---|
OwObjectEditVersionsView()
construct the list view
|
Modifier and Type | Method and Description |
---|---|
protected void |
createDefaultColumnInfo(Collection propertyNames_p)
create the default column info for the versions view
|
protected String |
getRowClassName(int iIndex_p,
OwObject obj_p)
overridable get the style class name for the row
|
protected void |
onActivate(int iIndex_p,
Object oReason_p)
activate the target from a navigation module.
|
void |
onUpdate(OwEventTarget caller_p,
int iCode_p,
Object param_p)
called by the framework to update the view when OwDocument.Update was called
NOTE: We can not use the onRender method to update,
because we do not know the call order of onRender.
|
void |
setColumnProperties(Collection propertyNames_p,
int iMaxListSize_p) |
void |
setObjectRef(OwObject objectRef_p) |
protected void |
updateVersions()
get the versions from the object and set the object list of the parent ObjectListView
|
computeEndIndex, computeStartIndex, createMimeManager, detach, getField, getFieldProviderName, getFieldProviderSource, getFieldProviderType, getFields, getHtmlAlignment, getIcon, getIsList, getIsListEmpty, getIsListValid, getIsPaging, getMimeManager, getPageAbsolutURL, getPageNextURL, getPagePrevURL, getRetrievalPropertyNames, getSafeFieldValue, getSelectedRowClassName, getSortOrderImage, getSortOrderType, getTitle, init, insertDocumentFunctionPluginHeader, insertDocumentFunctionPluginRows, isPagingEnabled, onAjaxPersistSelection, onColumnClickEvent, onContextMenuEvent, onMultiSelectEvent, onPluginEvent, onRender, onSelect, onSort, renderCheckedOut, renderExtraColumnHeader, renderExtraColumnRows, renderIndex, renderIndexHeader, renderLockedColumn, renderMainRegion, renderMimeType, renderMimeTypeHeader, renderPageSelector, renderProperties, renderPropertiesHeader, renderPropertyColumnHeader, renderRows, renderSortHeader, renderTableCaption, renderVersion, renderVersionHeader, setField, setMimeTypeContext, setObjectIterable, setObjectList, setRefreshContext, updateExternalFormTarget, usesFormWithAttributes
createPluginStatusCacheUtility, createPluginStatusCacheUtility, createPluginStatusCacheUtility, createPluginStatusCacheUtility, getPluginCache, setPluginCache
canPageNext, canPagePrev, getColumnInfo, getCurrentPage, getDisplayedPage, getFieldManager, getObjectIterable, getObjectList, getPageAbsolutEventURL, getPageCount, getPageNextEventURL, getPagePrevEventURL, getPageSize, getRefreshContext, getSort, isCollectionComplete, onClientRefreshContextUpdate, onPageAbsolut, onPageNext, onPagePrev, pageAbsolut, setColumnInfo, setFieldManager, setSort
addAjaxPersistenceService, addViewMask, clearViewMask, copy, createFilter, createFilter, createFilter, createPageSelector, getContextMenuFunction, getCount, getDocumentFunction, getDocumentFunctionPluginList, getEventListner, getFilter, getFilterOperators, getFilterSearch, getListViewID, getObjectByIndex, getParentObject, getPluginEntries, hasPaging, hasViewMask, isEmptyPluginColumnRendered, isObjectSelectionPersisted, isObjectTypeSupportedByPlugin, isShowMaximized, isStickyFooterInUse, persistAjaxTriggeredSelection, persistAjaxTriggeredSelection, persistObjectSelectionState, renderContextMenu, resetPersistedSelectionState, setConfigNode, setCurrentPage, setDocumentFunctionPluginList, setEventListner, setFilter, setParentObject, setRenderEmptyPluginColumn, setStickyFooterInUse, setViewMask
activate, addView, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getViewList, isFormTargetExternal, isNamedRegion, isRegion, isShowMinimized, isShowNormal, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
getBreadcrumbPart, isNamedRegion, isRegion, render, renderNamedRegion, renderRegion
protected OwObject m_ObjectRef
protected OwObjectCollection m_versionObjects
protected int m_iMaxListSize
protected List m_defaultColumnInfoList
protected Collection m_defaultPropertyNameList
public OwObjectEditVersionsView()
protected void onActivate(int iIndex_p, Object oReason_p) throws Exception
onActivate
in class OwView
iIndex_p
- int tab index of NavigationoReason_p
- User Object which was submitted when target was attached to the navigation moduleException
protected void updateVersions() throws Exception
Exception
public void setColumnProperties(Collection propertyNames_p, int iMaxListSize_p) throws Exception
Exception
protected void createDefaultColumnInfo(Collection propertyNames_p) throws Exception
propertyNames_p
- Names of properties to display in the columnException
protected String getRowClassName(int iIndex_p, OwObject obj_p)
getRowClassName
in class OwObjectListViewRow
iIndex_p
- int row indexobj_p
- current OwObjectpublic void onUpdate(OwEventTarget caller_p, int iCode_p, Object param_p) throws Exception
onUpdate
in interface OwUpdateTarget
onUpdate
in class OwView
caller_p
- OwEventTarget target that called updateiCode_p
- int optional reason codeparam_p
- Object optional parameter representing the refresh, depends on the value of iCode_p, can be nullException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.