public class OwShortCutItemView extends com.wewebu.ow.server.ui.OwView implements OwShortCutItemContext, com.wewebu.ow.server.dmsdialogs.views.OwObjectListView.OwObjectListViewEventListner, OwShortcutDocumentEventListner
Displays OwShortCutItem
s.
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
Map s |
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, usesFormWithAttributes
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
public 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()
OwMimeManager
protected void onActivate(int index_p, Object reason_p) throws Exception
onActivate
in class com.wewebu.ow.server.ui.OwView
Exception
protected void init() throws Exception
init
in class com.wewebu.ow.server.ui.OwView
Exception
public OwShortCutDocument getShortcutDocument()
protected void applyConfiguration(com.wewebu.ow.server.dmsdialogs.views.OwObjectListView listView_p) throws Exception
listView_p
- Exception
protected 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 shortcutsException
public void onRemove(javax.servlet.http.HttpServletRequest request_p) throws Exception
OwShortCutException
Exception
public void detach()
detach
in class com.wewebu.ow.server.ui.OwView
public String getDeleteIcon() throws Exception
Exception
public String getUnkownMimeIcon() throws Exception
Exception
protected void onRender(Writer w_p) throws Exception
onRender
in class com.wewebu.ow.server.ui.OwView
Exception
protected 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 OwShortCutItem
sException
protected 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()
OwShortCutItemContext
getMimeManager
in interface OwShortCutItemContext
public 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.OwObjectListViewEventListner
Exception
public String onObjectListViewGetRowClassName(int index_p, com.wewebu.ow.server.ecm.OwObject obj_p)
onObjectListViewGetRowClassName
in interface com.wewebu.ow.server.dmsdialogs.views.OwObjectListView.OwObjectListViewEventListner
public boolean onObjectListViewItemClick(com.wewebu.ow.server.ecm.OwObject obj_p) throws Exception
onObjectListViewItemClick
in interface com.wewebu.ow.server.dmsdialogs.views.OwObjectListView.OwObjectListViewEventListner
Exception
public 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.OwObjectListViewEventListner
Exception
public 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.OwObjectListViewEventListner
Exception
protected 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
- Exception
public void onShortcutDocumentChaged(OwShortCutDocument document_p)
OwShortcutDocumentEventListner
OwShortCutDocument
state was changedonShortcutDocumentChaged
in interface OwShortcutDocumentEventListner
document_p
- the document that triggered the eventCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.