public class OwEditPropertiesDialogSimple
extends com.wewebu.ow.server.app.OwStandardSequenceDialog
Implementation of the simple Document edit properties Dialog. Just renders a given list of properties for editing.
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 | Class and Description |
|---|---|
protected static class |
OwEditPropertiesDialogSimple.OwSimpleObjectPropertyView
OwSimpleObjectPropertyView.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_iIndex
current item index
|
protected List<com.wewebu.ow.server.ecm.OwObject> |
m_items
list of items to work on
|
protected int |
m_iViewMask
filters the views to be displayed
|
protected com.wewebu.ow.server.app.OwMimeManager |
m_MimeManager
instance of the MIME manager used to open the objects
|
protected com.wewebu.ow.server.ecm.OwObject |
m_ParentObject
the parent of the object that listed the getItem()
|
protected Collection |
m_propertyInfos
Deprecated.
since 4.2.0.0
|
static int |
VIEW_MASK_AUTOOPEN
mask value to use autoopen object
|
static int |
VIEW_MASK_DISABLE_MENU
mask value for the properties view
|
static int |
VIEW_MASK_ENABLE_PASTE_METADATA
mask value to enable paste metadata in property view
|
static int |
VIEW_MASK_PREVIEW_AUTOOPEN
mask value to use preview mode for autoopen
|
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_REGIONm_iDEBUG_DocumentViewSize, m_iDEBUG_InitDocument, m_iDEBUG_TargetCount, m_Listener| Constructor and Description |
|---|
OwEditPropertiesDialogSimple(Collection<com.wewebu.ow.server.ecm.OwObject> objects,
int index,
com.wewebu.ow.server.ecm.OwObject parent,
org.alfresco.wd.ui.conf.OwPropertyListConfiguration propertyListConfiguration,
boolean autoLock)
set the object, the edit properties view is working on
|
OwEditPropertiesDialogSimple(Collection objects_p,
int iIndex_p,
com.wewebu.ow.server.ecm.OwObject parentObject_p,
Collection propertyInfos_p)
Deprecated.
since 4.2.0.0 use
OwEditPropertiesDialogSimple(Collection, int, OwObject, OwPropertyListConfiguration) instead |
OwEditPropertiesDialogSimple(Collection objects_p,
int iIndex_p,
com.wewebu.ow.server.ecm.OwObject parentObject_p,
Collection propertyInfos_p,
boolean autolock_p)
Deprecated.
since 4.2.0.0 use
OwEditPropertiesDialogSimple(Collection, int, OwObject, OwPropertyListConfiguration, boolean) instead |
OwEditPropertiesDialogSimple(Collection objects,
int index,
com.wewebu.ow.server.ecm.OwObject parent,
org.alfresco.wd.ui.conf.OwPropertyListConfiguration propertyListConfiguration)
Constructor for the simple edit properties view is working on
|
OwEditPropertiesDialogSimple(com.wewebu.ow.server.ecm.OwObject obj_p,
com.wewebu.ow.server.ecm.OwObject parentObject_p,
Collection propertyInfos_p)
Deprecated.
since 4.2.0.0 don't use anymore
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeDialog()
visually close the Dialog.
|
void |
detach()
remove view and all subviews from context
|
int |
getCount()
get the number of sequence items in the dialog
|
com.wewebu.ow.server.ecm.OwObject |
getItem() |
com.wewebu.ow.server.app.OwMimeManager |
getMimeManager()
get the MIME manager
|
org.alfresco.wd.ui.conf.OwPropertyListConfiguration |
getPropertyListConfiguration()
Get currently defined PropertyListConfiguration
|
int |
getViewMask() |
boolean |
hasNext()
called when the Dialog needs to know if there is a next item
|
boolean |
hasPrev()
called when the Dialog needs to know if there is a prev item
|
protected boolean |
hasViewMask(int iViewMask_p)
check if view should be displayed or is masked out
|
protected void |
init()
init the target after the context is set.
|
protected void |
initNewItem()
init the dialog with the current item
|
void |
next(boolean fRemoveCurrent_p)
move to next item and roll over, i.e.
|
boolean |
onCancel(javax.servlet.http.HttpServletRequest request_p,
Object oReason_p)
event called when user clicked Cancel button in the menu of the property view
|
void |
prev(boolean fRemoveCurrent_p)
move to prev item and roll over, i.e.
|
void |
renderRegion(Writer w_p,
int iRegion_p)
render the views of the region
|
void |
setAutoLock(boolean autoLock_p)
Set auto lock
|
void |
setPreviewConfiguration(com.wewebu.ow.server.util.OwXMLUtil previewConfiguration) |
protected void |
setPropertyListConfiguration(org.alfresco.wd.ui.conf.OwPropertyListConfiguration propertyListConfiguration)
Set PropertyList configuration
|
void |
setViewMask(int iViewMask_p)
determine the views to be displayed by masking them with their flag
|
getNextHREF, getPrevHREF, onNext, onPrev, renderNavigationButtonsgetInfoIcon, getTitle, hasHelpButton, isRegion, onClose, onHelp, onRender, renderCloseButton, renderHelpButton, setHelp, setInfoIcon, setTitleaddRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegionactivate, 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, usesFormWithAttributespublic static final int VIEW_MASK_DISABLE_MENU
public static final int VIEW_MASK_PREVIEW_AUTOOPEN
public static final int VIEW_MASK_AUTOOPEN
public static final int VIEW_MASK_ENABLE_PASTE_METADATA
protected int m_iViewMask
protected List<com.wewebu.ow.server.ecm.OwObject> m_items
protected int m_iIndex
protected com.wewebu.ow.server.ecm.OwObject m_ParentObject
protected Collection m_propertyInfos
protected com.wewebu.ow.server.app.OwMimeManager m_MimeManager
@Deprecated public OwEditPropertiesDialogSimple(com.wewebu.ow.server.ecm.OwObject obj_p, com.wewebu.ow.server.ecm.OwObject parentObject_p, Collection propertyInfos_p) throws Exception
obj_p - OwObjectparentObject_p - the parent OwObject of the object that listed the getItem()propertyInfos_p - Collection of property infosException@Deprecated public OwEditPropertiesDialogSimple(Collection objects_p, int iIndex_p, com.wewebu.ow.server.ecm.OwObject parentObject_p, Collection propertyInfos_p) throws Exception
OwEditPropertiesDialogSimple(Collection, int, OwObject, OwPropertyListConfiguration) insteadobjects_p - List of OwObjectiIndex_p - int index in objects_p to work on, usually 0parentObject_p - the parent OwObject of the object that listed the getItem()propertyInfos_p - Collection of property infosException@Deprecated public OwEditPropertiesDialogSimple(Collection objects_p, int iIndex_p, com.wewebu.ow.server.ecm.OwObject parentObject_p, Collection propertyInfos_p, boolean autolock_p) throws Exception
OwEditPropertiesDialogSimple(Collection, int, OwObject, OwPropertyListConfiguration, boolean) insteadobjects_p - List of OwObjectiIndex_p - int index in objects_p to work on, usually 0parentObject_p - the parent OwObject of the object that listed the getItem()propertyInfos_p - Collection of property infosautolock_p - - autolock parameterExceptionpublic OwEditPropertiesDialogSimple(Collection objects, int index, com.wewebu.ow.server.ecm.OwObject parent, org.alfresco.wd.ui.conf.OwPropertyListConfiguration propertyListConfiguration) throws Exception
objects - List of OwObjects to be editedindex - int to start fromparent - OwObjectpropertyListConfiguration - OwPropertyListConfigurationExceptionpublic OwEditPropertiesDialogSimple(Collection<com.wewebu.ow.server.ecm.OwObject> objects, int index, com.wewebu.ow.server.ecm.OwObject parent, org.alfresco.wd.ui.conf.OwPropertyListConfiguration propertyListConfiguration, boolean autoLock) throws Exception
objects - List of OwObjectindex - int index in objects_p to work on, usually 0parent - OwObjectObject the parent OwObject of the object that listed the getItem()propertyListConfiguration - OwPropertyListConfigurationautoLock - boolean to automatically lock object when editingExceptionprotected void init()
throws Exception
init in class com.wewebu.ow.server.ui.OwViewExceptionpublic com.wewebu.ow.server.ecm.OwObject getItem()
public boolean hasNext()
throws Exception
hasNext in interface com.wewebu.ow.server.app.OwSequenceViewhasNext in class com.wewebu.ow.server.app.OwStandardSequenceDialogExceptionpublic boolean hasPrev()
throws Exception
hasPrev in interface com.wewebu.ow.server.app.OwSequenceViewhasPrev in class com.wewebu.ow.server.app.OwStandardSequenceDialogExceptionpublic int getCount()
public void prev(boolean fRemoveCurrent_p)
throws Exception
fRemoveCurrent_p - true = remove the current sequence item and then move to the prev item, if this is the last item, closes the dialogExceptionpublic void next(boolean fRemoveCurrent_p)
throws Exception
fRemoveCurrent_p - true = remove the current sequence item and then move to the next item, if this is the last item, closes the dialogExceptionprotected void initNewItem()
throws Exception
Exceptionpublic void closeDialog()
throws Exception
closeDialog in class com.wewebu.ow.server.ui.OwDialogExceptionpublic void detach()
detach in class com.wewebu.ow.server.ui.OwViewpublic boolean onCancel(javax.servlet.http.HttpServletRequest request_p,
Object oReason_p)
throws Exception
request_p - a HttpServletRequestoReason_p - Optional reason object submitted in addMenuItembooleanExceptionpublic void setAutoLock(boolean autoLock_p)
throws Exception
autoLock_p - - autolock parameter.Exceptionpublic void renderRegion(Writer w_p, int iRegion_p) throws Exception
renderRegion in interface com.wewebu.ow.server.ui.OwBaseViewrenderRegion in class com.wewebu.ow.server.app.OwStandardSequenceDialogw_p - Writer object to write HTML toiRegion_p - ID of the region to renderExceptionpublic com.wewebu.ow.server.app.OwMimeManager getMimeManager()
public void setViewMask(int iViewMask_p)
iViewMask_p - bitmask according to VIEW_MASK_SYSTEM_... flagspublic int getViewMask()
protected boolean hasViewMask(int iViewMask_p)
iViewMask_p - bitmask according to VIEW_MASK_SYSTEM_... flagspublic void setPreviewConfiguration(com.wewebu.ow.server.util.OwXMLUtil previewConfiguration)
previewConfiguration - public org.alfresco.wd.ui.conf.OwPropertyListConfiguration getPropertyListConfiguration()
protected void setPropertyListConfiguration(org.alfresco.wd.ui.conf.OwPropertyListConfiguration propertyListConfiguration)
propertyListConfiguration - OwPropertyListConfigurationCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.