java.lang.Object
javax.swing.table.AbstractTableModel
org.jempeg.empeg.emplode.model.FIDPlaylistTableModel
- All Implemented Interfaces:
- EmpegTableModelIfc, java.io.Serializable, javax.swing.table.TableModel
- public class FIDPlaylistTableModel
- extends javax.swing.table.AbstractTableModel
- implements EmpegTableModelIfc
FIDPlaylistTableModel is a table model that proxies an FIDPlaylist node,
presenting it's children in table format.
- Version:
- $Revision: 1.10 $
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COLUMN_NAMES
public static final java.lang.String[] COLUMN_NAMES
COLUMN_TYPES
public static final java.lang.Class[] COLUMN_TYPES
SORT_COLUMN_TYPES
public static final java.lang.Class[] SORT_COLUMN_TYPES
COLUMN_TAGS
public static final java.lang.String[] COLUMN_TAGS
DEFAULT_COLUMNS
public static final int[] DEFAULT_COLUMNS
ALL_COLUMNS
public static final int[] ALL_COLUMNS
PLAYLIST_COLUMNS_KEY
private static final java.lang.String PLAYLIST_COLUMNS_KEY
- See Also:
- Constant Field Values
myColumns
private int[] myColumns
myTreeNode
private FIDPlaylistTreeNodeIfc myTreeNode
FIDPlaylistTableModel
public FIDPlaylistTableModel(FIDPlaylistTreeNodeIfc _treeNode)
FIDPlaylistTableModel
public FIDPlaylistTableModel(FIDPlaylistTreeNodeIfc _treeNode,
int[] _columns)
setColumns
public void setColumns(int[] _columns)
getColumns
public int[] getColumns()
getTreeNode
public EmpegPlaylistTreeNodeIfc getTreeNode()
- Description copied from interface:
EmpegTableModelIfc
- Returns the EmpegPlaylistTreeNode that this
table model is proxying.
- Specified by:
getTreeNode in interface EmpegTableModelIfc
getRowCount
public int getRowCount()
- Description copied from interface:
javax.swing.table.TableModel
- Returns the number of rows in the model.
- Specified by:
getRowCount in interface javax.swing.table.TableModel
getColumnName
public java.lang.String getColumnName(int _column)
- Description copied from interface:
javax.swing.table.TableModel
- Returns the name of a column in the model.
- Specified by:
getColumnName in interface javax.swing.table.TableModel
getColumnCount
public int getColumnCount()
- Description copied from interface:
javax.swing.table.TableModel
- Returns the number of columns in the model.
- Specified by:
getColumnCount in interface javax.swing.table.TableModel
getValueAt
public EmpegTreeNodeIfc getValueAt(int _row)
- Description copied from interface:
EmpegTableModelIfc
- Returns the EmpegTreeNode at the given row.
- Specified by:
getValueAt in interface EmpegTableModelIfc
getRowFor
public int getRowFor(EmpegTreeNodeIfc _treeNode)
- Description copied from interface:
EmpegTableModelIfc
- Returns the row of the given EmpegTreeNode.
- Specified by:
getRowFor in interface EmpegTableModelIfc
getFIDNodeAt
public org.jempeg.empeg.emptool.AbstractFIDNode getFIDNodeAt(int _row)
getColumnClass
public java.lang.Class getColumnClass(int _column)
- Description copied from interface:
javax.swing.table.TableModel
- Returns the
Class for all Object instances
in the specified column.
- Specified by:
getColumnClass in interface javax.swing.table.TableModel
getSortColumnClass
public java.lang.Class getSortColumnClass(int _column)
- Description copied from interface:
EmpegTableModelIfc
- Returns the type that will be used to sort with.
- Specified by:
getSortColumnClass in interface EmpegTableModelIfc
getSortValueAt
public java.lang.Object getSortValueAt(int _row,
int _column)
- Description copied from interface:
EmpegTableModelIfc
- Returns the value that will be used to sort with.
- Specified by:
getSortValueAt in interface EmpegTableModelIfc
getValueAt
public java.lang.Object getValueAt(int _row,
int _column)
- Description copied from interface:
javax.swing.table.TableModel
- Returns the value (
Object) at a particular cell in the
table.
- Specified by:
getValueAt in interface javax.swing.table.TableModel