public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { if( value instanceof CompletionQuery.ResultItem ) { return ((CompletionQuery.ResultItem)value).getPaintComponent( list, isSelected, cellHasFocus ); } else { return defaultRenderer.getListCellRendererComponent( list, value, index, isSelected, cellHasFocus); } }
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { if (value instanceof CompletionQuery.ResultItem) { return ((CompletionQuery.ResultItem) value).getPaintComponent(list, isSelected, cellHasFocus); } else { return defaultRenderer.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); } } }
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { if( value instanceof CompletionQuery.ResultItem ) { return ((CompletionQuery.ResultItem)value).getPaintComponent( list, isSelected, cellHasFocus ); } else { return defaultRenderer.getListCellRendererComponent( list, value, index, isSelected, cellHasFocus); } } }