wt.workflow.work
Class WfHtmlFormat

java.lang.Object
  extended bywt.workflow.work.WfHtmlFormat

public class WfHtmlFormat
extends Object


Field Summary
static String BLANK_SPACE
           
private static String CHECKOUT_AND_EDIT_GIF
           
protected static String CODEBASE
           
private static String CONTENT_GIF
           
protected static String fontHeader
           
private static String FORUM_GIF
           
private static String FORUM_RESOURCE
           
private static String INFO_GIF
           
private static boolean PDML_PROI
           
private static String RESOURCE
           
protected static String t1bgcolhead
           
protected static String t1bgevenrow
           
protected static String t1fcolhead
           
protected static String TABLE_ATTRIBUTES
           
protected static String TABLE_DATA_ATTRIBUTES
           
protected static String TABLE_DATA_FONT
           
protected static String TABLE_HEAD_ATTRIBUTES
           
protected static String TABLE_HEAD_FONT
           
protected static String tableEvenRow
          HTML formatting styles
protected static String tableHeader
           
private static boolean VERBOSE
           
 
Constructor Summary
WfHtmlFormat()
           
 
Method Summary
static String columnLabel(String label)
          Create a string of html to display a table column header with the specified label text.
static String createActionButton(String buttonName, String buttonLabel)
          Outputs a string containing the html to present a button (control type = "submit") with the supplied name & label
static String createObjectLink(WTObject myObject)
          Outputs a string containing a html link to the object properties page of the specified object
static String createObjectLink(WTObject myObject, String params)
          Outputs a string containing a html link to the object properties page of the specified object
static String createObjectLink(WTObject myObject, String params, Locale locale)
          Outputs a string containing a html link to the object properties page of the specified object
static String createObjectLinkNoImage(WTObject myObject, String params)
          Outputs a string containing a html link to the object properties page of the specified object but without the imageTag.
static String createObjectLinkNoImage(WTObject myObject, String params, Locale locale)
          Outputs a string containing a html link to the object properties page of the specified object but without the imageTag
static String createObjectLinkNoImage(WTObject myObject, String params, Locale locale, WTContainerRef context_ref)
           
static String createPDMLinkObjectLink(WTObject myObject, String params, Locale locale)
          Outputs a string containing a html link to the object properties page of the specified object
static String tableCell(Object text)
          Create a string of html to display a table cellr with the specified label text.
static String tableCell(Object text, int rowSpan)
          Create a string of html to display a table cellr with the specified label text.
static String tableCellBold(Object text, int rowSpan)
          Create a string of html to display a table cellr with the specified label text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static boolean VERBOSE

CODEBASE

protected static String CODEBASE

PDML_PROI

private static boolean PDML_PROI

FORUM_RESOURCE

private static final String FORUM_RESOURCE
See Also:
Constant Field Values

tableEvenRow

protected static final String tableEvenRow
HTML formatting styles

See Also:
Constant Field Values

tableHeader

protected static final String tableHeader
See Also:
Constant Field Values

fontHeader

protected static final String fontHeader
See Also:
Constant Field Values

t1bgevenrow

protected static final String t1bgevenrow

t1bgcolhead

protected static final String t1bgcolhead

t1fcolhead

protected static final String t1fcolhead

TABLE_ATTRIBUTES

protected static final String TABLE_ATTRIBUTES
See Also:
Constant Field Values

TABLE_HEAD_ATTRIBUTES

protected static final String TABLE_HEAD_ATTRIBUTES
See Also:
Constant Field Values

TABLE_HEAD_FONT

protected static final String TABLE_HEAD_FONT
See Also:
Constant Field Values

TABLE_DATA_ATTRIBUTES

protected static final String TABLE_DATA_ATTRIBUTES

TABLE_DATA_FONT

protected static final String TABLE_DATA_FONT
See Also:
Constant Field Values

BLANK_SPACE

