edu.cmu.hcii.calo.view.resources.ResourceListCellRenderer Class Reference

List of all members.

Detailed Description

Renders cells for the resource list.

This renderer displays the appropriate icon for the file next to the file name.

Author:
Brian Ellis


Public Member Functions

Component getListCellRendererComponent (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
 Returns the component that should be used to render the contents of the list cell.

Static Private Attributes

static final long serialVersionUID = 1L
 Prevent serialization collisions.


Member Function Documentation

Component edu.cmu.hcii.calo.view.resources.ResourceListCellRenderer.getListCellRendererComponent ( JList  list,
Object  value,
int  index,
boolean  isSelected,
boolean  cellHasFocus 
)

Returns the component that should be used to render the contents of the list cell.

In this case, we take the normal cell (which is a JLabel) and add the icon for each resource to the left of the name of the resource.

Parameters:
list the list being painted
value the Resource represented by this particular cell
index the index of this item in the list
isSelected whether the current cell is selected
cellHasFocus whether the current cell has focus


Member Data Documentation

final long edu.cmu.hcii.calo.view.resources.ResourceListCellRenderer.serialVersionUID = 1L [static, private]

Prevent serialization collisions.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:26 2007 for CALO by  doxygen 1.5.2