public class SortableHeaderRenderer extends Object implements TableCellRenderer
Modifier and Type | Class and Description |
---|---|
private static class |
SortableHeaderRenderer.Arrow |
private static class |
SortableHeaderRenderer.Directive |
private class |
SortableHeaderRenderer.MouseHandler |
Modifier and Type | Field and Description |
---|---|
static int |
ASCENDING |
static int |
DESCENDING |
private static SortableHeaderRenderer.Directive |
EMPTY_DIRECTIVE |
private ColumnSorter |
model |
static int |
NOT_SORTED |
private List |
sortingColumns |
private JTable |
table |
private TableCellRenderer |
tableCellRenderer |
Constructor and Description |
---|
SortableHeaderRenderer(JTable table,
ColumnSorter model) |
Modifier and Type | Method and Description |
---|---|
private void |
cancelSorting() |
private SortableHeaderRenderer.Directive |
getDirective(int column) |
protected Icon |
getHeaderRendererIcon(int column,
int size) |
int |
getSortingStatus(int column) |
private String |
getStatusString(int status) |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) |
void |
setSortingStatus(int column,
int status) |
private void |
sortingStatusChanged() |
public static final int DESCENDING
public static final int NOT_SORTED
public static final int ASCENDING
private TableCellRenderer tableCellRenderer
private ColumnSorter model
private List sortingColumns
private static SortableHeaderRenderer.Directive EMPTY_DIRECTIVE
public SortableHeaderRenderer(JTable table, ColumnSorter model)
private void cancelSorting()
private void sortingStatusChanged()
public void setSortingStatus(int column, int status)
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
public int getSortingStatus(int column)
protected Icon getHeaderRendererIcon(int column, int size)
private SortableHeaderRenderer.Directive getDirective(int column)
private String getStatusString(int status)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses