public class OwShortCutItemView extends com.wewebu.ow.server.ui.OwView implements OwShortCutItemContext, com.wewebu.ow.server.dmsdialogs.views.OwObjectListView.OwObjectListViewEventListner, OwShortcutDocumentEventListner
Displays OwShortCutItems.
The view is based on the OwShortCutDocument model object and
renders object-pointing shortcuts and non-object-pointing shortcuts into two separates lists.
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
| Modifier and Type | Class and Description |
|---|---|
class |
OwShortCutItemView.OwDeleteShortcutFunction
Inline delete shortcut function to be used in lists displaying
OwObject pointing shortcut |
protected class |
OwShortCutItemView.OwInstanceMapKey
Utility class for mapping OwObject instances in
Maps |
| Modifier and Type | Field and Description |
|---|---|
static int |
SHORTCUT_ITEM_FILTER_ALL |
static int |
SHORTCUT_ITEM_FILTER_DOCUMENTS |
static int |
SHORTCUT_ITEM_FILTER_FOLDERS |
static int |
SHORTCUT_ITEM_FILTER_REST |
| Constructor and Description |
|---|
OwShortCutItemView() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyConfiguration(com.wewebu.ow.server.dmsdialogs.views.OwObjectListView listView_p)
Applies a hard-coded/default configuration (egg.
|
protected com.wewebu.ow.server.dmsdialogs.views.OwObjectListView |
createObjectListView()
(overridable)
|
protected com.wewebu.ow.server.app.OwMimeManager |
createOwMimeManager()
(overridable)
Factory method to create own OwMimeManager
|
protected void |
createShortcutsStructures(OwShortCutDocument document_p,
Map objectShortcuts_p,
List nonObjectShortcuts_p)
Fills the given data structures with shortcut information.
|
void |
detach()
remove view and all subviews from context
|
String |
getDeleteIcon()
get the URL to the favorites delete icon
|
com.wewebu.ow.server.app.OwMimeManager |
getMimeManager()
get a MIME manager
|
OwShortCutDocument |
getShortcutDocument() |
protected OwShortCutItem |
getShortcutForObject(com.wewebu.ow.server.ecm.OwObject object_p) |
String |
getUnkownMimeIcon()
get the URL to the unknown MIME icon
|
protected void |
init() |
protected boolean |
isItemFiltered(OwShortCutItem item_p) |
protected void |
onActivate(int index_p,
Object reason_p) |
void |
onObjectListViewFilterChange(com.wewebu.ow.server.field.OwSearchNode filterNode_p,
com.wewebu.ow.server.ecm.OwObject parent_p) |
String |
onObjectListViewGetRowClassName(int index_p,
com.wewebu.ow.server.ecm.OwObject obj_p) |
boolean |
onObjectListViewItemClick(com.wewebu.ow.server.ecm.OwObject obj_p) |
void |
onObjectListViewSelect(com.wewebu.ow.server.ecm.OwObject object_p,
com.wewebu.ow.server.ecm.OwObject parent_p) |
void |
onObjectListViewSort(com.wewebu.ow.server.field.OwSort newSort_p,
String strSortProperty_p) |
void |
onRemove(javax.servlet.http.HttpServletRequest request_p)
called when user clicks on paste from clipboard
|
protected void |
onRender(Writer w_p) |
void |
onShortcutDocumentChaged(OwShortCutDocument document_p)
Called after the
OwShortCutDocument state was changed |
protected void |
refreshDisplayedShortcuts(OwShortCutDocument document_p)
Recreates all internal view state considering the given document.
|
activate, addView, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onUpdate, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributesattach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTargetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextpublic static final int SHORTCUT_ITEM_FILTER_ALL
public static final int SHORTCUT_ITEM_FILTER_DOCUMENTS
public static final int SHORTCUT_ITEM_FILTER_FOLDERS
public static final int SHORTCUT_ITEM_FILTER_REST
protected com.wewebu.ow.server.app.OwMimeManager createOwMimeManager()
OwMimeManagerprotected void onActivate(int index_p,
Object reason_p)
throws Exception
onActivate in class com.wewebu.ow.server.ui.OwViewExceptionprotected void init()
throws Exception
init in class com.wewebu.ow.server.ui.OwViewExceptionpublic OwShortCutDocument getShortcutDocument()
protected void applyConfiguration(com.wewebu.ow.server.dmsdialogs.views.OwObjectListView listView_p)
throws Exception
listView_p - Exceptionprotected OwShortCutItem getShortcutForObject(com.wewebu.ow.server.ecm.OwObject object_p)
object_p - protected com.wewebu.ow.server.dmsdialogs.views.OwObjectListView createObjectListView()
throws Exception
OwObject pointing shortcutsExceptionpublic void onRemove(javax.servlet.http.HttpServletRequest request_p)
throws Exception
OwShortCutExceptionExceptionpublic void detach()
detach in class com.wewebu.ow.server.ui.OwViewpublic String getDeleteIcon() throws Exception
Exceptionpublic String getUnkownMimeIcon() throws Exception
Exceptionprotected void onRender(Writer w_p) throws Exception
onRender in class com.wewebu.ow.server.ui.OwViewExceptionprotected void createShortcutsStructures(OwShortCutDocument document_p, Map objectShortcuts_p, List nonObjectShortcuts_p) throws Exception
OwObject-pointing-shortcuts and
NON-OwObject-pointing-shortcuts.objectShortcuts_p - map of OwShortCutItemView.OwInstanceMapKey keys to their inner OwObject shortcut correspondentnonObjectShortcuts_p - List of NON OwObject pointing OwShortCutItemsExceptionprotected boolean isItemFiltered(OwShortCutItem item_p)
item_p - true if the given item shouldn't be displayed, false otherwisepublic com.wewebu.ow.server.app.OwMimeManager getMimeManager()
OwShortCutItemContextgetMimeManager in interface OwShortCutItemContextpublic void onObjectListViewFilterChange(com.wewebu.ow.server.field.OwSearchNode filterNode_p,
com.wewebu.ow.server.ecm.OwObject parent_p)
throws Exception
onObjectListViewFilterChange in interface com.wewebu.ow.server.dmsdialogs.views.OwObjectListView.OwObjectListViewEventListnerExceptionpublic String onObjectListViewGetRowClassName(int index_p, com.wewebu.ow.server.ecm.OwObject obj_p)
onObjectListViewGetRowClassName in interface com.wewebu.ow.server.dmsdialogs.views.OwObjectListView.OwObjectListViewEventListnerpublic boolean onObjectListViewItemClick(com.wewebu.ow.server.ecm.OwObject obj_p)
throws Exception
onObjectListViewItemClick in interface com.wewebu.ow.server.dmsdialogs.views.OwObjectListView.OwObjectListViewEventListnerExceptionpublic void onObjectListViewSelect(com.wewebu.ow.server.ecm.OwObject object_p,
com.wewebu.ow.server.ecm.OwObject parent_p)
throws Exception
onObjectListViewSelect in interface com.wewebu.ow.server.dmsdialogs.views.OwObjectListView.OwObjectListViewEventListnerExceptionpublic void onObjectListViewSort(com.wewebu.ow.server.field.OwSort newSort_p,
String strSortProperty_p)
throws Exception
onObjectListViewSort in interface com.wewebu.ow.server.dmsdialogs.views.OwObjectListView.OwObjectListViewEventListnerExceptionprotected void refreshDisplayedShortcuts(OwShortCutDocument document_p) throws Exception
m_objectInstanceToShortcut, m_nonObjectShortcuts and the contents of
the m_listView should be refreshed with correct shrtcut info.document_p - Exceptionpublic void onShortcutDocumentChaged(OwShortCutDocument document_p)
OwShortcutDocumentEventListnerOwShortCutDocument state was changedonShortcutDocumentChaged in interface OwShortcutDocumentEventListnerdocument_p - the document that triggered the eventCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.