|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.gui.model.PlayListTableModel
public class PlayListTableModel
The Class PlayListTableModel.
Constructor Summary | |
---|---|
PlayListTableModel(javax.swing.JTable table)
Constructor. |
Method Summary | |
---|---|
void |
addSong(AudioObject song)
Adds a song to Play list. |
void |
addTableModelListener(javax.swing.event.TableModelListener l)
Adds a listener. |
void |
arrangeColumns(boolean reapplyFilter)
Arrange columns. |
Column |
getColumn(int column)
Return Column object for a given column number. |
java.lang.Class<?> |
getColumnClass(int colIndex)
Returns column data class. |
int |
getColumnCount()
Return column count. |
PlayListColumns.PlayListColumn |
getColumnId(int colIndex)
Returns Column ID given a column number. |
java.lang.String |
getColumnName(int colIndex)
Return column name. |
AudioObject |
getFileAt(int pos)
Return a file of a row. |
int |
getRowCount()
Return row count. |
java.lang.Object |
getValueAt(int rowIndex,
int colIndex)
Returns value of a row and column. |
int |
getWidthForColumn(int column)
Returns width for a given column number. |
int |
getWidthForColumn(PlayListColumns.PlayListColumn c)
Returns width for a given column. |
boolean |
isAlbumVisible()
Checks if is album visible. |
boolean |
isArtistVisible()
Checks if is artist visible. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns if a cell is editable. |
boolean |
isEmpty()
Checks if is empty. |
void |
moveDown(int[] rows)
Move down. |
void |
moveToBottom(int[] rows)
Move bottom. |
void |
moveToTop(int[] rows)
Move to top. |
void |
moveUp(int[] rows)
Move up. |
void |
refresh()
Refresh table. |
void |
refresh(int pos)
Refresh a row. |
void |
refreshTable()
Refresh visually table. |
void |
removeSongs()
Removes all songs. |
void |
removeSongs(int[] rows)
Removes songs from Play List. |
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
Removes a listener. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets value for a cell. |
void |
updateColumnWidth()
Updates columns width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlayListTableModel(javax.swing.JTable table)
table
- the tableMethod Detail |
---|
public void addSong(AudioObject song)
song
- the songpublic void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener
in interface javax.swing.table.TableModel
l
- the lpublic void arrangeColumns(boolean reapplyFilter)
reapplyFilter
- the reapply filterpublic Column getColumn(int column)
column
- the column
public java.lang.Class<?> getColumnClass(int colIndex)
getColumnClass
in interface javax.swing.table.TableModel
colIndex
- the col index
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public PlayListColumns.PlayListColumn getColumnId(int colIndex)
colIndex
- the col index
public java.lang.String getColumnName(int colIndex)
getColumnName
in interface javax.swing.table.TableModel
colIndex
- the col index
public AudioObject getFileAt(int pos)
pos
- the pos
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex, int colIndex)
getValueAt
in interface javax.swing.table.TableModel
rowIndex
- the row indexcolIndex
- the col index
public int getWidthForColumn(int column)
column
- the column
public int getWidthForColumn(PlayListColumns.PlayListColumn c)
c
- the c
public boolean isAlbumVisible()
public boolean isArtistVisible()
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
rowIndex
- the row indexcolumnIndex
- the column index
public boolean isEmpty()
public void moveDown(int[] rows)
rows
- the rowspublic void moveToBottom(int[] rows)
rows
- the rowspublic void moveToTop(int[] rows)
rows
- the rowspublic void moveUp(int[] rows)
rows
- the rowspublic void refresh()
public void refresh(int pos)
pos
- the pospublic void refreshTable()
public void removeSongs()
public void removeSongs(int[] rows)
rows
- the rowspublic void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener
in interface javax.swing.table.TableModel
l
- the lpublic void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
aValue
- the a valuerowIndex
- the row indexcolumnIndex
- the column indexpublic void updateColumnWidth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |