com.groiss.dms
Class FormContext

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

public class FormContext
extends Object

A context object containing some information about the context in which a form is shown or edited.


Field Summary
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(HttpServletRequest req)
           
 
Method Summary
 ActivityInstance getActivityInstance()
           
 Map<String,Short> getFieldModes()
           
 DMSFolder getFolder()
           
 DMSForm getMainform()
           
 int getMode()
           
 ProcessInstance getProcessInstance()
           
 String getSubid()
           
 String getViewtype()
           
 void setFieldModes(Map<String,Short> modes)
           
 void setMode(int mode)
           
 void setViewtype(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

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(HttpServletRequest req)
Method Detail

getActivityInstance

public ActivityInstance getActivityInstance()

getProcessInstance

public ProcessInstance getProcessInstance()

getFolder

public DMSFolder getFolder()

getMainform

public DMSForm getMainform()

getSubid

public String getSubid()

getMode

public int getMode()

setMode

public void setMode(int mode)

getFieldModes

public Map<String,Short> getFieldModes()

setFieldModes

public void setFieldModes(Map<String,Short> modes)

getViewtype

public String getViewtype()

setViewtype

public void setViewtype(String viewtype)


@enterprise 8.0.10078 Copyright © 2001-2011 Groiss Informatics GmbH. All Rights Reserved.