net.sourceforge.atunes.gui.model
Class NavigationTableModel

java.lang.Object
  extended by net.sourceforge.atunes.gui.model.NavigationTableModel
All Implemented Interfaces:
javax.swing.table.TableModel

public class NavigationTableModel
extends java.lang.Object
implements javax.swing.table.TableModel

The Class NavigationTableModel.

Author:
fleax

Nested Class Summary
static class NavigationTableModel.Property
          Enum for properties
 
Constructor Summary
NavigationTableModel(NavigationController controller)
          Instantiates a new navigation table model.
 
Method Summary
 void addTableModelListener(javax.swing.event.TableModelListener l)
           
 java.lang.Class<?> getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int columnIndex)
           
 int getRowCount()
           
 AudioObject getSongAt(int row)
          Gets the song at.
 java.util.List<AudioObject> getSongs()
          Gets the songs.
 java.util.List<AudioObject> getSongsAt(int[] rows)
          Gets the songs at.
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void refresh()
          Refresh.
 void removeTableModelListener(javax.swing.event.TableModelListener l)
           
 void setSongs(java.util.List<AudioObject> songs)
          Sets the songs.
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationTableModel

public NavigationTableModel(NavigationController controller)
Instantiates a new navigation table model.

Parameters:
controller - the controller
Method Detail

addTableModelListener

public void addTableModelListener(javax.swing.event.TableModelListener l)
Specified by:
addTableModelListener in interface javax.swing.table.TableModel

getColumnClass

public java.lang.Class<?> getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface javax.swing.table.TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

getColumnName

public java.lang.String getColumnName(int columnIndex)
Specified by:
getColumnName in interface javax.swing.table.TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel

getSongAt

public AudioObject getSongAt(int row)
Gets the song at.

Parameters:
row - the row
Returns:
the song at

getSongs

public java.util.List<AudioObject> getSongs()
Gets the songs.

Returns:
the songs

getSongsAt

public java.util.List<AudioObject> getSongsAt(int[] rows)
Gets the songs at.

Parameters:
rows - the rows
Returns:
the songs at

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Specified by:
getValueAt in interface javax.swing.table.TableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel

refresh

public void refresh()
Refresh.


removeTableModelListener

public void removeTableModelListener(javax.swing.event.TableModelListener l)
Specified by:
removeTableModelListener in interface javax.swing.table.TableModel

setSongs

public void setSongs(java.util.List<AudioObject> songs)
Sets the songs.

Parameters:
songs - the new songs

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface javax.swing.table.TableModel


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.