net.mlw.vlh.swing.support
Class DelegateToServiceTableSorter

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bynet.mlw.vlh.swing.support.DelegateToServiceTableSorter
All Implemented Interfaces:
Serializable, TableModel

public class DelegateToServiceTableSorter
extends AbstractTableModel

Version:
$Revision: 1.1 $ $Date: 2005/03/16 12:16:23 $
Author:
Matthew L. Wilson
See Also:
Serialized Form

Nested Class Summary
static class DelegateToServiceTableSorter.Directive
           
 
Field Summary
static int ASCENDING
           
static int DESCENDING
           
static int NOT_SORTED
           
protected  TableModel tableModel
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DelegateToServiceTableSorter()
           
DelegateToServiceTableSorter(TableModel tableModel)
           
DelegateToServiceTableSorter(TableModel tableModel, JTableHeader tableHeader)
           
 
Method Summary
 void addActionListener(ActionListener actionListener)
           
 Class getColumnClass(int column)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
protected  Icon getHeaderRendererIcon(int column, int size)
           
 int getRowCount()
           
 List getSortingColumns()
           
 int getSortingStatus(int column)
           
 JTableHeader getTableHeader()
           
 TableModel getTableModel()
           
 Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int column)
           
 boolean isSorting()
           
 void setSortingStatus(int column, int status)
           
 void setTableHeader(JTableHeader tableHeader)
           
 void setTableModel(TableModel tableModel)
           
 void setValueAt(Object aValue, int row, int column)
           
 
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

tableModel

protected TableModel tableModel

DESCENDING

public static final int DESCENDING
See Also:
Constant Field Values

NOT_SORTED

public static final int NOT_SORTED
See Also:
Constant Field Values

ASCENDING

public static final int ASCENDING
See Also:
Constant Field Values
Constructor Detail

DelegateToServiceTableSorter

public DelegateToServiceTableSorter()

DelegateToServiceTableSorter

public DelegateToServiceTableSorter(TableModel tableModel)

DelegateToServiceTableSorter

public DelegateToServiceTableSorter(TableModel tableModel,
                                    JTableHeader tableHeader)
Method Detail

getTableModel

public TableModel getTableModel()

setTableModel

public void setTableModel(TableModel tableModel)

getTableHeader

public JTableHeader getTableHeader()

setTableHeader

public void setTableHeader(JTableHeader tableHeader)

isSorting

public boolean isSorting()

getSortingStatus

public int getSortingStatus(int column)

setSortingStatus

public void setSortingStatus(int column,
                             int status)

getHeaderRendererIcon

protected Icon getHeaderRendererIcon(int column,
                                     int size)

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)

getColumnClass

public Class getColumnClass(int column)

isCellEditable

public boolean isCellEditable(int row,
                              int column)

getValueAt

public Object getValueAt(int row,
                         int column)

setValueAt

public void setValueAt(Object aValue,
                       int row,
                       int column)

addActionListener

public void addActionListener(ActionListener actionListener)

getSortingColumns

public List getSortingColumns()
Returns:
Returns the sortingColumns.


Copyright © 2003-2006 mlavilson. All Rights Reserved.