planetj.html
Class HTMLGenerator

java.lang.Object
  |
  +--planetj.html.HTMLGenerator

public class HTMLGenerator
extends Object

This class is used for creating HTML elements that contain values based upon the FieldDescribedClasses and their Fields that are used as parameters.

Author:
PlanetJ Corporation

Field Summary
static short PAGING_BASIC
          Basic paging provides just a next and previous links
static short PAGING_INTERMEDIATE
          Intermediate paging provided a first, previous, next, and last links
 
Method Summary
static StringBuffer appendCSSLink(String href, StringBuffer html)
          Appends HTML code to include an HTML CSS link.
static StringBuffer appendFeatureWarning(StringBuffer html, javax.servlet.http.HttpServletRequest req)
           
static StringBuffer appendFeatureWarning(String before, String after, StringBuffer html, javax.servlet.http.HttpServletRequest req)
          Appends an unsupported warning if necessary to the StringBuffer of HTML
static StringBuffer appendFeatureWarningJavaScript(StringBuffer html, javax.servlet.http.HttpServletRequest req)
           
static StringBuffer appendHiddenInput(String inputName, StringBuffer html)
          Deprecated. replaced with HTMLInput.appendHiddenInput(String, String, StringBuffer)
static StringBuffer appendHiddenInput(String inputName, String inputValue, StringBuffer html)
          Deprecated. replaced with HTMLInput.appendHiddenInput(String, String, StringBuffer)
