public class OwBPMInsertNoteDialog
extends com.wewebu.ow.server.app.OwStandardDialog
implements com.wewebu.ow.server.field.OwFieldProvider
Dialog for asking for a note to be attached to the workitem.
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 | Field and Description |
---|---|
static int |
INSERT_NOTE_DIALOG_REGION_MAX
start of overridden regions
|
protected com.wewebu.ow.server.ecm.bpm.OwWorkitem |
m_currentItem
inform listeners which is the current item in work
|
protected com.wewebu.ow.server.app.OwFieldManager |
m_fieldManager
the field manager
|
protected com.wewebu.ow.server.app.OwSubMenuView |
m_MenuView
menu for the buttons
|
protected com.wewebu.ow.server.ecm.OwProperty |
m_noteProperty
the note property
|
protected List |
m_workitems
the workitems which are to be handled
|
static int |
NOTE_REGION
named region for note text area
|
CLOSE_BTN_REGION, FOOTER_REGION, HELP_BTN_REGION, INFO_ICON_REGION, LEFT_REGION, m_strHelpPath, m_strInfoIconURL, m_strTitle, MAIN_REGION, MENU_REGION, RIGHT_REGION, STANDARD_DIALOG_REGION_MAX, TITLE_REGION
m_iDEBUG_DocumentViewSize, m_iDEBUG_InitDocument, m_iDEBUG_TargetCount, m_Listener
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
Constructor and Description |
---|
OwBPMInsertNoteDialog(List workitems_p,
String notePropertyName_p,
boolean notePropertyIsNecessary_p)
create a new instance of the dialog
|
OwBPMInsertNoteDialog(com.wewebu.ow.server.ecm.bpm.OwWorkitem workitem_p,
String notePropertyName_p,
boolean notePropertyIsNecessary_p)
create a new instance of the dialog
|
Modifier and Type | Method and Description |
---|---|
void |
detach() |
com.wewebu.ow.server.ecm.bpm.OwWorkitem |
getCurrentItem()
Get the current processing work item
|
com.wewebu.ow.server.field.OwField |
getField(String strFieldClassName_p) |
String |
getFieldProviderName() |
Object |
getFieldProviderSource() |
int |
getFieldProviderType() |
Collection |
getFields() |
Object |
getSafeFieldValue(String name_p,
Object defaultvalue_p) |
Collection |
getWorkitems()
getter method for workitems
|
protected void |
init() |
void |
onCancelDo(javax.servlet.http.HttpServletRequest request_p,
Object reason_p)
event called when user clicked the cancel button should be overloaded by specific Dialog
|
void |
onOkDo(javax.servlet.http.HttpServletRequest request_p,
Object reason_p)
event called when user clicked the OK button should be overloaded by specific Dialog
|
protected void |
onRender(Writer w_p) |
void |
renderNote(Writer w_p)
Render the note
|
void |
renderRegion(Writer w_p,
int iRegion_p)
render the views of the region
|
void |
setField(String name_p,
Object value_p) |
void |
setNote(javax.servlet.http.HttpServletRequest request_p)
set a note to all workitems of the list
|
void |
unlockAll()
unlock the workitems
|
protected String |
usesFormWithAttributes()
enable form handling
|
getInfoIcon, getTitle, hasHelpButton, isRegion, onClose, onHelp, renderCloseButton, renderHelpButton, setHelp, setInfoIcon, setTitle
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion
activate, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getViewList, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal
public static final int NOTE_REGION
public static final int INSERT_NOTE_DIALOG_REGION_MAX
protected List m_workitems
protected com.wewebu.ow.server.app.OwSubMenuView m_MenuView
protected com.wewebu.ow.server.ecm.bpm.OwWorkitem m_currentItem
protected com.wewebu.ow.server.app.OwFieldManager m_fieldManager
protected com.wewebu.ow.server.ecm.OwProperty m_noteProperty
public OwBPMInsertNoteDialog(List workitems_p, String notePropertyName_p, boolean notePropertyIsNecessary_p) throws com.wewebu.ow.server.exceptions.OwException
workitems_p
- notePropertyName_p
- if null note property is ignorednotePropertyIsNecessary_p
- is the property note necessary. if true missing note property throws an exceptioncom.wewebu.ow.server.exceptions.OwException
public OwBPMInsertNoteDialog(com.wewebu.ow.server.ecm.bpm.OwWorkitem workitem_p, String notePropertyName_p, boolean notePropertyIsNecessary_p) throws com.wewebu.ow.server.exceptions.OwException
workitem_p
- notePropertyName_p
- notePropertyIsNecessary_p
- is the property note necessary. if true missing note property throws an exceptioncom.wewebu.ow.server.exceptions.OwException
protected String usesFormWithAttributes()
usesFormWithAttributes
in class com.wewebu.ow.server.ui.OwView
protected void init() throws Exception
init
in class com.wewebu.ow.server.ui.OwView
Exception
OwView.init()
public void onCancelDo(javax.servlet.http.HttpServletRequest request_p, Object reason_p) throws Exception
request_p
- a HttpServletRequest
reason_p
- Exception
public void onOkDo(javax.servlet.http.HttpServletRequest request_p, Object reason_p) throws Exception
request_p
- a HttpServletRequest
reason_p
- Exception
public void renderRegion(Writer w_p, int iRegion_p) throws Exception
renderRegion
in interface com.wewebu.ow.server.ui.OwBaseView
renderRegion
in class com.wewebu.ow.server.app.OwStandardDialog
w_p
- Writer object to write HTML toiRegion_p
- ID of the region to renderException
public void renderNote(Writer w_p) throws Exception
w_p
- Exception
public void setNote(javax.servlet.http.HttpServletRequest request_p) throws Exception
request_p
- Exception
public Collection getWorkitems()
public com.wewebu.ow.server.ecm.bpm.OwWorkitem getCurrentItem()
protected void onRender(Writer w_p) throws Exception
onRender
in class com.wewebu.ow.server.app.OwStandardDialog
Exception
OwStandardDialog.onRender(java.io.Writer)
public void detach()
detach
in class com.wewebu.ow.server.ui.OwView
OwView.detach()
public com.wewebu.ow.server.field.OwField getField(String strFieldClassName_p) throws Exception, com.wewebu.ow.server.exceptions.OwObjectNotFoundException
getField
in interface com.wewebu.ow.server.field.OwFieldProvider
Exception
com.wewebu.ow.server.exceptions.OwObjectNotFoundException
OwFieldProvider.getField(java.lang.String)
public String getFieldProviderName()
getFieldProviderName
in interface com.wewebu.ow.server.field.OwFieldProvider
OwFieldProvider.getFieldProviderName()
public Object getFieldProviderSource()
getFieldProviderSource
in interface com.wewebu.ow.server.field.OwFieldProvider
OwFieldProvider.getFieldProviderSource()
public int getFieldProviderType()
getFieldProviderType
in interface com.wewebu.ow.server.field.OwFieldProvider
OwFieldProvider.getFieldProviderType()
public Collection getFields() throws Exception
getFields
in interface com.wewebu.ow.server.field.OwFieldProvider
Exception
OwFieldProvider.getFields()
public Object getSafeFieldValue(String name_p, Object defaultvalue_p)
getSafeFieldValue
in interface com.wewebu.ow.server.field.OwFieldProvider
OwFieldProvider.getSafeFieldValue(java.lang.String, java.lang.Object)
public void setField(String name_p, Object value_p) throws Exception, com.wewebu.ow.server.exceptions.OwObjectNotFoundException
setField
in interface com.wewebu.ow.server.field.OwFieldProvider
Exception
com.wewebu.ow.server.exceptions.OwObjectNotFoundException
OwFieldProvider.setField(java.lang.String, java.lang.Object)
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.