|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
ucar.unidata.ui.TableSorter
public class TableSorter
Class TableSorter _more_
| Field Summary | |
|---|---|
static int |
ASCENDING
_more_ |
static Comparator |
COMPARABLE_COMAPRATOR
_more_ |
static int |
DESCENDING
_more_ |
static Comparator |
LEXICAL_COMPARATOR
_more_ |
static int |
NOT_SORTED
_more_ |
protected TableModel |
tableModel
_more_ |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
TableSorter()
_more_ |
|
TableSorter(TableModel tableModel)
_more_ |
|
TableSorter(TableModel tableModel,
JTableHeader tableHeader)
_more_ |
|
| Method Summary | |
|---|---|
Class |
getColumnClass(int column)
_more_ |
int |
getColumnCount()
_more_ |
String |
getColumnName(int column)
_more_ |
protected Comparator |
getComparator(int column)
_more_ |
protected Icon |
getHeaderRendererIcon(int column,
int size)
_more_ |
int |
getRowCount()
_more_ |
int |
getSortingStatus(int column)
_more_ |
JTableHeader |
getTableHeader()
_more_ |
TableModel |
getTableModel()
_more_ |
Object |
getValueAt(int row,
int column)
_more_ |
boolean |
isCellEditable(int row,
int column)
_more_ |
boolean |
isSorting()
_more_ |
int |
modelIndex(int viewIndex)
_more_ |
void |
setColumnComparator(Class type,
Comparator comparator)
_more_ |
void |
setSortingStatus(int column,
int status)
_more_ |
void |
setTableHeader(JTableHeader tableHeader)
_more_ |
void |
setTableModel(TableModel tableModel)
_more_ |
void |
setValueAt(Object aValue,
int row,
int column)
_more_ |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TableModel tableModel
public static final int DESCENDING
public static final int NOT_SORTED
public static final int ASCENDING
public static final Comparator COMPARABLE_COMAPRATOR
public static final Comparator LEXICAL_COMPARATOR
| Constructor Detail |
|---|
public TableSorter()
public TableSorter(TableModel tableModel)
tableModel - _more_
public TableSorter(TableModel tableModel,
JTableHeader tableHeader)
tableModel - _more_tableHeader - _more_| Method Detail |
|---|
public TableModel getTableModel()
public void setTableModel(TableModel tableModel)
tableModel - _more_public JTableHeader getTableHeader()
public void setTableHeader(JTableHeader tableHeader)
tableHeader - _more_public boolean isSorting()
public int getSortingStatus(int column)
column - _more_
public void setSortingStatus(int column,
int status)
column - _more_status - _more_
protected Icon getHeaderRendererIcon(int column,
int size)
column - _more_size - _more_
public void setColumnComparator(Class type,
Comparator comparator)
type - _more_comparator - _more_protected Comparator getComparator(int column)
column - _more_
public int modelIndex(int viewIndex)
viewIndex - _more_
public int getRowCount()
public int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - _more_
public Class getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumn - _more_
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrow - _more_column - _more_
public Object getValueAt(int row,
int column)
row - _more_column - _more_
public void setValueAt(Object aValue,
int row,
int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelaValue - _more_row - _more_column - _more_
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||