Class FormPopupHelperContext
java.lang.Object
com.saperion.ngc.scripthelper.internal.FormPopupHelperContext
Context for FormPopupHelper, holds all information needed for opening the form popup window.
- Since:
- 7.5
- Author:
- art
-
Constructor Summary
ConstructorsConstructorDescriptionFormPopupHelperContext
(String formName, FormPopupType formType) Creates the context with minimum of needed information. -
Method Summary
Modifier and TypeMethodDescriptiongetDDC()
Gets the name of the definition (for new documents).Gets the document id (of the document to edit).getForm()
Gets the name of the form, which should be opened.getTitle()
Gets the title for the form popup window (default is 'Edit index [FORM_NAME]').getType()
Gets the type of form popup window.boolean
Gets the read only parameter value (default isfalse
).void
Sets the name of the definition.void
Sets the document id.void
setReadOnly
(boolean readOnly) Sets the read only parameter value.void
Sets the title for the form popup window.
-
Constructor Details
-
FormPopupHelperContext
Creates the context with minimum of needed information.- Parameters:
formName
- name of the form, which should be openedformType
- type of the form popup window
-
-
Method Details
-
getForm
Gets the name of the form, which should be opened.- Returns:
- name of the form
-
getType
Gets the type of form popup window.- Returns:
- type of form popup window
-
isReadOnly
public boolean isReadOnly()Gets the read only parameter value (default isfalse
).- Returns:
- read only parameter value or default (
false
)
-
setReadOnly
public void setReadOnly(boolean readOnly) Sets the read only parameter value.- Parameters:
readOnly
- value for read only parameter
-
getTitle
Gets the title for the form popup window (default is 'Edit index [FORM_NAME]').- Returns:
- title or default ('Edit index [FORM_NAME]')
-
setTitle
Sets the title for the form popup window.- Parameters:
title
- titel for the form popup window
-
getDDC
Gets the name of the definition (for new documents).- Returns:
- name of the definition or
null
-
setDDC
Sets the name of the definition.- Parameters:
ddc
- name of the definition
-
getDocumentId
Gets the document id (of the document to edit).- Returns:
- document id
-
setDocumentId
Sets the document id.- Parameters:
id
- document id
-