com.melloware.jukes.gui.view.dialogs
Class MusicTagTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.melloware.jukes.gui.view.dialogs.MusicTagTableModel
All Implemented Interfaces:
Serializable, TableModel

public final class MusicTagTableModel
extends AbstractTableModel

The table model for displaying music tags from a directory.

Copyright (c) 1999-2007 Melloware, Inc.

Version:
4.0
Author:
Emil A. Lefkof III
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
MusicTagTableModel()
          Constructor that takes a collection.
MusicTagTableModel(Object[] aData)
          Constructor that takes a collection.
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int col)
           
 Object[] getData()
          Gets the data.
 int getRowCount()
           
 Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 void setData(Object[] aData)
          Sets the data.
 void setValueAt(Object aValue, int aRowIndex, int aColumnIndex)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MusicTagTableModel

public MusicTagTableModel()
Constructor that takes a collection.


MusicTagTableModel

public MusicTagTableModel(Object[] aData)
Constructor that takes a collection.

Method Detail

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int col)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getData

public Object[] getData()
Gets the data.

Returns:
Returns the data.

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int row,
                         int col)

setData

public void setData(Object[] aData)
Sets the data.

Parameters:
aData - The data to set.

setValueAt

public void setValueAt(Object aValue,
                       int aRowIndex,
                       int aColumnIndex)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel


Copyright © 1999-2010 Melloware Inc. All Rights Reserved.