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

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.dmsdialogs.views.OwLaunchableWorkflowSelectionView
All Implemented Interfaces:
OwBaseView, OwUpdateTarget

public class OwLaunchableWorkflowSelectionView
extends OwView

A view that renders a list of selectable workflow descriptions.

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:
2.5.2.0

Nested Class Summary
static interface OwLaunchableWorkflowSelectionView.OwWorkflowSelectionListener
           Selection listener interface.
 
Field Summary
 
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
OwLaunchableWorkflowSelectionView(Collection workflowDescriptions_p)
          Constructor
 
Method Summary
 void addSelectionListener(OwLaunchableWorkflowSelectionView.OwWorkflowSelectionListener listener_p)
          Registers a selection listener with this view.
 String createRowLinkURL(int rowIndex_p)
           
protected  void fireDescriptionSelected(OwWorkflowDescription description_p)
          Fires the OwLaunchableWorkflowSelectionView.OwWorkflowSelectionListener.descriptionSelected(OwWorkflowDescription) of all registered listeners for a given description.
 int getWorkflowDescriptionCount()
          Return the amount of descriptions.
 String getWorkflowDescriptionName(int i_p)
          Return the name of the workflow description, where all HTML/XML tags are escaped.
 List getWorkflowDescriptions()
           
 boolean hasWorkflowDescrptions()
          Return if there are available workflow descriptions.
protected  void onRender(Writer w_p)
          called when the view should create its HTML content to be displayed
 void onRowClick(javax.servlet.http.HttpServletRequest request_p)
           
 void removeSelectionListener(OwLaunchableWorkflowSelectionView.OwWorkflowSelectionListener listener_p)
          Unregisters a selection listener from this view.
 void renderTableCaption(Writer w_p)
           
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, init, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, 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
 

Constructor Detail

OwLaunchableWorkflowSelectionView

public OwLaunchableWorkflowSelectionView(Collection workflowDescriptions_p)
Constructor

Parameters:
workflowDescriptions_p - a collection of OwWorkflowDescriptions
Method Detail

onRender

protected void onRender(Writer w_p)
                 throws Exception
Description copied from class: OwView
called when the view should create its HTML content to be displayed

Overrides:
onRender in class OwView
Parameters:
w_p - Writer object to write HTML to
Throws:
Exception

getWorkflowDescriptions

public final List getWorkflowDescriptions()
Returns:
the viewed descriptions

createRowLinkURL

public String createRowLinkURL(int rowIndex_p)
Parameters:
rowIndex_p -
Returns:
an URL to be used as anchor target for row click events

getWorkflowDescriptionName

public String getWorkflowDescriptionName(int i_p)
Return the name of the workflow description, where all HTML/XML tags are escaped.

Parameters:
i_p - int index of workflow description
Returns:
String representing the name of Workflow

getWorkflowDescriptionCount

public int getWorkflowDescriptionCount()
Return the amount of descriptions.

Returns:
int amount (quantity) of available descriptions

hasWorkflowDescrptions

public boolean hasWorkflowDescrptions()
Return if there are available workflow descriptions.

Returns:
boolean true only if amount of descriptions.

onRowClick

public void onRowClick(javax.servlet.http.HttpServletRequest request_p)
                throws Exception
Parameters:
request_p -
Throws:
Exception

addSelectionListener

public void addSelectionListener(OwLaunchableWorkflowSelectionView.OwWorkflowSelectionListener listener_p)
Registers a selection listener with this view.

Parameters:
listener_p -

removeSelectionListener

public void removeSelectionListener(OwLaunchableWorkflowSelectionView.OwWorkflowSelectionListener listener_p)
Unregisters a selection listener from this view.

Parameters:
listener_p -

fireDescriptionSelected

protected void fireDescriptionSelected(OwWorkflowDescription description_p)
Fires the OwLaunchableWorkflowSelectionView.OwWorkflowSelectionListener.descriptionSelected(OwWorkflowDescription) of all registered listeners for a given description.

Parameters:
description_p -

renderTableCaption

public void renderTableCaption(Writer w_p)
                        throws Exception
Parameters:
w_p -
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.