com.wewebu.ow.server.dmsdialogs.views
Class OwTypedLinksView

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.ui.OwView
          extended by com.wewebu.ow.server.ui.OwLayout
              extended by com.wewebu.ow.server.dmsdialogs.views.OwObjectLinksView
                  extended by com.wewebu.ow.server.dmsdialogs.views.OwTypedLinksView
All Implemented Interfaces:
OwBaseView, OwUpdateTarget

public class OwTypedLinksView
extends OwObjectLinksView

Displays OwObjectLinks using OwSplitObjectListView and one link object class combo box filter.

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

Since:
4.1.1.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwLayout
OwLayout.OwDispatchRegion
 
Field Summary
 
Fields inherited from class com.wewebu.ow.server.dmsdialogs.views.OwObjectLinksView
LINKS_FILTER_REGION, 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
OwTypedLinksView(OwObjectLinksDocument document)
           
 
Method Summary
protected  Collection<OwFieldColumnInfo> createRelationColumnInfo(OwObjectLinkRelation relation)
          (overridable) Create relation dependent columns to display.
 String getFilterDisplayName()
           
protected  OwObjectClass getLinkClass(OwObject object)
           
protected  OwSplitObjectListView getSplitLinksView()
           
protected  void init()
          init the target after the context is set.
 boolean isRegion(int iRegion_p)
          determine if region exists
 void onLinkClassChanged(javax.servlet.http.HttpServletRequest request_p)
           
protected  void postRefresh(OwObjectCollection[] splitLinks)
           
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
protected  void select(String className)
           
protected  String usesFormWithAttributes()
          to get additional form attributes used for the form override if your view needs a form.
 
Methods inherited from class com.wewebu.ow.server.dmsdialogs.views.OwObjectLinksView
createColumnInfo, createSplitObjectListDocument, createSplitView, getDocument, getDocumentFunctions, isEmpty, onRender, onUpdate
 
Methods inherited from class com.wewebu.ow.server.ui.OwLayout
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, 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
 
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
 

Constructor Detail

OwTypedLinksView

public OwTypedLinksView(OwObjectLinksDocument document)
Method Detail

usesFormWithAttributes

protected String usesFormWithAttributes()
Description copied from class: OwView
to get additional form attributes used for the form override if your view needs a form. Base class will then render a form automatically

Overrides:
usesFormWithAttributes in class OwView
Returns:
String with form attributes, or null if view does not render a form

init

protected void init()
             throws Exception
Description copied from class: OwView
init the target after the context is set.

Overrides:
init in class OwObjectLinksView
Throws:
Exception

getSplitLinksView

protected OwSplitObjectListView getSplitLinksView()
                                           throws OwObjectNotFoundException
Throws:
OwObjectNotFoundException

getFilterDisplayName

public String getFilterDisplayName()
Overrides:
getFilterDisplayName in class OwObjectLinksView
Returns:
filter region display name

isRegion

public boolean isRegion(int iRegion_p)
Description copied from class: OwLayout
determine if region exists

Specified by:
isRegion in interface OwBaseView
Overrides:
isRegion in class OwLayout
Parameters:
iRegion_p - ID of the region to render
Returns:
true if region contains anything and should be rendered

renderRegion

public void renderRegion(Writer w_p,
                         int iRegion_p)
                  throws Exception
Description copied from class: OwLayout
render the views of the region

Specified by:
renderRegion in interface OwBaseView
Overrides:
renderRegion in class OwObjectLinksView
Parameters:
w_p - Writer object to write HTML to
iRegion_p - ID of the region to render
Throws:
Exception

onLinkClassChanged

public void onLinkClassChanged(javax.servlet.http.HttpServletRequest request_p)
                        throws Exception
Throws:
Exception

select

protected void select(String className)
               throws Exception
Throws:
Exception

refresh

protected void refresh(OwObjectCollection[] splitLinks)
                throws Exception
Description copied from class: OwObjectLinksView
Refreshes the contents of this view for the give object link collection array. Each element in the array contains the collection of objects for the relation split at the same index defined in the document of this view

Overrides:
refresh in class OwObjectLinksView
Throws:
Exception

postRefresh

protected void postRefresh(OwObjectCollection[] splitLinks)
                    throws Exception
Throws:
Exception

getLinkClass

protected OwObjectClass getLinkClass(OwObject object)

createRelationColumnInfo

protected Collection<OwFieldColumnInfo> createRelationColumnInfo(OwObjectLinkRelation relation)
                                                          throws Exception
Description copied from class: OwObjectLinksView
(overridable) Create relation dependent columns to display.

Attention: If columns are defined for any relation kind, the same columns will be displayed.

Overrides:
createRelationColumnInfo in class OwObjectLinksView
Parameters:
relation - OwObjectLinkRelation objects which will be rendered.
Returns:
Collection of OwFieldColumnInfo
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.