Mp3dings 
20100427

net.sourceforge.mp3dings
Interface FieldAssociatedTableModel

All Superinterfaces:
TableModel
All Known Subinterfaces:
Mp3dingsTableModel
All Known Implementing Classes:
AbstractTableModel, DataTableModel, DependentTableModel, FileTableModel, ID3TagTableModel

public interface FieldAssociatedTableModel
extends TableModel

A TableModel whose columns are associated with data fields represented by unique int values.

Version:
$Revision: 13 $ ($Date: 2007-07-27 11:52:39 +0200 (Fr, 27 Jul 2007) $)
Author:
Moritz Ringler

Method Summary
 Field[] getAllowedFields()
          Returns the fields that can be displayed in a table.
 int getColumn(Field field)
          Returns the column number of the column currently associated with the specified field.
 Field[] getDefaultFields()
          Returns the fields that are displayed by default.
 boolean getEditable(Field field)
          Returns the editable property for an allowed field.
 Field getField(int col)
          Returns the identifier of the field currently associated with the specified table column.
 Field[] getFields()
          Returns the fields that currently have table columns associated with them.
 Field[] getPersistentFields()
          Returns the fields that must always be displayed.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getField

Field getField(int col)
Returns the identifier of the field currently associated with the specified table column.

Parameters:
col - the column number for which to retrieve the field
Returns:
the field identifier or a value of -1 if col is invalid

getColumn

int getColumn(Field field)
Returns the column number of the column currently associated with the specified field.

Parameters:
field - Description of the Parameter
Returns:
the column number of the associated column or a value of -1 if no column is associated with that field identifier.

getAllowedFields

Field[] getAllowedFields()
Returns the fields that can be displayed in a table.

Returns:
An array of integer field identifiers.

getPersistentFields

Field[] getPersistentFields()
Returns the fields that must always be displayed.

Returns:
An array of integer field identifiers.

getDefaultFields

Field[] getDefaultFields()
Returns the fields that are displayed by default.

Returns:
An array of integer field identifiers.

getEditable

boolean getEditable(Field field)
Returns the editable property for an allowed field.

Parameters:
field - Description of the Parameter
Returns:
The editable value

getFields

Field[] getFields()
Returns the fields that currently have table columns associated with them.

Returns:
An array of integer field identifiers.

Mp3dings 
20100427