Formatting cells

The CellRenderer class includes a number of styles that let you control the format of the cell.

The following styles let you define the skins used for the different states of the cell (disabled, down, over, and up):

The following styles apply to the text formatting:

You can set these styles by calling the setRendererStyle() method of the List object or by calling the setStyle() method of the CellRenderer object. You can get these styles by calling the getRendererStyle() method of the List object or by calling the setStyle() method of the CellRenderer object. You can also access an object that defines all renderer styles (as named properties of the object) via the rendererStyles property of the List object or the getStyleDefinition() method of the CellRenderer object.

You can call the clearRendererStyle() method to reset a style to its default value.

To get or set the height of the rows in the list, use the rowHeight property of the List object.