Customizing the Work Items Panel Appearance

You can change the appearance of the rows and cells that make up the Work Items panel, based on the instance information that corresponds to each row.

You might want to change the colors and fonts of a cell or a row to draw attention to the work items that match a certain condition. WorkSpace provides a Java interface that you can implement to achieve this.

This interface allows you to:

Each of the methods of this interface receives a parameter of the type fuego.papi.InstanceInfo, that contains information about the work item. You can obtain work item information from this object, and based on it render the rows, cells or external variables values.

For information on how to compile and register this class, see Changing the Appearance of Work Item Panel Based on the Work Item Information.

For a reference of the WorkListDecorator interface, see Interface WorkListDecorator Reference.

Changing the Style of a Cell or a Row Based on the Work Item Information

The following list shows examples of situations where you might need to change the style of a row or a cell:
  • To display a red background for all the work items that are overdue
  • To decrease the font size of the Description field to accommodate long descriptions
  • To change the font color for unassigned work items

To change the style of a cell you must implement the method getCellStyle of the interface WorkListDecorator.

To change the style of a row you must implement the method getRowStyle of the interface WorkListDecorator.

These two methods return a String containing a CSS inline style. This style is used to render the corresponding cell or row.

Changing How a Value is Rendered

The interface WorkListDecorator provides a method that returns the HTML used to render the value of a variable.

Being able to change the HTML allows you not only to use an icon to display the value of the external variables, but you could also add the HTML code to add a button that looks up the content of the variable in a search engine.

To change the HTML used to render the value of a variable, you must implement the method getValue of the interface WorkListDecorator.