// Path: src/main/java/comeon/ui/preferences/BaseListCellRenderer.java
// public abstract class BaseListCellRenderer<T> extends DefaultListCellRenderer {
// 
//     private static final long serialVersionUID = 1L;
// 
//     @Override
//     public final Component getListCellRendererComponent(final JList<? extends Object> list, final Object value,
//                                                         final int index, final boolean isSelected,
//                                                         final boolean cellHasFocus) {
//         super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
//         this.setFont(this.getFont().deriveFont(Font.PLAIN));
//         this.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
//         @SuppressWarnings("unchecked")
//         final T v = (T) value;
//         this.customizeComponent(v);
//         return this;
//     }
// 
//     protected abstract void customizeComponent(final T value);
// }


import comeon.ui.preferences.BaseListCellRenderer;
package comeon.ui.preferences.templates;


public final class TemplateListCellRenderer extends BaseListCellRenderer<TemplateModel> {

    private static final long serialVersionUID = 1L;

    private static final String TEMPLATE = "<html><strong>%1$s</strong><br/><em>%2$s</em></html>";

// Path: src/main/java/comeon/ui/preferences/BaseListCellRenderer.java
// public abstract class BaseListCellRenderer<T> extends DefaultListCellRenderer {
// 
//     private static final long serialVersionUID = 1L;
// 
//     @Override
//     public final Component getListCellRendererComponent(final JList<? extends Object> list, final Object value,
//                                                         final int index, final boolean isSelected,
//                                                         final boolean cellHasFocus) {
//         super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
//         this.setFont(this.getFont().deriveFont(Font.PLAIN));
//         this.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
//         @SuppressWarnings("unchecked")
//         final T v = (T) value;
//         this.customizeComponent(v);
//         return this;
//     }
// 
//     protected abstract void customizeComponent(final T value);
// }


// Path: src/main/java/comeon/ui/preferences/templates/TemplateListCellRenderer.java
import comeon.ui.preferences.BaseListCellRenderer;

package comeon.ui.preferences.templates;


public final class TemplateListCellRenderer extends BaseListCellRenderer<TemplateModel> {

    private static final long serialVersionUID = 1L;

    private static final String TEMPLATE = "<html><strong>%1$s</strong><br/><em>%2$s</em></html>";

    @Override