public static final String BLANK_SPACE
See Also:
Constant Field Values

CONTENT_GIF

private static String CONTENT_GIF

CHECKOUT_AND_EDIT_GIF

private static String CHECKOUT_AND_EDIT_GIF

FORUM_GIF

private static String FORUM_GIF

INFO_GIF

private static String INFO_GIF

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values
Constructor Detail

WfHtmlFormat

public WfHtmlFormat()
Method Detail

columnLabel

public static String columnLabel(String label)
                          throws WTException
Create a string of html to display a table column header with the specified label text.

Parameters:
label - Text displayed on column header.
Returns:
The generated html to create a button control as a String
Throws:
WTException

tableCell

public static String tableCell(Object text)
                        throws WTException
Create a string of html to display a table cellr with the specified label text.

Parameters:
text - Text displayed on column header.
Returns:
The generated html to create a button control as a String
Throws:
WTException

tableCell

public static String tableCell(Object text,
                               int rowSpan)
                        throws WTException
Create a string of html to display a table cellr with the specified label text.

Parameters:
text - Text displayed on column header.
Returns:
The generated html to create a button control as a String
Throws:
WTException

tableCellBold

public static String tableCellBold(Object text,
                                   int rowSpan)
                            throws WTException
Create a string of html to display a table cellr with the specified label text.

Parameters:
text - Text displayed on column header.
Returns:
The generated html to create a button control as a String
Throws:
WTException

createActionButton

public static String createActionButton(String buttonName,
                                        String buttonLabel)
                                 throws WTException
Outputs a string containing the html to present a button (control type = "submit") with the supplied name & label

Parameters:
buttonName - Name associated with this button control when the form is submitted
buttonLabel - Text displayed on the form button.
Returns:
The generated html to create a button control as a String
Throws:
WTException

createObjectLink

public static String createObjectLink(WTObject myObject)
                               throws WTException
Outputs a string containing a html link to the object properties page of the specified object

Parameters:
myObject - Ojbect to create a link to
Returns:
Html link to myObject
Throws:
WTException

createObjectLink

public static String createObjectLink(WTObject myObject,
                                      String params)
                               throws WTException
Outputs a string containing a html link to the object properties page of the specified object

Parameters:
myObject - Object to create a link to
Returns:
Html link to myObject
Throws:
WTException

createObjectLink

public static String createObjectLink(WTObject myObject,
                                      String params,
                                      Locale locale)
                               throws WTException
Outputs a string containing a html link to the object properties page of the specified object

Parameters:
myObject - Ojbect to create a link to
locale - the client locale
Returns:
Html link to myObject
Throws:
WTException

createPDMLinkObjectLink

public static String createPDMLinkObjectLink(WTObject myObject,
                                             String params,
                                             Locale locale)
                                      throws WTException
Outputs a string containing a html link to the object properties page of the specified object

Parameters:
myObject - Ojbect to create a link to
locale - the client locale
Returns:
Html link to myObject
Throws:
WTException

createObjectLinkNoImage

public static String createObjectLinkNoImage(WTObject myObject,
                                             String params)
                                      throws WTException
Outputs a string containing a html link to the object properties page of the specified object but without the imageTag. Uses the server locale for the object's identity

Parameters:
myObject - Object to create a link to
params - optional link parameters
Returns:
Html link to myObject
Throws:
WTException

createObjectLinkNoImage

public static String createObjectLinkNoImage(WTObject myObject,
                                             String params,
                                             Locale locale)
                                      throws WTException
Outputs a string containing a html link to the object properties page of the specified object but without the imageTag

Parameters:
myObject - Object to create a link to
params - optional link parameters
locale - Locale for displayed strings
Returns:
Html link to myObject
Throws:
WTException

createObjectLinkNoImage

public static String createObjectLinkNoImage(WTObject myObject,
                                             String params,
                                             Locale locale,
                                             WTContainerRef context_ref)
                                      throws WTException
Throws:
WTException