nextapp.echo
Interface ListCellRenderer

All Known Implementing Classes:
DefaultListCellRenderer

public interface ListCellRenderer

Renders an item in a list.


Nested Class Summary
static interface ListCellRenderer.StyledListCell
          A representation of a rendererd item within a list that conatins color and font information.
 
Method Summary
 java.lang.Object getListCellRendererComponent(Component list, java.lang.Object value, int index)
          Renders an item in a list.
 

Method Detail

getListCellRendererComponent

java.lang.Object getListCellRendererComponent(Component list,
                                              java.lang.Object value,
                                              int index)
Renders an item in a list.

Parameters:
list - The list component, e.g. a SelectField or ListBox.
value - The value of the list itme.
index - The index of the item in the list.
Returns:
A rendered form of the list cell. Stylistic properties may be provided by returning an object which implements StyledListCell.