All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jdplus.sql.desktop.plugin.SqlTableListCellRenderer Maven / Gradle / Ivy

The newest version!
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jdplus.sql.desktop.plugin;

import jdplus.toolkit.desktop.plugin.util.SimpleHtmlCellRenderer;
import javax.swing.ListCellRenderer;
import nbbrd.design.DirectImpl;
import nbbrd.sql.jdbc.SqlTable;

/**
 *
 * @author Philippe Charles
 */
@DirectImpl
public final class SqlTableListCellRenderer implements ListCellRenderer {

    @lombok.experimental.Delegate
    private final ListCellRenderer delegate
            = new SimpleHtmlCellRenderer<>(SqlTableListCellRenderer::toHtml);

    private static String toHtml(SqlTable o) {
        return "" + o.getName() + " - " + o.getType() + "";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy