|
||||||||||
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.ui.OwLayout
com.wewebu.ow.server.dmsdialogs.views.OwObjectLinksView
public abstract class OwObjectLinksView
Displays OwObjectLink
s using OwSplitObjectListView
.
For each relation specified by the corresponding OwObjectLinksDocument
a
separate object list is displayed as a split (see OwSplitObjectListView
) in the LINKS_REGION
.
A filter is displayed using the LINKS_FILTER_REGION
handling in sub classes.
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 |
---|
Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwLayout |
---|
OwLayout.OwDispatchRegion |
Field Summary | |
---|---|
static int |
LINKS_FILTER_REGION
|
static int |
LINKS_REGION
|
Fields inherited from class com.wewebu.ow.server.ui.OwLayout |
---|
m_Regions |
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 | |
---|---|
OwObjectLinksView(OwObjectLinksDocument document)
|
Method Summary | |
---|---|
protected Collection<OwFieldColumnInfo> |
createColumnInfo(Collection<String> propertyList_p)
|
protected Collection<OwFieldColumnInfo> |
createRelationColumnInfo(OwObjectLinkRelation relation)
(overridable) Create relation dependent columns to display. |
protected OwSplitObjectListDocument |
createSplitObjectListDocument(String[] splitNames,
Collection<OwFieldColumnInfo>[] propertyColumnInfos,
List<OwDocumentFunction> documentFunctions)
(overridable) Factory to create OwSplitObjectListDocument for internal OwSplitObjectListView . |
protected OwSplitObjectListView |
createSplitView()
|
OwObjectLinksDocument |
getDocument()
gets the reference to the document |
protected List<OwDocumentFunction> |
getDocumentFunctions()
|
String |
getFilterDisplayName()
|
protected void |
init()
init the target after the context is set. |
boolean |
isEmpty()
|
protected void |
onRender(Writer w_p)
called when the view should create its HTML content to be displayed |
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. |
protected void |
refresh(OwObjectCollection[] splitLinks)
Refreshes the contents of this view for the give object link collection array. |
void |
renderRegion(Writer w_p,
int iRegion_p)
render the views of the region |
Methods inherited from class com.wewebu.ow.server.ui.OwLayout |
---|
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion |
Methods inherited from class com.wewebu.ow.server.ui.OwView |
---|
activate, detach, getBreadcrumbPart, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, render, renderHTMLFormular, 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 |
Field Detail |
---|
public static final int LINKS_REGION
public static final int LINKS_FILTER_REGION
Constructor Detail |
---|
public OwObjectLinksView(OwObjectLinksDocument document)
Method Detail |
---|
public OwObjectLinksDocument getDocument()
OwView
getDocument
in class OwView
protected Collection<OwFieldColumnInfo> createColumnInfo(Collection<String> propertyList_p) throws Exception
Exception
protected void init() throws Exception
OwView
init
in class OwView
Exception
public boolean isEmpty()
protected void refresh(OwObjectCollection[] splitLinks) throws Exception
splitLinks
-
Exception
public void renderRegion(Writer w_p, int iRegion_p) throws Exception
OwLayout
renderRegion
in interface OwBaseView
renderRegion
in class OwLayout
w_p
- Writer object to write HTML toiRegion_p
- ID of the region to render
Exception
public void onUpdate(OwEventTarget caller_p, int iCode_p, Object param_p) throws Exception
OwUpdateTarget
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 null
Exception
protected void onRender(Writer w_p) throws Exception
OwView
onRender
in class OwView
w_p
- Writer object to write HTML to
Exception
protected List<OwDocumentFunction> getDocumentFunctions() throws OwException
OwException
protected OwSplitObjectListView createSplitView() throws Exception
OwSplitObjectListView
with the document defined splits and corresponding property column header information.
Exception
protected OwSplitObjectListDocument createSplitObjectListDocument(String[] splitNames, Collection<OwFieldColumnInfo>[] propertyColumnInfos, List<OwDocumentFunction> documentFunctions)
splitNames
- String array of Labels (display names) for the list view(s)propertyColumnInfos
- Collection of FieldColumnInfo objectsdocumentFunctions
- List of document functions (can be null)
protected Collection<OwFieldColumnInfo> createRelationColumnInfo(OwObjectLinkRelation relation) throws Exception
Attention: If columns are defined for any relation kind, the same columns will be displayed.
relation
- OwObjectLinkRelation objects which will be rendered.
Exception
public String getFilterDisplayName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |