Package com.saperion.ngc.events.iform
Class SaveDocumentEvent
java.lang.Object
org.zkoss.zk.ui.event.Event
com.saperion.ngc.events.iform.SaveDocumentEvent
- All Implemented Interfaces:
Serializable
public class SaveDocumentEvent
extends org.zkoss.zk.ui.event.Event
Event used to tell the ResultSet that a document was edited in an index-mask.
The ResultSet will take care about saving the changes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSaveDocumentEvent
(org.zkoss.zk.ui.Component target, ResultFieldEventBean resultBean) SaveDocumentEvent
(org.zkoss.zk.ui.Component target, ResultFieldEventBean resultBean, Set<String> acls, String comment, Map<String, DocumentVariable> variables) -
Method Summary
Modifier and TypeMethodDescriptiongetAcls()
Returns the edit-event that started the edit-action that resulted in this save-event.List<com.saperion.bean.ContentStream>
getList()
com.saperion.ngc.iform.xml.SaveActionType
int
boolean
void
setEditEvent
(EditSelectedEvent editEvent) Sets the the edit-event that started the edit-action that resulted in this save-event.Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
-
Constructor Details
-
SaveDocumentEvent
- Parameters:
target
- Target componentresultBean
- field result bean
-
SaveDocumentEvent
public SaveDocumentEvent(org.zkoss.zk.ui.Component target, ResultFieldEventBean resultBean, Set<String> acls, String comment, Map<String, DocumentVariable> variables) - Parameters:
target
- Target componentresultBean
- field result beanacls
- acls to add to the documentcomment
- the comment for the new revisionvariables
- the variables to add to the document
-
-
Method Details
-
getList
- Returns:
- Result field list
-
getDDCName
- Returns:
- DDC name
-
getSaveAction
public com.saperion.ngc.iform.xml.SaveActionType getSaveAction()- Returns:
- Save action
-
getSelectedImage
public int getSelectedImage()- Returns:
- Selected image
-
getImageContent
- Returns:
- Image content list
-
getUseAttachment
public boolean getUseAttachment()- Returns:
- useAttachment
-
getAcls
- Returns:
- acl-string to use when saving
-
getComment
- Returns:
- the comment for the new revision
-
getVariables
- Returns:
- the variables to add to the document
-
getEditEvent
Returns the edit-event that started the edit-action that resulted in this save-event. The event can be used to repeat the last edit-action when a save-and-button was pressed.- Returns:
- the last edit-event or null if not set
-
setEditEvent
Sets the the edit-event that started the edit-action that resulted in this save-event. The event can be used to repeat the last edit-action when a save-and-button was pressed.- Parameters:
editEvent
- the last edit-event
-