public class OwCreateObjectFormularDialog extends OwStandardDialog implements OwJspConfigurable
Dialog to create new objects. Uses a JSP Form.
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
OwDialog.OwDialogListener
OwLayout.OwDispatchRegion, OwLayout.OwLayoutViewRefrence
Modifier and Type | Field and Description |
---|---|
static int |
DIALOG_STATUS_FAILED
status of this dialog: checkin failed
|
static int |
DIALOG_STATUS_NONE
status of this dialog: nothing done yet
|
static int |
DIALOG_STATUS_OK
status of this dialog: checkin successful
|
protected int |
m_dialogStatus
status of this dialog needed for historization
|
protected OwObjectClass |
m_folderClass
class to use for new folder
|
protected OwObject |
m_folderObject
selected object of record
|
protected boolean |
m_fOpenObject
open with new record
|
protected OwObjectPropertyFormularView |
m_PropertyView
the property view
|
protected OwClientRefreshContext |
m_RefreshCtx
refresh context for callback
|
protected OwObjectSkeleton |
m_sceletonObject
the new folder object
|
protected String |
m_strJspPage
URL of a form page to use
|
protected String |
m_strObjectClass
the initial class
|
protected String |
m_strObjectClassParent
parent object class from where the user can select, only useful if classes are structured in a tree
|
protected Map |
m_ValuesMap
a set of properties that should be set as default for the new object
|
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
EMPTY_STRING
Constructor and Description |
---|
OwCreateObjectFormularDialog(OwObject folderObject_p,
String strClassName_p,
String strObjectClassParent_p,
boolean fOpenObject_p,
OwJspFormConfigurator strJspFormConfig_p)
create a record / folder create dialog
|
Modifier and Type | Method and Description |
---|---|
protected String |
create()
create the folder / record
|
void |
detach()
remove view and all subviews from context
|
OwJspFormConfigurator |
getJspConfigurator()
Get the associated
OwJspFormConfigurator object. |
OwObject |
getNewObject()
get the newly created object
|
int |
getStatus()
get the current status of this dialog
|
protected void |
init()
init the target after the context is set.
|
protected void |
onRender(Writer w_p)
overridden render the view
|
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.
|
void |
setJspConfigurator(OwJspFormConfigurator jspFormConfigurator_p)
Set the associated
OwJspFormConfigurator object. |
void |
setRefreshContext(OwClientRefreshContext pluginRefreshCtx_p)
set a plugin refresh callback interface
|
void |
setValues(Map properties_p)
submit a set of values that should be set as default for the new object
|
getInfoIcon, getTitle, hasHelpButton, isRegion, onClose, onHelp, renderCloseButton, renderHelpButton, renderRegion, setHelp, setInfoIcon, setTitle
closeDialog, setListener
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, render, renderHTMLFormular, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
protected OwObjectSkeleton m_sceletonObject
protected OwObjectPropertyFormularView m_PropertyView
protected OwObject m_folderObject
protected String m_strObjectClass
protected String m_strObjectClassParent
protected OwObjectClass m_folderClass
protected OwClientRefreshContext m_RefreshCtx
protected boolean m_fOpenObject
protected String m_strJspPage
protected Map m_ValuesMap
public static final int DIALOG_STATUS_NONE
public static final int DIALOG_STATUS_OK
public static final int DIALOG_STATUS_FAILED
protected int m_dialogStatus
public OwCreateObjectFormularDialog(OwObject folderObject_p, String strClassName_p, String strObjectClassParent_p, boolean fOpenObject_p, OwJspFormConfigurator strJspFormConfig_p)
folderObject_p
- OwObject parent folder to add tostrClassName_p
- class name to use for new folder, null = let user select a classstrObjectClassParent_p
- String parent class to let user browsefOpenObject_p
- strJspFormConfig_p
- URL of a form page to usepublic int getStatus()
public void setValues(Map properties_p)
properties_p
- Map of values keyed by parameter names to be set initiallyprotected void init() throws Exception
public void detach()
public OwObject getNewObject() throws Exception
Exception
public void onUpdate(OwEventTarget caller_p, int iCode_p, Object param_p) throws Exception
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 nullException
public void setRefreshContext(OwClientRefreshContext pluginRefreshCtx_p)
pluginRefreshCtx_p
- OwClientRefreshContextprotected String create() throws Exception
Exception
protected void onRender(Writer w_p) throws Exception
onRender
in class OwStandardDialog
w_p
- Writer object to write HTML toException
public OwJspFormConfigurator getJspConfigurator()
OwJspConfigurable
OwJspFormConfigurator
object. Can be null
.getJspConfigurator
in interface OwJspConfigurable
OwJspFormConfigurator
object or null
.public void setJspConfigurator(OwJspFormConfigurator jspFormConfigurator_p)
OwJspConfigurable
OwJspFormConfigurator
object. Can be null
.setJspConfigurator
in interface OwJspConfigurable
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.