com.bff.musicjukebox.lib
Class SearchTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.bff.musicjukebox.lib.SongTableModel
          extended by com.bff.musicjukebox.lib.SearchTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class SearchTableModel
extends SongTableModel

See Also:
Serialized Form

Field Summary
static int ALBUM
           
static int ARTIST
           
static java.lang.String[] columnNames
           
static int GENRE
           
static int LENGTH
           
static int TITLE
           
static int TRACK
           
static int YEAR
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SearchTableModel()
          Creates a new instance of ArtistTableModel
SearchTableModel(java.util.Collection songs)
           
 
Method Summary
 int getAlbumColumnIndex()
           
 int getArtistColumnIndex()
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 int getGenreColumnIndex()
           
 int getLengthColumnIndex()
           
 int getRowCount()
           
 Song getSong(int row)
           
 int getTitleColumnIndex()
           
 int getTrackColumnIndex()
           
 java.lang.Object getValueAt(int row, int col)
           
 int getYearColumnIndex()
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARTIST

public static final int ARTIST
See Also:
Constant Field Values

ALBUM

public static final int ALBUM
See Also:
Constant Field Values

TITLE

public static final int TITLE
See Also:
Constant Field Values

LENGTH

public static final int LENGTH
See Also:
Constant Field Values

TRACK

public static final int TRACK
See Also:
Constant Field Values

YEAR

public static final int YEAR
See Also:
Constant Field Values

GENRE

public static final int GENRE
See Also:
Constant Field Values

columnNames

public static final java.lang.String[] columnNames
Constructor Detail

SearchTableModel

public SearchTableModel()
Creates a new instance of ArtistTableModel


SearchTableModel

public SearchTableModel(java.util.Collection songs)
Method Detail

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)

getColumnCount

public int getColumnCount()

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getSong

public Song getSong(int row)
Specified by:
getSong in class SongTableModel

getArtistColumnIndex

public int getArtistColumnIndex()
Specified by:
getArtistColumnIndex in class SongTableModel

getAlbumColumnIndex

public int getAlbumColumnIndex()
Specified by:
getAlbumColumnIndex in class SongTableModel

getTitleColumnIndex

public int getTitleColumnIndex()
Specified by:
getTitleColumnIndex in class SongTableModel

getLengthColumnIndex

public int getLengthColumnIndex()
Specified by:
getLengthColumnIndex in class SongTableModel

getTrackColumnIndex

public int getTrackColumnIndex()
Specified by:
getTrackColumnIndex in class SongTableModel

getYearColumnIndex

public int getYearColumnIndex()
Specified by:
getYearColumnIndex in class SongTableModel

getGenreColumnIndex

public int getGenreColumnIndex()
Specified by:
getGenreColumnIndex in class SongTableModel