final boolean isSelected,
final boolean cellHasFocus)
{
if (value instanceof Query)
{
Query q = (Query) value;
return super.getListCellRendererComponent(list, q.getName(), index, isSelected, cellHasFocus);
}
return super.getListCellRendererComponent(list, null, index, isSelected, cellHasFocus);
}