|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.wf.html.HTMLUtils
public class HTMLUtils
Some utility methods for building HTML GUIs
| Field Summary | |
|---|---|
static java.lang.String |
SELECTLIST_LIST
|
static java.lang.String |
SELECTLIST_TABLE
|
| Constructor Summary | |
|---|---|
HTMLUtils()
|
|
| Method Summary | |
|---|---|
Page |
agentSelectList(javax.servlet.http.HttpServletRequest req)
Deprecated. use selectUserOrRole(HttpServletRequest) |
static Link |
getDocumentsLink(ActivityInstance si)
|
static Link |
getDocumentsLink(ActivityInstance si,
java.lang.String comingFrom)
|
static java.util.List |
getFormLinkList(ActivityInstance ai,
int mode,
java.lang.String comingFrom,
java.lang.String target,
boolean buttonsInToolbar,
boolean withToolbar)
|
static java.lang.String |
getFormLinks(ActivityInstance ai,
int mode,
java.lang.String comingFrom,
java.lang.String target)
|
static Link |
getNotesLink(ActivityInstance ai)
|
static Persistent |
getObject(javax.servlet.http.HttpServletRequest req)
This method returns a persistent object when the request contains a parameter "object" with a value in the form <classname>:<oid>. |
static Persistent |
getObject(javax.servlet.http.HttpServletRequest req,
java.lang.String key)
|
static Persistent |
getObject(java.lang.String obj)
|
static java.util.List |
getObjectList(javax.servlet.http.HttpServletRequest req,
java.lang.String key)
Get list of objects (from multiple selection list) stored in request under key |
Page |
refreshWorklist(javax.servlet.http.HttpServletRequest req)
|
static Page |
refreshWorklist(javax.servlet.http.HttpServletRequest req,
Application appl)
Returns a page that redirects to the current worklist of this application |
Page |
roleList(javax.servlet.http.HttpServletRequest req)
|
static Page |
selectList(javax.servlet.http.HttpServletRequest req)
Shows a list of objects for selection in form of a selectlist |
static Page |
selectList2(javax.servlet.http.HttpServletRequest req)
Shows a list of objects for selection in form of a selectlist |
static Page |
selectTable(javax.servlet.http.HttpServletRequest req)
Shows a list of objects for selection in form of a table |
static Page |
selectUserOrRole(javax.servlet.http.HttpServletRequest req)
|
static Page |
showEmptyForm(DMSForm f,
java.lang.String buttons,
javax.servlet.http.HttpServletRequest req)
|
static Page |
showForm(javax.servlet.http.HttpServletRequest req)
|
static Page |
showForm(javax.servlet.http.HttpServletRequest req,
ActivityInstance ai,
java.lang.String formid,
int mode)
|
static Page |
showForm(javax.servlet.http.HttpServletRequest r,
ActivityInstance ai,
java.lang.String formid,
int mode,
java.lang.String buttons)
|
static Link |
showSubformLink(javax.servlet.http.HttpServletRequest req,
java.lang.String title,
java.lang.String subformid,
int width,
int height,
java.lang.String tablehandler)
|
static Link |
showSubformLink(javax.servlet.http.HttpServletRequest req,
java.lang.String title,
java.lang.String subformid,
int width,
int height,
java.lang.String tablehandler,
java.lang.String actions)
|
static Link |
showSubformLink(javax.servlet.http.HttpServletRequest req,
java.lang.String title,
java.lang.String subformid,
int width,
int height,
java.lang.String tablehandler,
java.lang.String actions,
java.lang.String defaultAction)
|
static Link |
showSubformLink(javax.servlet.http.HttpServletRequest req,
java.lang.String title,
java.lang.String subformid,
int width,
int height,
java.lang.String tablehandler,
java.lang.String actions,
java.lang.String defaultAction,
java.lang.String page)
|
static void |
showWorklist(javax.servlet.http.HttpServletRequest r,
javax.servlet.http.HttpServletResponse res,
com.dec.avw.core.Application appl,
int type,
java.lang.String worklist,
java.lang.String functions)
sends the worklist to the browser. |
Page |
userList(javax.servlet.http.HttpServletRequest req)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SELECTLIST_TABLE
public static final java.lang.String SELECTLIST_LIST
| Constructor Detail |
|---|
public HTMLUtils()
| Method Detail |
|---|
public static Page refreshWorklist(javax.servlet.http.HttpServletRequest req,
Application appl)
req - the HTTP requestappl - the application
public static void showWorklist(javax.servlet.http.HttpServletRequest r,
javax.servlet.http.HttpServletResponse res,
com.dec.avw.core.Application appl,
int type,
java.lang.String worklist,
java.lang.String functions)
throws java.lang.Exception
r - the HTTP requestres - the HTTP responseappl - the applicationtype - the type: 0..user, 1..role, 2..suspension listworklist - a worklist implementation (implements com.groiss.wf.html.Worklist)functions - a space-separated list of function ids
java.lang.Exception
public static Page showForm(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
java.lang.Exception
public static Page showForm(javax.servlet.http.HttpServletRequest req,
ActivityInstance ai,
java.lang.String formid,
int mode)
throws java.lang.Exception
java.lang.Exception
public static Page showForm(javax.servlet.http.HttpServletRequest r,
ActivityInstance ai,
java.lang.String formid,
int mode,
java.lang.String buttons)
throws java.lang.Exception
java.lang.Exception
public static Page showEmptyForm(DMSForm f,
java.lang.String buttons,
javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
java.lang.Exception
public static Page selectList(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
java.lang.Exception
public static Page selectTable(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
java.lang.Exception
public static Page selectList2(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
java.lang.Exception
@Deprecated
public Page agentSelectList(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
selectUserOrRole(HttpServletRequest)
java.lang.Exception
public Page roleList(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
java.lang.Exception
public Page userList(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
java.lang.Exception
public static Page selectUserOrRole(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
java.lang.Exception
public static Persistent getObject(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
req -
java.lang.Exception
public static Persistent getObject(javax.servlet.http.HttpServletRequest req,
java.lang.String key)
throws java.lang.Exception
java.lang.Exception
public static Persistent getObject(java.lang.String obj)
throws java.lang.Exception
java.lang.Exception
public static Link getDocumentsLink(ActivityInstance si)
throws java.lang.Exception
java.lang.Exception
public static Link getDocumentsLink(ActivityInstance si,
java.lang.String comingFrom)
throws java.lang.Exception
comingFrom - the url for the back button in the document table
java.lang.Exception
public static Link getNotesLink(ActivityInstance ai)
throws java.lang.Exception
java.lang.Exception
public static java.lang.String getFormLinks(ActivityInstance ai,
int mode,
java.lang.String comingFrom,
java.lang.String target)
public static java.util.List getFormLinkList(ActivityInstance ai,
int mode,
java.lang.String comingFrom,
java.lang.String target,
boolean buttonsInToolbar,
boolean withToolbar)
public static Link showSubformLink(javax.servlet.http.HttpServletRequest req,
java.lang.String title,
java.lang.String subformid,
int width,
int height,
java.lang.String tablehandler)
throws java.lang.Exception
java.lang.Exception
public static Link showSubformLink(javax.servlet.http.HttpServletRequest req,
java.lang.String title,
java.lang.String subformid,
int width,
int height,
java.lang.String tablehandler,
java.lang.String actions)
throws java.lang.Exception
java.lang.Exception
public static Link showSubformLink(javax.servlet.http.HttpServletRequest req,
java.lang.String title,
java.lang.String subformid,
int width,
int height,
java.lang.String tablehandler,
java.lang.String actions,
java.lang.String defaultAction)
throws java.lang.Exception
java.lang.Exception
public static Link showSubformLink(javax.servlet.http.HttpServletRequest req,
java.lang.String title,
java.lang.String subformid,
int width,
int height,
java.lang.String tablehandler,
java.lang.String actions,
java.lang.String defaultAction,
java.lang.String page)
throws java.lang.Exception
java.lang.Exception
public static java.util.List getObjectList(javax.servlet.http.HttpServletRequest req,
java.lang.String key)
throws java.lang.Exception
req - key -
java.lang.Exception
public Page refreshWorklist(javax.servlet.http.HttpServletRequest req)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||