de.hattrickorganizer.gui.utils
Class TableSorter

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by de.hattrickorganizer.gui.utils.TableMap
          extended by de.hattrickorganizer.gui.utils.TableSorter
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.swing.event.TableModelListener, javax.swing.table.TableModel

public class TableSorter
extends TableMap

TODO Missing Class Documentation

Author:
TODO Author Name
See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.hattrickorganizer.gui.utils.TableMap
model
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TableSorter()
          Creates a new TableSorter object.
TableSorter(javax.swing.table.TableModel tablemodel, int idSpalte, int initsortcolumnindex)
          Creates a new TableSorter object.
 
Method Summary
 void addMouseListenerToHeaderInTable(javax.swing.JTable jtable)
          TODO Missing Method Documentation
 int compare(int i, int j)
          TODO Missing Method Documentation
 int getRow4Match(int matchid)
          TODO Missing Method Documentation
 int getRow4Spieler(int spielerid)
          TODO Missing Method Documentation
 ScoutEintrag getScoutEintrag(int row)
          TODO Missing Method Documentation
 Spieler getSpieler(int row)
          TODO Missing Method Documentation
 java.lang.Object getValueAt(int i, int j)
          TODO Missing Method Documentation
 void initsort()
          Sortierung am Anfang beim Erstellen der Tabelle und bei Modeländerungen
 void reallocateIndexes()
          TODO Missing Method Documentation
 void setModel(javax.swing.table.TableModel tablemodel)
          TODO Missing Method Documentation
 void setValueAt(java.lang.Object obj, int i, int j)
          TODO Missing Method Documentation
 void shuttlesort(int[] ai, int[] ai1, int i, int j)
          TODO Missing Method Documentation
 void tableChanged(javax.swing.event.TableModelEvent tablemodelevent)
          TODO Missing Method Documentation
 
Methods inherited from class de.hattrickorganizer.gui.utils.TableMap
getColumnClass, getColumnCount, getColumnName, getModel, getRowCount, isCellEditable
 
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
 

Constructor Detail

TableSorter

public TableSorter()
Creates a new TableSorter object.


TableSorter

public TableSorter(javax.swing.table.TableModel tablemodel,
                   int idSpalte,
                   int initsortcolumnindex)
Creates a new TableSorter object.

Parameters:
tablemodel - TODO Missing Constructuor Parameter Documentation
idSpalte - TODO Missing Constructuor Parameter Documentation
initsortcolumnindex - TODO Missing Constructuor Parameter Documentation
Method Detail

setModel

public final void setModel(javax.swing.table.TableModel tablemodel)
TODO Missing Method Documentation

Overrides:
setModel in class TableMap
Parameters:
tablemodel - TODO Missing Method Parameter Documentation

getRow4Match

public final int getRow4Match(int matchid)
TODO Missing Method Documentation

Parameters:
matchid - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getRow4Spieler

public final int getRow4Spieler(int spielerid)
TODO Missing Method Documentation

Parameters:
spielerid - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getScoutEintrag

public final ScoutEintrag getScoutEintrag(int row)
TODO Missing Method Documentation

Parameters:
row - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getSpieler

public final Spieler getSpieler(int row)
TODO Missing Method Documentation

Parameters:
row - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

setValueAt

public final void setValueAt(java.lang.Object obj,
                             int i,
                             int j)
TODO Missing Method Documentation

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class TableMap
Parameters:
obj - TODO Missing Method Parameter Documentation
i - TODO Missing Method Parameter Documentation
j - TODO Missing Method Parameter Documentation

getValueAt

public final java.lang.Object getValueAt(int i,
                                         int j)
TODO Missing Method Documentation

Specified by:
getValueAt in interface javax.swing.table.TableModel
Overrides:
getValueAt in class TableMap
Parameters:
i - TODO Missing Method Parameter Documentation
j - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

addMouseListenerToHeaderInTable

public final void addMouseListenerToHeaderInTable(javax.swing.JTable jtable)
TODO Missing Method Documentation

Parameters:
jtable - TODO Missing Method Parameter Documentation

compare

public final int compare(int i,
                         int j)
TODO Missing Method Documentation

Parameters:
i - TODO Missing Method Parameter Documentation
j - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

initsort

public final void initsort()
Sortierung am Anfang beim Erstellen der Tabelle und bei Modeländerungen


reallocateIndexes

public final void reallocateIndexes()
TODO Missing Method Documentation


shuttlesort

public final void shuttlesort(int[] ai,
                              int[] ai1,
                              int i,
                              int j)
TODO Missing Method Documentation

Parameters:
ai - TODO Missing Method Parameter Documentation
ai1 - TODO Missing Method Parameter Documentation
i - TODO Missing Method Parameter Documentation
j - TODO Missing Method Parameter Documentation

tableChanged

public final void tableChanged(javax.swing.event.TableModelEvent tablemodelevent)
TODO Missing Method Documentation

Specified by:
tableChanged in interface javax.swing.event.TableModelListener
Overrides:
tableChanged in class TableMap
Parameters:
tablemodelevent - TODO Missing Method Parameter Documentation