jdplus.sql.desktop.plugin.SqlTableListCellRenderer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdplus-sql-desktop-plugin Show documentation
Show all versions of jdplus-sql-desktop-plugin Show documentation
${project.parent.artifactId} - ${project.artifactId}
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