|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
net.shredzone.ifish.gui
Class PlaylistTableModel
java.lang.Objectnet.shredzone.ifish.gui.PlaylistTableModel
- All Implemented Interfaces:
- EventListener, ListDataListener, TableModel
public class PlaylistTableModel
- extends Object
- implements TableModel, ListDataListener
- extends Object
This is a TableModel for Playlists.
- Version:
- $Id: PlaylistTableModel.java 291 2009-04-28 21:29:27Z shred $
| Constructor Summary | |
|---|---|
PlaylistTableModel(Playlist pl)
Create a PlaylistTableModel for the given Playlist. |
|
| Method Summary | |
|---|---|
void |
addTableModelListener(TableModelListener l)
Add a table model listener. |
void |
contentsChanged(ListDataEvent e)
ListDataListener implementation, do not use. |
protected void |
fireTableModelListener(ListDataEvent e)
Fire a TableModelEvent according to the ListDataEvent passed. |
Class<?> |
getColumnClass(int columnIndex)
Get the class of the column. |
int |
getColumnCount()
Get the number of columns. |
String |
getColumnName(int columnIndex)
Get the column name. |
Entry |
getEntryAt(int rowIndex)
Get the Entry of a row. |
Playlist |
getPlaylist()
Get the playlist. |
int |
getRowCount()
Get the number of rows. |
Object |
getValueAt(int rowIndex,
int columnIndex)
Get the value of a cell. |
void |
intervalAdded(ListDataEvent e)
ListDataListener implementation, do not use. |
void |
intervalRemoved(ListDataEvent e)
ListDataListener implementation, do not use. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Check if the cell is editable. |
void |
removeTableModelListener(TableModelListener l)
Remove a table model listener. |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
Set the value of a cell. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
PlaylistTableModel
public PlaylistTableModel(Playlist pl)
- Create a PlaylistTableModel for the given Playlist.
- Parameters:
pl- Playlist to create a model for.
| Method Detail |
|---|
getColumnCount
public int getColumnCount()
- Get the number of columns.
- Specified by:
getColumnCountin interfaceTableModel
- Returns:
- Number of columns.
getRowCount
public int getRowCount()
- Get the number of rows.
- Specified by:
getRowCountin interfaceTableModel
- Returns:
- Number of rows.
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
- Check if the cell is editable. This is always false.
- Specified by:
isCellEditablein interfaceTableModel
- Parameters:
rowIndex- Row index of the cellcolumnIndex- Column index of the cell- Returns:
- false
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Get the class of the column.
- Specified by:
getColumnClassin interfaceTableModel
- Parameters:
columnIndex- Column index to get the class for- Returns:
- The class.
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Get the value of a cell.
- Specified by:
getValueAtin interfaceTableModel
- Parameters:
rowIndex- Cell row.columnIndex- Cell column.- Returns:
- Value of that cell.
getEntryAt
public Entry getEntryAt(int rowIndex)
- Get the Entry of a row.
- Parameters:
rowIndex- Row number- Returns:
- Entry at this row, or null
getPlaylist
public Playlist getPlaylist()
- Get the playlist.
- Returns:
- Playlist
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
- Set the value of a cell. Always ignored.
- Specified by:
setValueAtin interfaceTableModel
- Parameters:
aValue- New valuerowIndex- Cell rowcolumnIndex- Cell column
getColumnName
public String getColumnName(int columnIndex)
- Get the column name.
- Specified by:
getColumnNamein interfaceTableModel
- Parameters:
columnIndex- Column- Returns:
- Name of the column.
addTableModelListener
public void addTableModelListener(TableModelListener l)
- Add a table model listener.
- Specified by:
addTableModelListenerin interfaceTableModel
- Parameters:
l- TableModelListener to be added.
removeTableModelListener
public void removeTableModelListener(TableModelListener l)
- Remove a table model listener.
- Specified by:
removeTableModelListenerin interfaceTableModel
- Parameters:
l- TableModelListener to be removed.
fireTableModelListener
protected void fireTableModelListener(ListDataEvent e)
- Fire a TableModelEvent according to the ListDataEvent passed.
- Parameters:
e- ListDataEvent
contentsChanged
public void contentsChanged(ListDataEvent e)
- ListDataListener implementation, do not use.
- Specified by:
contentsChangedin interfaceListDataListener
- Parameters:
e- ListDataEvent
intervalAdded
public void intervalAdded(ListDataEvent e)
- ListDataListener implementation, do not use.
- Specified by:
intervalAddedin interfaceListDataListener
- Parameters:
e- ListDataEvent
intervalRemoved
public void intervalRemoved(ListDataEvent e)
- ListDataListener implementation, do not use.
- Specified by:
intervalRemovedin interfaceListDataListener
- Parameters:
e- ListDataEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2007-2011 shredzone.org. All Rights Reserved.
net.shredzone.ifish.gui.PlaylistTableModel