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

Quick Search    Search Deep

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

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

Field Summary
static int[] ALL_COLUMNS
           
static java.lang.String[] COLUMN_NAMES
           
static java.lang.String[] COLUMN_TAGS
           
static java.lang.Class[] COLUMN_TYPES
           
static int[] DEFAULT_COLUMNS
           
private  int[] myColumns
           
private  FIDPlaylistTreeNodeIfc myTreeNode
           
private static java.lang.String PLAYLIST_COLUMNS_KEY
           
static java.lang.Class[] SORT_COLUMN_TYPES
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
FIDPlaylistTableModel(FIDPlaylistTreeNodeIfc _treeNode)
           
FIDPlaylistTableModel(FIDPlaylistTreeNodeIfc _treeNode, int[] _columns)
           
 
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[] getColumns()
           
 org.jempeg.empeg.emptool.AbstractFIDNode getFIDNodeAt(int _row)
           
 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.
 void setColumns(int[] _columns)
           
 
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

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
Constructor Detail

FIDPlaylistTableModel

public FIDPlaylistTableModel(FIDPlaylistTreeNodeIfc _treeNode)

FIDPlaylistTableModel

public FIDPlaylistTableModel(FIDPlaylistTreeNodeIfc _treeNode,
                             int[] _columns)
Method Detail

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