java.lang.Object
javax.swing.table.AbstractTableModel
org.jempeg.empeg.emplode.model.EmpegPlaylistTableModel
- All Implemented Interfaces:
- EmpegTableModelIfc, java.io.Serializable, javax.swing.table.TableModel
- public class EmpegPlaylistTableModel
- extends javax.swing.table.AbstractTableModel
- implements EmpegTableModelIfc
EmpegPlaylistTableModel is a table model that proxies an EmpegPlaylistTreeNode,
presenting it's children in table format.
- Version:
- $Revision: 1.5 $
| 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 |
COLUMNS
private static final java.lang.String[] COLUMNS
myTreeNode
private EmpegPlaylistTreeNodeIfc myTreeNode
EmpegPlaylistTableModel
public EmpegPlaylistTableModel(EmpegPlaylistTreeNodeIfc _treeNode)
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
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 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
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
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