Interface TableRow
- All Known Subinterfaces:
TableRowCore, TableRowSWT
- All Known Implementing Classes:
TableRowPainted, TableRowSWTBase
public interface TableRow
This interface provides access to an Azureus table row.
- Since:
- 2.0.8.5
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMouseListener(TableRowMouseListener listener) Adds a listener that triggers when this TableRow has a mouse event.Get a previously stored valueRetrieve the data object associated with the current table row.intgetIndex()getTableCell(TableColumn column) getTableCell(String sColumnName) Retrieve a cell based on its column nameReturns which table the row is being displayed in.TableView<?> getView()booleanRetrieve whether the row is selected by the userbooleanisValid()Validility of the row's cells.voidremoveMouseListener(TableRowMouseListener listener) Remove a previously added TableRowMouseListenervoidStore a value against the table row
-
Method Details
-
getDataSource
Object getDataSource()Retrieve the data object associated with the current table row.- Returns:
- The return type is dependent upon which table the cell is for:
TABLE_MYTORRENTS_*:Downloadobject for the current row
TABLE_TORRENT_PEERS:Peerobject for the current row
TABLE_TORRENT_FILES:DiskManagerFileInfoobject for the current row
TABLE_MYTRACKER:TrackerTorrentobject for the current row
TABLE_MYSHARES:ShareResourceobject for the current row
remaining TABLE_* constants: undefined or null
-
getTableID
String getTableID()Returns which table the row is being displayed in.- Returns:
TableManager.TABLE_* constant
-
getView
TableView<?> getView() -
getIndex
int getIndex() -
isValid
boolean isValid()Validility of the row's cells.- Returns:
- 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.
-
getTableCell
-
getTableCell
-
isSelected
boolean isSelected()Retrieve whether the row is selected by the user- Returns:
- selection status
-
addMouseListener
Adds a listener that triggers when this TableRow has a mouse event.- Parameters:
listener-- Since:
- 3.0.1.7
-
removeMouseListener
Remove a previously added TableRowMouseListener- Parameters:
listener- Previously added listener- Since:
- 3.0.1.7
-
getData
-
setData
-