de.axelwernicke.mypod
Class ClipsTableColumnModel

java.lang.Object
  extended byjavax.swing.table.DefaultTableColumnModel
      extended byde.axelwernicke.mypod.ClipsTableColumnModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ListSelectionListener, java.beans.PropertyChangeListener, java.io.Serializable, javax.swing.table.TableColumnModel

public class ClipsTableColumnModel
extends javax.swing.table.DefaultTableColumnModel

Column model for myPods list view. This class extends the DefaultTableColumnModel class. Functionality to make sorting of columns persistent, as well as cell renderers are added.

Author:
axel wernicke
See Also:
Serialized Form

Nested Class Summary
static class ClipsTableColumnModel.BitrateRenderer
          mpeg mode cell renderer
static class ClipsTableColumnModel.DateRenderer
          date cell renderer
static class ClipsTableColumnModel.DurationMilliSekRenderer
          duration cell renderer
static class ClipsTableColumnModel.DurationSekRenderer
          duration cell renderer
static class ClipsTableColumnModel.EmphasisRenderer
          emphasis cell renderer
static class ClipsTableColumnModel.FilesizeRenderer
          filesize cell renderer
static class ClipsTableColumnModel.JTypeRenderer
          JType cell renderer
static class ClipsTableColumnModel.LayerRenderer
          mpeg mode cell renderer
static class ClipsTableColumnModel.LevelRenderer
          mpeg level cell renderer
static class ClipsTableColumnModel.ModeRenderer
          mpeg mode cell renderer
static class ClipsTableColumnModel.PlaylistIndexNumberRenderer
          Playlist clip index cell renderer
static class ClipsTableColumnModel.SamplerateRenderer
          mpeg mode cell renderer
static class ClipsTableColumnModel.UnsignedNumberRenderer
          Unsigned integer cell renderer
static class ClipsTableColumnModel.URLRenderer
          Url cell renderer
 
Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableColumnModel
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth
 
Constructor Summary
ClipsTableColumnModel()
          Creates a new instance of ClipsTableColumnModel
 
Method Summary
 void addColumn(javax.swing.table.TableColumn column)
          Adds a column to a column model.
 javax.swing.table.TableColumn getColumnForModelIndex(int modelIndex)
           
 
Methods inherited from class javax.swing.table.DefaultTableColumnModel
addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMarginChanged, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, recalcWidthCache, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipsTableColumnModel

public ClipsTableColumnModel()
Creates a new instance of ClipsTableColumnModel

Method Detail

addColumn

public void addColumn(javax.swing.table.TableColumn column)
Adds a column to a column model. Sets the appropriate cell renderer and name too.

Parameters:
column - to add to the column model

getColumnForModelIndex

public javax.swing.table.TableColumn getColumnForModelIndex(int modelIndex)