Logo Search packages:      
Sourcecode: visualvm version File versions  Download package

org::netbeans::lib::profiler::ui::components::table::CustomSortableHeaderRenderer Class Reference

Inherits javax::swing::table::TableCellRenderer.

List of all members.


Detailed Description

This class is used for rendering the JTable header. It also holds information about current sorting column and sorting order. The column header is rendered by the JButton using the appropriate icon.
Author:
Jiri Sedlacek

Definition at line 53 of file CustomSortableHeaderRenderer.java.


Public Member Functions

 CustomSortableHeaderRenderer (ImageIcon asc, ImageIcon desc)
int getPressedColumn ()
int getSortingColumn ()
boolean getSortingOrder ()
Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
void reverseSortingOrder ()
void setPressedColumn (int column)
void setSortingColumn (int column)
void setSortingOrder (boolean order)

Private Attributes

ImageIcon ascIcon
ImageIcon descIcon
int pressedColumn = -1
int sortingColumn = -1
boolean sortOrder = SortableTableModel.SORT_ORDER_DESC

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index