uic.widgets.filechooser
Class FileChooser.FileFilterListCellRenderer

java.lang.Object
  extended by uic.widgets.TwoColorListCellRenderer
      extended by uic.widgets.filechooser.FileChooser.FileFilterListCellRenderer
All Implemented Interfaces:
ListCellRenderer
Enclosing class:
FileChooser

protected static class FileChooser.FileFilterListCellRenderer
extends TwoColorListCellRenderer

Paint the FileFilters description in the filters combobox and list.


Constructor Summary
protected FileChooser.FileFilterListCellRenderer()
           
 
Method Summary
 Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
          Override to provide the FileFilters description instead of its toString
 
Methods inherited from class uic.widgets.TwoColorListCellRenderer
isPaintFocus, setEvenRowColor, setOddRowColor, setPaintFocus, setSelectedBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooser.FileFilterListCellRenderer

protected FileChooser.FileFilterListCellRenderer()
Method Detail

getListCellRendererComponent

public Component getListCellRendererComponent(JList list,
                                              Object value,
                                              int index,
                                              boolean isSelected,
                                              boolean cellHasFocus)
Override to provide the FileFilters description instead of its toString

Specified by:
getListCellRendererComponent in interface ListCellRenderer
Overrides:
getListCellRendererComponent in class TwoColorListCellRenderer


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence