|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TableRow
This interface provides access to an Azureus table row.
| Method Summary | |
|---|---|
void |
addMouseListener(TableRowMouseListener listener)
Adds a listener that triggers when this TableRow has a mouse event. |
Object |
getData(String id)
Get a previously stored value |
Object |
getDataSource()
Retrieve the data object associated with the current table row. |
int |
getIndex()
|
TableCell |
getTableCell(String sColumnName)
Retrieve a cell based on its column name |
String |
getTableID()
Returns which table the row is being displayed in. |
TableView<?> |
getView()
|
boolean |
isSelected()
Retrieve whether the row is selected by the user |
boolean |
isValid()
Validility of the row's cells. |
void |
removeMouseListener(TableRowMouseListener listener)
Remove a previously added TableRowMouseListener |
void |
setData(String id,
Object data)
Store a value against the table row |
void |
setForeground(int[] rgb)
Change the row's foreground color |
void |
setForeground(int red,
int green,
int blue)
Change the row's foreground color. |
void |
setForegroundToErrorColor()
Change the row's foreground color to the user's defined "error" color. |
| Method Detail |
|---|
Object getDataSource()
Download
object for the current rowPeer
object for the current rowDiskManagerFileInfo
object for the current rowTrackerTorrent
object for the current rowShareResource
object for the current rowString getTableID()
TableManager.TABLE_* constantTableView<?> getView()
int getIndex()
void setForeground(int red,
int green,
int blue)
red - red value (0 - 255)green - green value (0 - 255)blue - blue value (0 - 255)void setForeground(int[] rgb)
rgb - int array of red, green, and blue values. Null to reset to
default colorvoid setForegroundToErrorColor()
boolean isValid()
TableCell getTableCell(String sColumnName)
sColumnName - Name/ID of column
boolean isSelected()
void addMouseListener(TableRowMouseListener listener)
listener - void removeMouseListener(TableRowMouseListener listener)
listener - Previously added listenerObject getData(String id)
id -
void setData(String id,
Object data)
id - data -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||