antsnest.level.defaults
Class RunnerProjectListRenderer

java.lang.Object
  extended by antsnest.level.defaults.RunnerProjectListRenderer
All Implemented Interfaces:
ListCellRenderer

public class RunnerProjectListRenderer
extends Object
implements ListCellRenderer

Responsible for how the list is rendered

Author:
Chris Clohosy

Constructor Summary
RunnerProjectListRenderer()
           
 
Method Summary
 Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
          Actually constructs the component to display in the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunnerProjectListRenderer

public RunnerProjectListRenderer()
Method Detail

getListCellRendererComponent

public Component getListCellRendererComponent(JList list,
                                              Object value,
                                              int index,
                                              boolean isSelected,
                                              boolean cellHasFocus)
Actually constructs the component to display in the list

Specified by:
getListCellRendererComponent in interface ListCellRenderer
Parameters:
list - the list that we are concerned with
value - what the list element holds
index - the index of the list element
isSelected - whether the list element was selected
cellHasFocus - whether the list element has the focus
Returns:
a Component, the component to render