001 /* 002 * JUserTable.java 003 * 004 * Created on 12. Juni 2001, 17:30 005 */ 006 007 package users.swing; 008 009 import javax.swing.*; 010 011 import java.util.Comparator; 012 013 import users.*; 014 015 import util.swing.*; 016 017 /** 018 * A {@link JTable} for displaying and editing the contents of a {@link UserManager}. 019 * 020 * @author Thomas Medack 021 * @version 3.0 12/06/2001 022 * @since v3.0 023 */ 024 public class JUserTable extends util.swing.JAbstractTable { 025 026 /** 027 * ID for serialization. 028 */ 029 private static final long serialVersionUID = 8872416686113146625L; 030 031 /** 032 * Create a new JUserTable. 033 * 034 * @param u the UserManager to be displayed. 035 * @param cmp a Comparator defining the sort order. If <code>null</code>, the Users are ordered in 036 * their natural order. 037 * @param ted a TableEntryDescriptor that can split CatalogItems into a table's cells. 038 */ 039 public JUserTable(UserManager u, Comparator<User> cmp, TableEntryDescriptor ted) { 040 041 super(new UserTableModel(u, cmp, ted)); 042 } 043 }