fuego.workspace.model.view
Interface WorkListDecorator


public interface WorkListDecorator

You need to implement this interface to customize the appearance of the rows and/or cells in the Work List panel table. The class implementing this interface should contain the logic to decide how to render a row or a cell in the Work List panel. This logic is based on the instance information.The methods getCellStyle() and getCellValue() define how to render the cells of the Work List panel table. The method getRowStyle() defines the style used to render a complete row.


Method Summary
 java.lang.String getCellStyle(java.lang.String viewId, InstanceInfo instanceInfo, Presentation.Column column, int rowIndex)
          Returns a String containing the CSS inline style to render the cell of the given column and row.
 java.lang.String getRowStyle(java.lang.String viewId, InstanceInfo instanceInfo, int rowIndex)
          Returns the CSS inline style for the given row.
 java.lang.String getValue(java.lang.String viewId, InstanceInfo instanceInfo, Presentation.Column column, java.util.Locale locale, java.lang.String originalValue, int rowIndex)
          Returns the HTML for the given cell value.
 

Method Detail

getRowStyle

java.lang.String getRowStyle(java.lang.String viewId,
                             InstanceInfo instanceInfo,
                             int rowIndex)
Returns the CSS inline style for the given row. If the method returns NULL the original style is applied. Example
The following String is an example of a valid return value: "background-color:#FFC6BF;"

Parameters:
viewId - The ID of the view assigned to the Work List Panel.
instanceInfo - The InstanceInfo object that represents the rendered instance.
rowIndex - The index of the rendered row.
Returns:
The CSS inline style for the given row.

getCellStyle

java.lang.String getCellStyle(java.lang.String viewId,
                              InstanceInfo instanceInfo,
                              Presentation.Column column,
                              int rowIndex)
Returns a String containing the CSS inline style to render the cell of the given column and row. If the return value is null the cell is rendered with Oracle BPM WorkSpace default style. Example
The following String is an example of a valid return value: "border:1px solid black;"

Parameters:
viewId - The ID of the view assigned to the Work List Panel.
instanceInfo - The InstanceInfo object that represents the rendered instance.
column - The Presentation.Column object that represents the rendered column.
rowIndex - The index of the rendered row.
Returns:
The CSS inline style for the cell of the given column and row.

getValue

java.lang.String getValue(java.lang.String viewId,
                          InstanceInfo instanceInfo,
                          Presentation.Column column,
                          java.util.Locale locale,
                          java.lang.String originalValue,
                          int rowIndex)
Returns the HTML for the given cell value. If the method returns NULL the original value is rendered.

Parameters:
viewId - The ID of the view assigned to the Work List Panel.
instanceInfo - The InstanceInfo object that represents the rendered instance.
column - The Presentation.Column object that represents the rendered column.
locale - The user locale.
originalValue - The original HTML value.
rowIndex - The index of the rendered row.
Returns:
The HTML Oracle BPM WorkSpace uses to display the given cell value.