public class FormContext extends Object
Modifier and Type | Field and Description |
---|---|
static short |
DELETE
The form will be deleted.
|
static int |
EMPTY
Show form with empty form object
|
static short |
INSERT
The form is shown for insert: fields read-write, insert button
|
static short |
SEARCH
The form is shown for search: fields read-write but empty, search button
|
static short |
UPDATE
The form is shown for update: fields read-write, update button
|
static short |
VIEW
The form is shown for view: fields read-only, close or back button
|
static short |
VIEW_FOR_VERSION
The form is shown for view versions
|
static short |
VIEW_TEXT
The form is shown for view: fields in text mode
|
static short |
VIEW_WITHOUT_BUTTONS
The form is shown for view: fields read-only,no button
|
Constructor and Description |
---|
FormContext(ActivityInstance ai,
DMSFolder folder,
DMSForm mainform,
int mode)
Create a form context object.
|
FormContext(HttpServletRequest req)
Create a form context object.
|
Modifier and Type | Method and Description |
---|---|
ActivityInstance |
getActivityInstance()
Get the activity instance.
|
Map<String,Short> |
getFieldModes()
Get field modes for form fields.
|
DMSFolder |
getFolder()
Get the DMS-folder.
|
DMSForm |
getMainform()
Get the main form.
|
int |
getMode()
Get the view mode, one of the constants in this class.
|
ProcessInstance |
getProcessInstance()
Get the process instance.
|
String |
getSubid()
Get the id of this form in the mainform-subform relation.
|
Boolean |
getSubmitValidation()
Get the submitValidation value.
|
UserAgent |
getUserAgent() |
boolean |
isBeforeShowCalled()
Ask whether beforeShow is alreafy called.
|
void |
setBeforeShowCalled(boolean c)
Set the beforeShowCalled field.
|
void |
setFieldModes(Map<String,Short> modes)
Set the filed modes.
|
void |
setMainform(DMSForm mainform)
Set the mainform.
|
void |
setMode(int mode)
Set the view mode.
|
void |
setSubid(String subid)
Set the id of this form in the mainform-subform relation.
|
void |
setSubmitValidation(Boolean validate)
Set the default for validation for submit buttons.
|
void |
setUserAgent(UserAgent ag) |
public static final short UPDATE
public static final short INSERT
public static final short SEARCH
public static final short DELETE
public static final short VIEW
public static final int EMPTY
public static final short VIEW_WITHOUT_BUTTONS
public static final short VIEW_FOR_VERSION
public static final short VIEW_TEXT
public FormContext(ActivityInstance ai, DMSFolder folder, DMSForm mainform, int mode)
ai
- folder
- mainform
- mode
- the mode is used to determine how the form should be rendered: with or without buttons, readonly, etc.
See the constants in this class.public FormContext(HttpServletRequest req)
public ActivityInstance getActivityInstance()
public ProcessInstance getProcessInstance()
public DMSFolder getFolder()
public DMSForm getMainform()
public void setMainform(DMSForm mainform)
public String getSubid()
public void setSubid(String subid)
public int getMode()
public void setMode(int mode)
public Map<String,Short> getFieldModes()
public void setFieldModes(Map<String,Short> modes)
public void setSubmitValidation(Boolean validate)
public Boolean getSubmitValidation()
public boolean isBeforeShowCalled()
public void setBeforeShowCalled(boolean c)
public void setUserAgent(UserAgent ag)
public UserAgent getUserAgent()
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.