Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.emplode.model
Class EmpegPlaylistTableModel  view EmpegPlaylistTableModel download EmpegPlaylistTableModel.java

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.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 $

Field Summary
private static java.lang.String[] COLUMNS
           
private  EmpegPlaylistTreeNodeIfc myTreeNode
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
EmpegPlaylistTableModel(EmpegPlaylistTreeNodeIfc _treeNode)
           
 
Method Summary
 java.lang.Class getColumnClass(int _column)
          Returns the Class for all Object instances in the specified column.
 int getColumnCount()
          Returns the number of columns in the model.
 java.lang.String getColumnName(int _column)
          Returns the name of a column in the model.
 int getRowCount()
          Returns the number of rows in the model.
 int getRowFor(EmpegTreeNodeIfc _treeNode)
          Returns the row of the given EmpegTreeNode.
 java.lang.Class getSortColumnClass(int _column)
          Returns the type that will be used to sort with.
 java.lang.Object getSortValueAt(int _row, int _column)
          Returns the value that will be used to sort with.
 EmpegPlaylistTreeNodeIfc getTreeNode()
          Returns the EmpegPlaylistTreeNode that this table model is proxying.
 EmpegTreeNodeIfc getValueAt(int _row)
          Returns the EmpegTreeNode at the given row.
 java.lang.Object getValueAt(int _row, int _column)
          Returns the value (Object) at a particular cell in the table.
 
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
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt
 

Field Detail

COLUMNS

private static final java.lang.String[] COLUMNS

myTreeNode

private EmpegPlaylistTreeNodeIfc myTreeNode
Constructor Detail

EmpegPlaylistTableModel

public EmpegPlaylistTableModel(EmpegPlaylistTreeNodeIfc _treeNode)
Method Detail

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