|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.dms.FormContext
public class FormContext
A context object containing some information about the context in which a form is shown or edited.
Field Summary | |
---|---|
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 Summary | |
---|---|
FormContext(ActivityInstance ai,
DMSFolder folder,
DMSForm mainform,
int mode)
|
|
FormContext(javax.servlet.http.HttpServletRequest req)
|
Method Summary | |
---|---|
ActivityInstance |
getActivityInstance()
|
java.util.Map<java.lang.String,java.lang.Short> |
getFieldModes()
|
DMSFolder |
getFolder()
|
DMSForm |
getMainform()
|
int |
getMode()
|
ProcessInstance |
getProcessInstance()
|
java.lang.String |
getSubid()
|
java.lang.String |
getViewtype()
|
void |
setFieldModes(java.util.Map<java.lang.String,java.lang.Short> modes)
|
void |
setMode(int mode)
|
void |
setViewtype(java.lang.String viewtype)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short UPDATE
public static final short INSERT
public static final short SEARCH
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
Constructor Detail |
---|
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(javax.servlet.http.HttpServletRequest req)
Method Detail |
---|
public ActivityInstance getActivityInstance()
public ProcessInstance getProcessInstance()
public DMSFolder getFolder()
public DMSForm getMainform()
public java.lang.String getSubid()
public int getMode()
public void setMode(int mode)
public java.util.Map<java.lang.String,java.lang.Short> getFieldModes()
public void setFieldModes(java.util.Map<java.lang.String,java.lang.Short> modes)
public java.lang.String getViewtype()
public void setViewtype(java.lang.String viewtype)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |