FileDocCategorySizeDatePackage
TableView.javaAPI DocAzureus 3.0.3.47381Tue Jun 26 17:09:52 BST 2007com.aelitis.azureus.ui.common.table

TableView

public interface TableView implements org.gudy.azureus2.core3.util.AEDiagnosticsEvidenceGenerator
author
TuxPaper
created
Feb 2, 2007

Fields Summary
Constructors Summary
Methods Summary
public voidaddCountChangeListener(TableCountChangeListener listener)

param
listener

public voidaddDataSource(java.lang.Object dataSource)
Adds a dataSource to the table as a new row. If the data source is already added, a new row will not be added. This function runs asynchronously, so the rows creation is not guaranteed directly after calling this function. You can't add datasources until the table is initialized

param
dataSource data source to add to the table
param
bImmediate Add immediately, or queue and add at next refresh

public voidaddDataSource(java.lang.Object datasource, boolean immediate)

param
datasource
param
immediate

public voidaddDataSources(java.lang.Object[] dataSources)
Add a list of dataSources to the table. The array passed in may be modified, so make sure you don't need it afterwards. You can't add datasources until the table is initialized

param
dataSources
param
bImmediate Add immediately, or queue and add at next refresh

public voidaddLifeCycleListener(TableLifeCycleListener l)

public voidaddRefreshListener(TableRefreshListener l, boolean trigger)

public voidaddSelectionListener(TableSelectionListener listener, boolean trigger)

param
listener
param
bFireSelection

public voidaddTableDataSourceChangedListener(TableDataSourceChangedListener l, boolean trigger)
The data set that this table represents has been changed. This is not for listening on changes to data sources changing within the table

param
l
param
trigger

public voidclipboardSelected()
Send Selected rows to the clipboard in a SpreadSheet friendly format (tab/cr delimited)

public voidcolumnInvalidate(TableColumnCore tableColumn)

param
tableColumn

public voidcolumnInvalidate(java.lang.String sColumnName)
Invalidate all the cells in a column

param
sColumnName Name of column to invalidate

public booleandataSourceExists(java.lang.Object dataSource)

param
dataSource
return

public voiddelete()

public TableCellCore[]getColumnCells(java.lang.String columnName)
Retrieve a list of
TableCell
s, in the last sorted order. The order will not be of the supplied cell's sort unless the table has been sorted by that column previously.

ie. You can sort on the 5th column, and retrieve the cells for the 3rd column, but they will be in order of the 5th columns sort.

param
sColumnName Which column cell's to return. This does not sort the array on the column.
return
array of cells

public java.lang.Object[]getDataSources()

return

public java.lang.ObjectgetFirstSelectedDataSource()

return

public TableRowCoregetFocusedRow()

return

public java.lang.StringgetPropertiesPrefix()

return

public TableRowCoregetRow(java.lang.Object dataSource)
Get the row associated with a datasource

param
dataSource a reference to a core Datasource object (not a plugin datasource object)
return
The row, or null

public TableRowCoregetRow(int x, int y)

param
x
param
y
return

public TableRowCore[]getRows()
Get all the rows for this table, in the order they are displayed

return
a list of TableRowSWT objects in the order the user sees them

public java.lang.Object[]getSelectedDataSources()
Returns an array of all selected Data Sources. Null data sources are ommitted.

return
an array containing the selected data sources

public java.lang.Object[]getSelectedDataSources(boolean bCoreDataSource)
Returns an array of all selected Data Sources. Null data sources are ommitted.

param
bCoreDataSource
return
an array containing the selected data sources

public TableRowCore[]getSelectedRows()
Returns an array of all selected TableRowSWT. Null data sources are ommitted.

return
an array containing the selected data sources

public intgetSelectedRowsSize()

return
since
3.0.0.7

public TableColumnCoregetSortColumn()

return

public java.lang.StringgetTableID()

return

public TableColumnCore[]getVisibleColumns()

return

public intindexOf(TableRowCore row)

param
row
return
since
3.0.0.7

public booleanisDisposed()

return

public booleanisTableFocus()

public voidprocessDataSourceQueue()
Process the queue of datasources to be added and removed

public voidrefreshTable(boolean bForceSort)

param
bForceSort

public voidremoveAllTableRows()
Remove all the data sources (table rows) from the table.

public voidremoveDataSource(java.lang.Object dataSource)

param
dataSource

public voidremoveDataSource(java.lang.Object datasource, boolean immediate)

param
datasource
param
immediate

public voidremoveDataSources(java.lang.Object[] dataSources)

param
dataSources

public voidremoveTableDataSourceChangedListener(TableDataSourceChangedListener l)

param
l

public voidrunForAllRows(TableGroupRowRunner runner)
For every row source, run the code provided by the specified parameter.

param
runner Code to run for each row/datasource

public voidrunForAllRows(TableGroupRowVisibilityRunner runner)
For every row source, run the code provided by the specified parameter.

param
runner Code to run for each row/datasource

public voidrunForSelectedRows(TableGroupRowRunner runner)

param
runner

public voidselectAll()
Does not fire off selection events

public voidsetColumnList(TableColumnCore[] columns, java.lang.String defaultSortColumnID, boolean defaultSortAscending, boolean titleIsMinWidth)

param
columns
param
defaultSortColumnID
param
titleIsMinWidth TODO

public voidsetEnableTabViews(boolean enableTabViews)

param
enableTabViews

public voidsetFocus()

public voidsetParentDataSource(java.lang.Object newDataSource)

param
newDataSource

public voidsetRowDefaultHeight(int iHeight)

param
iHeight

public voidsetSelectedRows(TableRowCore[] rows)

public intsize(boolean bIncludeQueue)

param
bIncludeQueue
return

public voidupdateLanguage()