static StringBuffer appendHiddenInputs(StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static StringBuffer appendHiddenNavigationIds(StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static String appendIdsToLink(String link, javax.servlet.http.HttpServletRequest request)
          Appends the session id and request id to the given link.
static StringBuffer appendJavaScript(String source, StringBuffer html)
          Appends HTML code to include a JavaScript source file..
static StringBuffer appendLink(String rel, String type, String href, StringBuffer html)
          Appends HTML code to include an HTML link.
static StringBuffer appendParagraphHeading(String title, StringBuffer html)
          Appends the givin Title.
static String convertDoubleQuoteInJavaScriptString(String str)
           
static String convertJavaScriptString(String str)
           
static String convertLink(String str)
           
static String convertString(String str)
           
static String generateAssociationLinks(RowCollection rowCol, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Deprecated.  
static String generateComboBox(Field fld, String attributes, String fldName, RowCollection rowCol, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
static String generateComboBox(Field fld, String attributes, String fldName, RowCollection rowCol, String selectedVal, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
static String generateComboBox(Field fld, String attributes, String fldName, String dspFldName, RowCollection rowCol, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
static String generateComboBox(Field fld, String attributes, String fldName, String dspFldName, RowCollection rowCol, String selectedVal, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
static String generateComboBox(String id, String attributes, String fldName, RowCollection rowCol, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
static String generateComboBox(String id, String attributes, String fldName, RowCollection rowCol, String selectedVal, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
static String generateComboBox(String id, String attributes, String fldName, String dspFldName, RowCollection rowCol, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
static String generateComboBox(String id, String attributes, String fldName, String dspFldName, RowCollection rowCol, String selectedVal, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
static String generateCurrentUserValue(String fieldName, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Convience method the generates and returns HTML code to display a user's property value for the given Field name.
static String generateField(Field field, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated. replaced with HTMLField.appendDisplayValue(.......)
static StringBuffer generateHiddenInputs(StringBuffer html, javax.servlet.http.HttpServletRequest request)
          Deprecated. replaced with HTMLGenerator.appendHiddenInputs(StringBuffer, HttpServletRequest, HttpServletResponse)
static String generateHiddenInputs(StringBuffer html, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Appends hidden html input fields used for the unique session identifier for objects, magic requests, and servlet actions.
static String generateInput(Field fld, int size, String attributes, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated. replaced with HTMLField.appendInput(....)
static String generateInput(Field fld, int size, String attributes, int x, int y, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated. x and y are no longer used, replaced with appendInput(Field, int, String, int, int, StringBuffer, HttpServletRequest, HttpServletResponse)
static String generateInput(Field fld, String attributes, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated. replaced with HTMLField.appendInput(....)
static String generateLabel(Field fld, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String representing the Field's external column name as a bold label.
static String generateLabelAndField(Field fld, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String representing HTML for a Field and also its label.
static String generateLabelAndInput(Field fld, int size, String inputAttributes, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String representing HTML for input (with specified size) for a Field and also its label.
static String generateLabelAndInput(Field fld, String inputAttributes, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String representing HTML for input of a Field and also its label.
static String generateList(Field fld, String attributes, String fldName, RowCollection rowCol, int size, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(Field fld, String attributes, String fldName, RowCollection rowCol, int size, int selectionMode, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(Field fld, String attributes, String fldName, RowCollection rowCol, int size, String selectedVal, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(Field fld, String attributes, String fldName, RowCollection rowCol, int size, String selectedVal, int selectionMode, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(Field fld, String attributes, String fldName, String dspFldName, RowCollection rowCol, int size, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(Field fld, String attributes, String fldName, String dspFldName, RowCollection rowCol, int size, int selectionMode, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(Field fld, String attributes, String fldName, String dspFldName, RowCollection rowCol, int size, String selectedVal, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(Field fld, String attributes, String fldName, String dspFldName, RowCollection rowCol, int size, String selectedVal, int selectionMode, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(String id, String attributes, String fldName, RowCollection rowCol, int size, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(String id, String attributes, String fldName, RowCollection rowCol, int size, int selectionMode, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(String id, String attributes, String fldName, RowCollection rowCol, int size, String selectedVal, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(String id, String attributes, String fldName, RowCollection rowCol, int size, String selectedVal, int selectionMode, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(String id, String attributes, String fldName, String dspFldName, RowCollection rowCol, int size, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(String id, String attributes, String fldName, String dspFldName, RowCollection rowCol, int size, int selectionMode, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(String id, String attributes, String fldName, String dspFldName, RowCollection rowCol, int size, String selectedVal, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateList(String id, String attributes, String fldName, String dspFldName, RowCollection rowCol, int size, String selectedVal, int selectionMode, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Returns a String for a HTML list.
static String generateMagicButton(String pName, String pValue, String pFormName, String pServletPath, String pAttributes, MagicRequest pRequest)
          This method generates the HTML string that will construct an HTML button component that onClick will set the action of the form that contains it and sets the magic request.
static String generateNavigationLink(String linkId, String body, String linkText, String title, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Convience method that generates a link that will load the given body into the current layout.
static String generateNavigationLink(String linkId, String body, String linkText, String title, String clazz, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Convience method that generates a link that will load the given body into the current layout.
static String generateRadio(Field fld, String attributes, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated. replaced by HTMLInput.appendRadioButton(....)
static String generateTable(Row row, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated. This is a unused method with a bad name
static short getPagingLevel()
          Gets the paging level
static void setPagingLevel(short level)
          Sets the paging level
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGING_BASIC

public static final short PAGING_BASIC
Basic paging provides just a next and previous links

See Also:
Constant Field Values

PAGING_INTERMEDIATE

public static final short PAGING_INTERMEDIATE
Intermediate paging provided a first, previous, next, and last links

See Also:
Constant Field Values
Method Detail

appendCSSLink

public static StringBuffer appendCSSLink(String href,
                                         StringBuffer html)
Appends HTML code to include an HTML CSS link.

Parameters:
href - location of the resource
html - buffer to append code to
Returns:
buffer link was appended to

appendFeatureWarning

public static StringBuffer appendFeatureWarning(String before,
                                                String after,
                                                StringBuffer html,
                                                javax.servlet.http.HttpServletRequest req)
Appends an unsupported warning if necessary to the StringBuffer of HTML

Parameters:
before - Text to append before the warning
after - Text to append after the warning
html - The StringBuffer to append to
req - The HttpServletRequest

appendFeatureWarning

public static StringBuffer appendFeatureWarning(StringBuffer html,
                                                javax.servlet.http.HttpServletRequest req)

appendFeatureWarningJavaScript

public static StringBuffer appendFeatureWarningJavaScript(StringBuffer html,
                                                          javax.servlet.http.HttpServletRequest req)

appendHiddenInput

public static StringBuffer appendHiddenInput(String inputName,
                                             String inputValue,
                                             StringBuffer html)
Deprecated. replaced with HTMLInput.appendHiddenInput(String, String, StringBuffer)

Appends HTML code for a hidden input field for the given input name.

Parameters:
inputName - name for the hidden input field.
html - buffer to append html code to.

appendHiddenInput

public static StringBuffer appendHiddenInput(String inputName,
                                             StringBuffer html)
Deprecated. replaced with HTMLInput.appendHiddenInput(String, String, StringBuffer)

Appends HTML code for a hidden input field for the given input name.

Parameters:
inputName - name for the hidden input field.
html - buffer to append html code to.

appendHiddenInputs

public static StringBuffer appendHiddenInputs(StringBuffer html,
                                              javax.servlet.http.HttpServletRequest request,
                                              javax.servlet.http.HttpServletResponse response)
                                       throws DataEngineException
DataEngineException

appendHiddenNavigationIds

public static StringBuffer appendHiddenNavigationIds(StringBuffer html,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
                                              throws DataEngineException
DataEngineException

appendIdsToLink

public static String appendIdsToLink(String link,
                                     javax.servlet.http.HttpServletRequest request)
Appends the session id and request id to the given link. This allows session and request navigation state to be maintained when a link is clicked.


appendJavaScript

public static StringBuffer appendJavaScript(String source,
                                            StringBuffer html)
Appends HTML code to include a JavaScript source file..

Parameters:
source - file location of JavaScript to include in HTML output.
html - buffer to append html code to.

appendLink

public static StringBuffer appendLink(String rel,
                                      String type,
                                      String href,
                                      StringBuffer html)
Appends HTML code to include an HTML link.

Parameters:
rel - relationship of current document to link
type - content type of the link
href - location of the resource
html - buffer to append code to
Returns:
buffer link was appended to

appendParagraphHeading

public static StringBuffer appendParagraphHeading(String title,
                                                  StringBuffer html)
                                           throws CMException
Appends the givin Title. Note if there is any HTML code in the title, it will be acknowledged.

CMException

convertDoubleQuoteInJavaScriptString

public static String convertDoubleQuoteInJavaScriptString(String str)

convertJavaScriptString

public static String convertJavaScriptString(String str)

convertLink

public static String convertLink(String str)

convertString

public static String convertString(String str)

generateAssociationLinks

public static String generateAssociationLinks(RowCollection rowCol,
                                              javax.servlet.http.HttpServletRequest req,
                                              javax.servlet.http.HttpServletResponse resp)
                                       throws CMException
Deprecated.  

Returns HTML code containing a HTML table of the specified RowCollection.

Parameters:
rowCol -
req - HttpServletRequest
Returns:
String
CMException

generateComboBox

public static String generateComboBox(String id,
                                      String attributes,
                                      String fldName,
                                      String dspFldName,
                                      RowCollection rowCol,
                                      String selectedVal,
                                      javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse res)
                               throws CMException
Deprecated.  

Returns a String for a HTML combo box (drop down box).

Parameters:
id - String
fldName - String
dspFldName - String
rowCol - RowCollection
selectedVal - String
Returns:
String
CMException

generateComboBox

public static String generateComboBox(String id,
                                      String attributes,
                                      String fldName,
                                      String dspFldName,
                                      RowCollection rowCol,
                                      javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse res)
                               throws CMException
Deprecated.  

Returns a String for a HTML combo box (drop down box).

Parameters:
id - String
fldName - String
dspFldName - String
rowCol - RowCollection
Returns:
String
CMException

generateComboBox

public static String generateComboBox(String id,
                                      String attributes,
                                      String fldName,
                                      RowCollection rowCol,
                                      String selectedVal,
                                      javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse res)
                               throws CMException
Deprecated.  

Returns a String for a HTML combo box (drop down box).

Parameters:
id - String
fldName - String
rowCol - RowCollection
selectedVal - String
Returns:
String
CMException

generateComboBox

public static String generateComboBox(String id,
                                      String attributes,
                                      String fldName,
                                      RowCollection rowCol,
                                      javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse res)
                               throws CMException
Deprecated.  

Returns a String for a HTML combo box (drop down box).

Parameters:
id - String
fldName - String
rowCol - RowCollection
Returns:
String
CMException

generateComboBox

public static String generateComboBox(Field fld,
                                      String attributes,
                                      String fldName,
                                      String dspFldName,
                                      RowCollection rowCol,
                                      String selectedVal,
                                      javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse res)
                               throws CMException
Deprecated.  

Returns a String for a HTML combo box (drop down box).

Parameters:
fld - Field
fldName - String
dspFldName - String
rowCol - RowCollection
selectedVal - String
Returns:
String
CMException

generateComboBox

public static String generateComboBox(Field fld,
                                      String attributes,
                                      String fldName,
                                      String dspFldName,
                                      RowCollection rowCol,
                                      javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse res)
                               throws CMException
Deprecated.  

Returns a String for a HTML combo box (drop down box).

Parameters:
fld - Field
fldName - String
dspFldName - String
rowCol - RowCollection
Returns:
String
CMException

generateComboBox

public static String generateComboBox(Field fld,
                                      String attributes,
                                      String fldName,
                                      RowCollection rowCol,
                                      String selectedVal,
                                      javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse res)
                               throws CMException
Deprecated.  

Returns a String for a HTML combo box (drop down box).

Parameters:
fld - Field
fldName - String
rowCol - RowCollection
selectedVal - String
Returns:
String
CMException

generateComboBox

public static String generateComboBox(Field fld,
                                      String attributes,
                                      String fldName,
                                      RowCollection rowCol,
                                      javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse res)
                               throws CMException
Deprecated.  

Returns a String for a HTML combo box (drop down box).

Parameters:
fld - Field
fldName - String
rowCol - RowCollection
Returns:
String
CMException

generateCurrentUserValue

public static String generateCurrentUserValue(String fieldName,
                                              javax.servlet.http.HttpServletRequest request,
                                              javax.servlet.http.HttpServletResponse response)
Convience method the generates and returns HTML code to display a user's property value for the given Field name.

Parameters:
fieldName - name of Field to display from user properties
request - request from client
response - response to client

generateField

public static String generateField(Field field,
                                   javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws CMException
Deprecated. replaced with HTMLField.appendDisplayValue(.......)

Returns a String representing the Field's value in HTML text.

Returns:
String
CMException

generateHiddenInputs

public static StringBuffer generateHiddenInputs(StringBuffer html,
                                                javax.servlet.http.HttpServletRequest request)
                                         throws DataEngineException
Deprecated. replaced with HTMLGenerator.appendHiddenInputs(StringBuffer, HttpServletRequest, HttpServletResponse)

Appends hidden html input fields used for the unique session identifier for objects, magic requests, and servlet actions.

Parameters:
html - StringBuffer to append hidden html inputs (if null, a new StringBuffer is created)
request - request
DataEngineException

generateHiddenInputs

public static String generateHiddenInputs(StringBuffer html,
                                          javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                                   throws DataEngineException
Appends hidden html input fields used for the unique session identifier for objects, magic requests, and servlet actions.

Parameters:
html - StringBuffer to append hidden html inputs (if null, a new StringBuffer is created)
request - request
DataEngineException

generateInput

public static String generateInput(Field fld,
                                   int size,
                                   String attributes,
                                   int x,
                                   int y,
                                   javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse res)
                            throws CMException
Deprecated. x and y are no longer used, replaced with appendInput(Field, int, String, int, int, StringBuffer, HttpServletRequest, HttpServletResponse)

Returns a String representing HTML for input for a Field.

Parameters:
fld - Field
Returns:
String
CMException

generateInput

public static String generateInput(Field fld,
                                   int size,
                                   String attributes,
                                   javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse res)
                            throws CMException
Deprecated. replaced with HTMLField.appendInput(....)

Returns a String representing HTML for input for a Field.

Parameters:
fld - Field
Returns:
String
CMException

generateInput

public static String generateInput(Field fld,
                                   String attributes,
                                   javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse res)
                            throws CMException
Deprecated. replaced with HTMLField.appendInput(....)

Returns a String representing HTML for input for a Field.

Parameters:
fld - Field
Returns:
String
CMException

generateLabel

public static String generateLabel(Field fld,
                                   javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse res)
                            throws CMException
Returns a String representing the Field's external column name as a bold label.

Parameters:
fld - Field
Returns:
String
CMException

generateLabelAndField

public static String generateLabelAndField(Field fld,
                                           javax.servlet.http.HttpServletRequest req,
                                           javax.servlet.http.HttpServletResponse res)
                                    throws CMException
Returns a String representing HTML for a Field and also its label.

Parameters:
fld - Field
Returns:
String
CMException

generateLabelAndInput

public static String generateLabelAndInput(Field fld,
                                           int size,
                                           String inputAttributes,
                                           javax.servlet.http.HttpServletRequest req,
                                           javax.servlet.http.HttpServletResponse res)
                                    throws CMException
Returns a String representing HTML for input (with specified size) for a Field and also its label.

Parameters:
fld - Field
size - int
Returns:
String
CMException

generateLabelAndInput

public static String generateLabelAndInput(Field fld,
                                           String inputAttributes,
                                           javax.servlet.http.HttpServletRequest req,
                                           javax.servlet.http.HttpServletResponse res)
                                    throws CMException
Returns a String representing HTML for input of a Field and also its label.

Parameters:
fld - Field
Returns:
String
CMException

generateList

public static String generateList(String id,
                                  String attributes,
                                  String fldName,
                                  String dspFldName,
                                  RowCollection rowCol,
                                  int size,
                                  int selectionMode,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
id - String
fldName - String
dspFldName - String
rowCol - RowCollection
size - int
selectionMode - int
Returns:
String
CMException

generateList

public static String generateList(String id,
                                  String attributes,
                                  String fldName,
                                  String dspFldName,
                                  RowCollection rowCol,
                                  int size,
                                  String selectedVal,
                                  int selectionMode,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
id - String
fldName - String
dspFldName - String
rowCol - RowCollection
size - int
selectedVal - String
Returns:
String
CMException

generateList

public static String generateList(String id,
                                  String attributes,
                                  String fldName,
                                  String dspFldName,
                                  RowCollection rowCol,
                                  int size,
                                  String selectedVal,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
id - String
fldName - String
dspFldName - String
rowCol - RowCollection
size - int
selectedVal - String
Returns:
String
CMException

generateList

public static String generateList(String id,
                                  String attributes,
                                  String fldName,
                                  String dspFldName,
                                  RowCollection rowCol,
                                  int size,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
id - String
fldName - String
dspFldName - String
rowCol - RowCollection
size - int
Returns:
String
CMException

generateList

public static String generateList(String id,
                                  String attributes,
                                  String fldName,
                                  RowCollection rowCol,
                                  int size,
                                  int selectionMode,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
id - String
fldName - String
rowCol - RowCollection
size - int
selectionMode - int
Returns:
String
CMException

generateList

public static String generateList(String id,
                                  String attributes,
                                  String fldName,
                                  RowCollection rowCol,
                                  int size,
                                  String selectedVal,
                                  int selectionMode,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
id - String
fldName - String
rowCol - RowCollection
size - int
selectedVal - String
selectionMode - int
Returns:
String
CMException

generateList

public static String generateList(String id,
                                  String attributes,
                                  String fldName,
                                  RowCollection rowCol,
                                  int size,
                                  String selectedVal,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
id - String
fldName - String
rowCol - RowCollection
size - int
selectedVal - String
Returns:
String
CMException

generateList

public static String generateList(String id,
                                  String attributes,
                                  String fldName,
                                  RowCollection rowCol,
                                  int size,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
id - String
fldName - String
rowCol - RowCollection
size - int
Returns:
String
CMException

generateList

public static String generateList(Field fld,
                                  String attributes,
                                  String fldName,
                                  String dspFldName,
                                  RowCollection rowCol,
                                  int size,
                                  int selectionMode,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
fld - Field
fldName - String
dspFldName - String
rowCol - RowCollection
size - int
selectionMode - int
Returns:
String
CMException

generateList

public static String generateList(Field fld,
                                  String attributes,
                                  String fldName,
                                  String dspFldName,
                                  RowCollection rowCol,
                                  int size,
                                  String selectedVal,
                                  int selectionMode,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
fldName - String
dspFldName - String
rowCol - RowCollection
size - int
selectedVal - String
Returns:
String
CMException

generateList

public static String generateList(Field fld,
                                  String attributes,
                                  String fldName,
                                  String dspFldName,
                                  RowCollection rowCol,
                                  int size,
                                  String selectedVal,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
fld - Field
fldName - String
dspFldName - String
rowCol - RowCollection
size - int
selectedVal - String
Returns:
String
CMException

generateList

public static String generateList(Field fld,
                                  String attributes,
                                  String fldName,
                                  String dspFldName,
                                  RowCollection rowCol,
                                  int size,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
fld - Field
fldName - String
dspFldName - String
rowCol - RowCollection
size - int
Returns:
String
CMException

generateList

public static String generateList(Field fld,
                                  String attributes,
                                  String fldName,
                                  RowCollection rowCol,
                                  int size,
                                  int selectionMode,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
fld - Field
fldName - String
rowCol - RowCollection
size - int
selectionMode - int
Returns:
String
CMException

generateList

public static String generateList(Field fld,
                                  String attributes,
                                  String fldName,
                                  RowCollection rowCol,
                                  int size,
                                  String selectedVal,
                                  int selectionMode,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
fld - Field
fldName - String
rowCol - RowCollection
size - int
selectedVal - String
selectionMode - int
Returns:
String
CMException

generateList

public static String generateList(Field fld,
                                  String attributes,
                                  String fldName,
                                  RowCollection rowCol,
                                  int size,
                                  String selectedVal,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
fld - Field
fldName - String
rowCol - RowCollection
size - int
selectedVal - String
Returns:
String
CMException

generateList

public static String generateList(Field fld,
                                  String attributes,
                                  String fldName,
                                  RowCollection rowCol,
                                  int size,
                                  javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
                           throws CMException
Returns a String for a HTML list.

Parameters:
fld - Field
fldName - String
rowCol - RowCollection
size - int
Returns:
String
CMException

generateMagicButton

public static String generateMagicButton(String pName,
                                         String pValue,
                                         String pFormName,
                                         String pServletPath,
                                         String pAttributes,
                                         MagicRequest pRequest)
This method generates the HTML string that will construct an HTML button component that onClick will set the action of the form that contains it and sets the magic request.

Parameters:
pName - java.lang.String
pValue - java.lang.String
pFormName - java.lang.String
pServletPath - java.lang.String
pAttributes - java.lang.String
pRequest - MagicRequest
Returns:
java.lang.String

generateNavigationLink

public static String generateNavigationLink(String linkId,
                                            String body,
                                            String linkText,
                                            String title,
                                            javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
Convience method that generates a link that will load the given body into the current layout.

Parameters:
linkId - id of magic request
body - page to load for body section of layout
linkText - text to display for the generated link
title - title of the link
request - request from client
response - response to client

generateRadio

public static String generateRadio(Field fld,
                                   String attributes,
                                   javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse res)
                            throws CMException
Deprecated. replaced by HTMLInput.appendRadioButton(....)

Insert the method's description here. Creation date: (12/17/2001 8:36:57 PM)

Parameters:
fld - planetj.database.Field
attributes - java.lang.String
req - javax.servlet.http.HttpServletRequest
res - javax.servlet.http.HttpServletResponse
Returns:
java.lang.String
CMException

generateTable

public static String generateTable(Row row,
                                   javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse res)
                            throws CMException
Deprecated. This is a unused method with a bad name

CMException

getPagingLevel

public static short getPagingLevel()
Gets the paging level


generateNavigationLink

public static String generateNavigationLink(String linkId,
                                            String body,
                                            String linkText,
                                            String title,
                                            String clazz,
                                            javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
Convience method that generates a link that will load the given body into the current layout.

Parameters:
linkId - id of magic request
body - page to load for body section of layout
linkText - text to display for the generated link
title - title of the link
clazz - style class to apply to link
request - request from client
response - response to client

setPagingLevel

public static void setPagingLevel(short level)
Sets the paging level