public java.awt.Component | getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
final long trackId;
if (value instanceof TrackBox) {
TrackBox trackBox = ((TrackBox) value);
trackId = trackBox.getTrackHeaderBox().getTrackId();
} else {
TrackFragmentBox traf = ((TrackFragmentBox) value);
trackId = traf.getTrackFragmentHeaderBox().getTrackId();
}
value = "Track " + trackId;
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
return this;
|