nextapp.echo
Class DefaultListCellRenderer

java.lang.Object
  extended by nextapp.echo.DefaultListCellRenderer
All Implemented Interfaces:
java.io.Serializable, ListCellRenderer

public class DefaultListCellRenderer
extends java.lang.Object
implements ListCellRenderer, java.io.Serializable

The default ListCellRenderer implementation.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface nextapp.echo.ListCellRenderer
ListCellRenderer.StyledListCell
 
Field Summary
static DefaultListCellRenderer DEFAULT_LIST_CELL_RENDERER
           
 
Constructor Summary
DefaultListCellRenderer()
           
 
Method Summary
 java.lang.Object getListCellRendererComponent(Component list, java.lang.Object value, int index)
          Renders an item in a list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LIST_CELL_RENDERER

public static final DefaultListCellRenderer DEFAULT_LIST_CELL_RENDERER
Constructor Detail

DefaultListCellRenderer

public DefaultListCellRenderer()
Method Detail

getListCellRendererComponent

public java.lang.Object getListCellRendererComponent(Component list,
                                                     java.lang.Object value,
                                                     int index)
Description copied from interface: ListCellRenderer
Renders an item in a list.

Specified by:
getListCellRendererComponent in interface ListCellRenderer
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.
See Also:
ListCellRenderer.getListCellRendererComponent(nextapp.echo.Component, java.lang.Object, int)