FileDocCategorySizeDatePackage
TableRow.javaAPI DocAzureus 3.0.3.43206Wed Jun 27 14:10:24 BST 2007org.gudy.azureus2.plugins.ui.tables

TableRow

public interface TableRow
This interface provides access to an Azureus table row.
author
TuxPaper
since
2.0.8.5

Fields Summary
Constructors Summary
Methods Summary
public voidaddMouseListener(TableRowMouseListener listener)
Adds a listener that triggers when this TableRow has a mouse event.

param
listener
since
3.0.1.7

public java.lang.ObjectgetDataSource()
Retrieve the data object associated with the current table row.

return
The return type is dependent upon which table the cell is for:
TABLE_MYTORRENTS_*: {@link org.gudy.azureus2.plugins.download.Download} object for the current row
TABLE_TORRENT_PEERS: {@link org.gudy.azureus2.plugins.peers.Peer} object for the current row
TABLE_TORRENT_FILES: {@link org.gudy.azureus2.plugins.disk.DiskManagerFileInfo} object for the current row
TABLE_MYTRACKER: {@link org.gudy.azureus2.plugins.tracker.TrackerTorrent} object for the current row
TABLE_MYSHARES: {@link org.gudy.azureus2.plugins.sharing.ShareResource} object for the current row
remaining TABLE_* constants: undefined or null

public TableCellgetTableCell(java.lang.String sColumnName)
Retrieve a cell based on its column name

param
sColumnName Name/ID of column
return
TableCell object related to this row and the column specified

public java.lang.StringgetTableID()
Returns which table the row is being displayed in.

return
{@link TableManager}.TABLE_* constant

public booleanisSelected()
Retrieve whether the row is selected by the user

return
selection status

public booleanisValid()
Validility of the row's cells.

return
True - Text is the same as last call. You do not need to update unless you have new text to display.
False - Cell-to-Datasource link has changed, and the text is definitely not valid.

public voidremoveMouseListener(TableRowMouseListener listener)
Remove a previously added TableRowMouseListener

param
listener Previously added listener
since
3.0.1.7