com.waveset.workflow
Class ResultFormatter

java.lang.Object
  extended bycom.waveset.ui.util.html.Component
      extended bycom.waveset.ui.util.html.WavesetResultFormatter
          extended bycom.waveset.ui.util.html.TaskResultFormatter
              extended bycom.waveset.workflow.ResultFormatter
All Implemented Interfaces:
java.lang.Cloneable

public class ResultFormatter
extends com.waveset.ui.util.html.TaskResultFormatter

An object that renders the contents of a WavesetResult object in HTML Originally part of WavesetResultForm but broken out so it can be used in places that want to emit their own container HTML. We already inherit the _errors and _messages fields from AbstractForm.


Field Summary
static java.lang.String code_id
           
 
Fields inherited from class com.waveset.ui.util.html.WavesetResultFormatter
LOC_BOTTOM, LOC_BUTTON, LOC_MIDDLE, LOC_TOP
 
Fields inherited from class com.waveset.ui.util.html.Component
_trace, DEFAULT_PACKAGE, ELEMENT, INVALID_PREFIX, INVALID_SUFFIX, trace
 
Constructor Summary
ResultFormatter()
           
 
Method Summary
 java.lang.String getWorkItemReport(com.waveset.ui.util.html.Renderer r, WFCase wfcase)
          Build a document containing information about the active work items associated with this workflow.
 void toHTML(com.waveset.ui.util.html.Renderer b)
           
 
Methods inherited from class com.waveset.ui.util.html.TaskResultFormatter
getTask, setTask
 
Methods inherited from class com.waveset.ui.util.html.WavesetResultFormatter
addJavascript, isSuppressReports, render, setHangingHeaders, setIndent, setResult, setSuppressReports, setTrailingDivider, setUseBullets
 
Methods inherited from class com.waveset.ui.util.html.Component
addCommonAttributes, addCommonTableCellAttributes, addError, addErrors, addToAllowedValues, addToAllowedValues, checkValue, clone, convertMemento, decodeCommaString, encodeCommaString, getAlignment, getAllowedValues, getColspan, getCommand, getErrors, getGlobalProperties, getHelp, getHelpKey, getInlineHelp, getLocation, getMemento, getMemento, getMementoClass, getMementos, getName, getOnChange, getOnClick, getParent, getPostData, getPreSubmitJavascriptMethod, getPrimaryKey, getProperty, getRowspan, getString, getStringValue, getStringValue, getStyle, getTitle, getTitleOrName, getValign, getValue, getWidth, isAllowed, isDisabled, isHidden, isInvisible, isNoNewRow, isNoWrap, isRequired, isTrue, println, removeInvalidMarkers, setAlign, setAlignment, setAllowedValues, setAllowedValues, setAllowedValues, setColspan, setCommand, setDisabled, setEnabled, setErrors, setHelp, setHelpKey, setHtmlFormName, setInlineHelp, setInvisible, setLocation, setName, setNoNewRow, setNoWrap, setOnChange, setOnClick, setParent, setPrimaryKey, setPrompt, setProperty, setRequired, setRowHold, setRowspan, setStyle, setTitle, setTrace, setValign, setValue, setWidth, storePostData, toHTML, toList
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

ResultFormatter

public ResultFormatter()
Method Detail

toHTML

public void toHTML(com.waveset.ui.util.html.Renderer b)
            throws WavesetException
Throws:
WavesetException

getWorkItemReport

public java.lang.String getWorkItemReport(com.waveset.ui.util.html.Renderer r,
                                          WFCase wfcase)
                                   throws WavesetException
Build a document containing information about the active work items associated with this workflow. Originally the diagram was included in the report, now it is handled as a seperate subcomponent. Since this report is simple and we're going to display it immediately, we could save some time and just generate the desired HTML, but this is easier. NOTE: The Report component will be used to convert the into HTML, it will perform localization on some of the report content such as titles and column headers. Arbitrary text enclosed in

will not however be localized, so if you need to include localized text, you will have to localize it here.

Throws:
WavesetException