AnnotationTableModel:使用带注释的 POJO 的 Swing Table 模型

时间:2021-07-10 14:44:24
【文件属性】:
文件名称:AnnotationTableModel:使用带注释的 POJO 的 Swing Table 模型
文件大小:32KB
文件格式:ZIP
更新时间:2021-07-10 14:44:24
Java 注解表模型 这是一个可定制的通用表模型类,可用于在注释的帮助下将 POJO 转换为 JTable。 ##Example Senario: 有几个域类(客户、订单等)应该在 java swing 应用程序中表示为表。 在一般情况下,必须为每个表/域类编写表模型。 使用通用表模型类,只需向域类添加简单的注释即可将所有域类转换为表,如下所示。 package com.swing.example.domain ; import com.swing.table.ColumnName ; public class Customer { @ColumnName ( i18nKey = " Customer ID " ) private int id; @ColumnName ( i18nKey = " Customer Name " ) private String name; @Co
【文件预览】:
AnnotationTableModel-master
----.gitignore(851B)
----images()
--------exampleTable.jpg(15KB)
----src()
--------main()
--------test()
----.classpath(678B)
----.settings()
--------org.eclipse.jdt.core.prefs(587B)
----pom.xml(1KB)
----java()
--------com()
----README.md(2KB)
----target()
--------.gitignore(23B)
--------maven-archiver()
--------surefire-reports()
----.project(414B)
----.gitattributes(483B)

网友评论