File: SortableRenderer.java

package info (click to toggle)
libglazedlists-java 1.9.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,024 kB
  • ctags: 4,252
  • sloc: java: 22,561; xml: 818; sh: 51; makefile: 5
file content (27 lines) | stat: -rw-r--r-- 1,010 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Glazed Lists                                                 (c) 2003-2006 */
/* http://publicobject.com/glazedlists/                      publicobject.com,*/
/*                                                     O'Dell Engineering Ltd.*/
package ca.odell.glazedlists.swing;

import javax.swing.*;

/**
 * This interface is intended to be implemented by custom TableCellRenderers
 * installed on the JTableHeader of a sortable JTable. The custom renderer
 * need only implement this interface and it will be notified of the
 * appropriate sorting icon immediately before the renderer is asked to provide
 * a component.
 *
 * @author James Lemieux
 */
public interface SortableRenderer {

    /**
     * Sets the icon to display in order to indicate sorting direction or
     * <code>null</code> if no sorting is taking place.
     *
     * @param sortIcon the Icon indicating the sort direction or
     *      <code>null</code> if there is not sorting
     */
    public void setSortIcon(Icon sortIcon);
}