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

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

Inheritance diagram for org::netbeans::lib::profiler::ui::components::table::SortableTableModel:

org::netbeans::lib::profiler::ui::components::table::ExtendedTableModel

List of all members.


Detailed Description

This class provides a superclass, from which Table Models can be derived, that will support sorting by a column on which the user clicks. A subclass should call setTable(table), and should provide an implementation of the sortByColumn(int column) method.

Author:
Misha Dmitriev

Jiri Sedlacek

Definition at line 62 of file SortableTableModel.java.


Public Member Functions

String getColumnToolTipText (int column)
abstract boolean getInitialSorting (int column)
int getSortingColumn ()
boolean getSortingOrder ()
void setInitialSorting (int sortingColumn, boolean sortingOrder)
void setTable (JTable table)
abstract void sortByColumn (int column, boolean order)

Static Public Attributes

static final boolean SORT_ORDER_ASC = true
static final boolean SORT_ORDER_DESC = false

Private Attributes

HeaderListener headerListener
CustomSortableHeaderRenderer headerRenderer
int lastFocusedColumn = -1
ImageIcon sortAscIcon = new ImageIcon(SortableTableModel.class.getResource("/org/netbeans/lib/profiler/ui/resources/sortAsc.png"))
ImageIcon sortDescIcon = new ImageIcon(SortableTableModel.class.getResource("/org/netbeans/lib/profiler/ui/resources/sortDesc.png"))
JTableHeader tableHeader

Classes

class  HeaderListener

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

Generated by  Doxygen 1.6.0   Back to index