antsnest.level.defaults
Class RunnerProjectListRenderer
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunnerProjectListRenderer
public RunnerProjectListRenderer()
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 withvalue - what the list element holdsindex - the index of the list elementisSelected - whether the list element was selectedcellHasFocus - whether the list element has the focus
- Returns:
- a Component, the component to render