|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ui.OwEventTarget
com.wewebu.ow.server.ui.OwView
com.wewebu.ow.server.plug.owshortcut.OwShortCutItemView
public class OwShortCutItemView
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
| Nested Class Summary | |
|---|---|
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 |
| Field Summary | |
|---|---|
static int |
SHORTCUT_ITEM_FILTER_ALL
|
static int |
SHORTCUT_ITEM_FILTER_DOCUMENTS
|
static int |
SHORTCUT_ITEM_FILTER_FOLDERS
|
static int |
SHORTCUT_ITEM_FILTER_REST
|
| Fields inherited from class com.wewebu.ow.server.ui.OwView |
|---|
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget |
| Fields inherited from interface com.wewebu.ow.server.ui.OwBaseView |
|---|
EMPTY_STRING |
| Constructor Summary | |
|---|---|
OwShortCutItemView()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.wewebu.ow.server.ui.OwView |
|---|
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 |
| Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget |
|---|
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.wewebu.ow.server.plug.owshortcut.OwShortCutItemContext |
|---|
getContext |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public OwShortCutItemView()
| Method Detail |
|---|
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.OwViewException
protected 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 shortcuts
Exception
public void onRemove(javax.servlet.http.HttpServletRequest request_p)
throws Exception
OwShortCutException
Exceptionpublic 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.OwViewException
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 OwShortCutItems
Exceptionprotected 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.OwObjectListViewEventListnerException
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.OwObjectListViewEventListnerException
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.OwObjectListViewEventListnerException
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.OwObjectListViewEventListnerException
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 -
Exceptionpublic void onShortcutDocumentChaged(OwShortCutDocument document_p)
OwShortcutDocumentEventListnerOwShortCutDocument state was changed
onShortcutDocumentChaged in interface OwShortcutDocumentEventListnerdocument_p - the document that triggered the event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||