com.groiss.dms
Class FormContext

java.lang.Object
  extended by com.groiss.dms.FormContext

public class FormContext
extends java.lang.Object

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

UPDATE

public static final short UPDATE
The form is shown for update: fields read-write, update button

See Also:
Constant Field Values

INSERT

public static final short INSERT
The form is shown for insert: fields read-write, insert button

See Also:
Constant Field Values

SEARCH

public static final short SEARCH
The form is shown for search: fields read-write but empty, search button

See Also:
Constant Field Values

VIEW

public static final short VIEW
The form is shown for view: fields read-only, close or back button

See Also:
Constant Field Values

EMPTY

public static final int EMPTY
Show form with empty form object

See Also:
Constant Field Values

VIEW_WITHOUT_BUTTONS

public static final short VIEW_WITHOUT_BUTTONS
The form is shown for view: fields read-only,no button

See Also:
Constant Field Values

VIEW_FOR_VERSION

public static final short VIEW_FOR_VERSION
The form is shown for view versions

See Also:
Constant Field Values

VIEW_TEXT

public static final short VIEW_TEXT
The form is shown for view: fields in text mode

See Also:
Constant Field Values
Constructor Detail

FormContext

public FormContext(ActivityInstance ai,
                   DMSFolder folder,
                   DMSForm mainform,
                   int mode)
Parameters:
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.

FormContext

public FormContext(javax.servlet.http.HttpServletRequest req)
Method Detail

getActivityInstance

public ActivityInstance getActivityInstance()

getProcessInstance

public ProcessInstance getProcessInstance()

getFolder

public DMSFolder getFolder()

getMainform

public DMSForm getMainform()

getSubid

public java.lang.String getSubid()

getMode

public int getMode()

setMode

public void setMode(int mode)

getFieldModes

public java.util.Map<java.lang.String,java.lang.Short> getFieldModes()

setFieldModes

public void setFieldModes(java.util.Map<java.lang.String,java.lang.Short> modes)

getViewtype

public java.lang.String getViewtype()

setViewtype

public void setViewtype(java.lang.String viewtype)


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.