View Javadoc

1   // %764330590:hoplugins.commons.ui%
2   package hoplugins.commons.ui;
3   
4   import hoplugins.commons.ui.sorter.AbstractTableSorter;
5   
6   import java.util.Comparator;
7   
8   import javax.swing.table.JTableHeader;
9   import javax.swing.table.TableModel;
10  
11  
12  /***
13   * Default Table sorter
14   *
15   * @author <a href=mailto:draghetto@users.sourceforge.net>Massimiliano Amato</a>
16   */
17  public class DefaultTableSorter extends AbstractTableSorter {
18      //~ Constructors -------------------------------------------------------------------------------
19  
20      /***
21       * Creates a new DefaultTableSorter object.
22       */
23      public DefaultTableSorter() {
24          super();
25      }
26  
27      /***
28       * Creates a new DefaultTableSorter object.
29       *
30       * @param tableModel
31       */
32      public DefaultTableSorter(TableModel tableModel) {
33          super(tableModel);
34      }
35  
36      /***
37       * Creates a new DefaultTableSorter object.
38       *
39       * @param tableModel
40       * @param tableHeader
41       */
42      public DefaultTableSorter(TableModel tableModel, JTableHeader tableHeader) {
43          super(tableModel, tableHeader);
44      }
45  
46      //~ Methods ------------------------------------------------------------------------------------
47  
48      /***
49       * DOCUMENT ME!
50       *
51       * @param column
52       *
53       * @return
54       */
55      public Comparator getCustomComparator(int column) {
56          return null;
57      }
58  
59      /***
60       * DOCUMENT ME!
61       *
62       * @return
63       */
64      public boolean hasHeaderLine() {
65          return false;
66      }
67  
68      /***
69       * DOCUMENT ME!
70       *
71       * @return
72       */
73      public int minSortableColumn() {
74          return 0;
75      }
76  }