|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableView<DATASOURCETYPE>
Method Summary | |
---|---|
void |
addCountChangeListener(TableCountChangeListener listener)
|
void |
addDataSource(DATASOURCETYPE dataSource)
Adds a dataSource to the table as a new row. |
void |
addDataSources(DATASOURCETYPE[] dataSources)
Add a list of dataSources to the table. |
void |
addExpansionChangeListener(TableExpansionChangeListener listener)
|
void |
addLifeCycleListener(TableLifeCycleListener l)
|
void |
addRefreshListener(TableRefreshListener l,
boolean trigger)
|
void |
addSelectionListener(TableSelectionListener listener,
boolean trigger)
|
void |
addTableDataSourceChangedListener(TableDataSourceChangedListener l,
boolean trigger)
The data set that this table represents has been changed. |
boolean |
canHaveSubItems()
|
void |
clipboardSelected()
Send Selected rows to the clipboard in a SpreadSheet friendly format (tab/cr delimited) |
void |
columnInvalidate(java.lang.String sColumnName)
Invalidate all the cells in a column |
void |
columnInvalidate(TableColumnCore tableColumn)
|
boolean |
dataSourceExists(DATASOURCETYPE dataSource)
|
void |
delete()
|
TableColumnCore[] |
getAllColumns()
|
TableCellCore[] |
getColumnCells(java.lang.String columnName)
Retrieve a list of |
java.util.List<DATASOURCETYPE> |
getDataSources()
|
java.util.List<DATASOURCETYPE> |
getDataSources(boolean include_filtered)
|
java.lang.Class |
getDataSourceType()
|
java.lang.Object |
getFirstSelectedDataSource()
|
TableRowCore |
getFocusedRow()
|
boolean |
getHeaderVisible()
|
int |
getMaxItemShown()
|
java.lang.Object |
getParentDataSource()
|
java.lang.String |
getPropertiesPrefix()
|
TableRowCore |
getRow(DATASOURCETYPE dataSource)
Get the row associated with a datasource |
TableRowCore |
getRow(int position)
|
TableRowCore |
getRow(int x,
int y)
|
int |
getRowCount()
|
int |
getRowDefaultHeight()
|
TableRowCore[] |
getRows()
Get all the rows for this table, in the order they are displayed |
java.util.List<java.lang.Object> |
getSelectedDataSources()
Returns an array of all selected Data Sources. |
java.lang.Object[] |
getSelectedDataSources(boolean bCoreDataSource)
Returns an array of all selected Data Sources. |
TableRowCore[] |
getSelectedRows()
Returns an array of all selected TableRowSWT. |
int |
getSelectedRowsSize()
|
TableColumnCore |
getSortColumn()
|
TableCellCore |
getTableCellWithCursor()
|
TableColumn |
getTableColumn(java.lang.String columnName)
|
java.lang.String |
getTableID()
|
TableRowCore |
getTableRowWithCursor()
Retrieves the row that has the cursor over it |
TableViewCreator |
getTableViewCreator()
|
TableColumnCore[] |
getVisibleColumns()
|
int |
indexOf(TableRowCore row)
|
boolean |
isColumnVisible(TableColumn column)
|
boolean |
isDisposed()
|
boolean |
isRowVisible(TableRowCore row)
|
boolean |
isSelected(TableRow row)
|
boolean |
isUnfilteredDataSourceAdded(java.lang.Object ds)
|
void |
processDataSourceQueue()
Process the queue of datasources to be added and removed |
void |
processDataSourceQueueSync()
|
void |
refreshTable(boolean bForceSort)
|
void |
removeAllTableRows()
Remove all the data sources (table rows) from the table. |
void |
removeCountChangeListener(TableCountChangeListener l)
|
void |
removeDataSource(DATASOURCETYPE dataSource)
|
void |
removeDataSources(DATASOURCETYPE[] dataSources)
|
void |
removeExpansionChangeListener(TableExpansionChangeListener listener)
|
void |
removeTableDataSourceChangedListener(TableDataSourceChangedListener l)
|
void |
resetLastSortedOn()
|
void |
runForAllRows(TableGroupRowRunner runner)
For every row source, run the code provided by the specified parameter. |
void |
runForAllRows(TableGroupRowVisibilityRunner runner)
For every row source, run the code provided by the specified parameter. |
void |
runForSelectedRows(TableGroupRowRunner runner)
|
void |
selectAll()
Does not fire off selection events |
void |
setEnabled(boolean enable)
|
void |
setEnableTabViews(boolean enableTabViews,
boolean expandByDefault,
java.lang.String[] restrictToIDs)
|
void |
setFocus()
|
void |
setHeaderVisible(boolean visible)
|
void |
setMaxItemShown(int newIndex)
|
void |
setParentDataSource(java.lang.Object newDataSource)
|
void |
setRowDefaultHeight(int iHeight)
|
void |
setRowDefaultHeightEM(float lineHeight)
|
void |
setRowDefaultHeightPX(int realPX)
|
void |
setSelectedRows(TableRowCore[] rows)
|
int |
size(boolean bIncludeQueue)
|
Methods inherited from interface org.gudy.azureus2.core3.util.AEDiagnosticsEvidenceGenerator |
---|
generate |
Method Detail |
---|
void addCountChangeListener(TableCountChangeListener listener)
listener
- void addDataSource(DATASOURCETYPE dataSource)
dataSource
- data source to add to the tablevoid addDataSources(DATASOURCETYPE[] dataSources)
dataSources
- void addLifeCycleListener(TableLifeCycleListener l)
void addRefreshListener(TableRefreshListener l, boolean trigger)
void addSelectionListener(TableSelectionListener listener, boolean trigger)
listener
- bFireSelection
- void addTableDataSourceChangedListener(TableDataSourceChangedListener l, boolean trigger)
l
- trigger
- void clipboardSelected()
void columnInvalidate(java.lang.String sColumnName)
sColumnName
- Name of column to invalidatevoid columnInvalidate(TableColumnCore tableColumn)
tableColumn
- void delete()
TableCellCore[] getColumnCells(java.lang.String columnName)
TableCells, 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.
sColumnName
- Which column cell's to return. This does not sort
the array on the column.
java.util.List<DATASOURCETYPE> getDataSources()
java.util.List<DATASOURCETYPE> getDataSources(boolean include_filtered)
java.lang.Object getFirstSelectedDataSource()
java.lang.String getPropertiesPrefix()
TableRowCore getRow(DATASOURCETYPE dataSource)
dataSource
- a reference to a core Datasource object
(not a plugin datasource object)
TableRowCore[] getRows()
java.util.List<java.lang.Object> getSelectedDataSources()
java.lang.Object[] getSelectedDataSources(boolean bCoreDataSource)
bCoreDataSource
-
TableRowCore[] getSelectedRows()
TableColumnCore getSortColumn()
boolean isDisposed()
void processDataSourceQueue()
void refreshTable(boolean bForceSort)
bForceSort
- void removeAllTableRows()
void removeDataSource(DATASOURCETYPE dataSource)
dataSource
- void removeTableDataSourceChangedListener(TableDataSourceChangedListener l)
l
- void runForAllRows(TableGroupRowRunner runner)
runner
- Code to run for each row/datasourcevoid runForAllRows(TableGroupRowVisibilityRunner runner)
runner
- Code to run for each row/datasourcevoid runForSelectedRows(TableGroupRowRunner runner)
runner
- void selectAll()
void setEnableTabViews(boolean enableTabViews, boolean expandByDefault, java.lang.String[] restrictToIDs)
enableTabViews
- void setFocus()
void setParentDataSource(java.lang.Object newDataSource)
newDataSource
- java.lang.Object getParentDataSource()
void setRowDefaultHeight(int iHeight)
iHeight
- Height will be adjusted for larger DPIvoid setRowDefaultHeightEM(float lineHeight)
void setRowDefaultHeightPX(int realPX)
void setSelectedRows(TableRowCore[] rows)
int size(boolean bIncludeQueue)
bIncludeQueue
-
TableRowCore getFocusedRow()
java.lang.String getTableID()
TableViewCreator getTableViewCreator()
TableRowCore getRow(int x, int y)
x
- y
-
boolean dataSourceExists(DATASOURCETYPE dataSource)
dataSource
-
TableColumnCore[] getVisibleColumns()
void removeDataSources(DATASOURCETYPE[] dataSources)
dataSources
- int getSelectedRowsSize()
int indexOf(TableRowCore row)
row
-
boolean isRowVisible(TableRowCore row)
row
-
TableCellCore getTableCellWithCursor()
TableRowCore getTableRowWithCursor()
int getRowDefaultHeight()
boolean isColumnVisible(TableColumn column)
TableRowCore getRow(int position)
position
-
java.lang.Class getDataSourceType()
TableColumn getTableColumn(java.lang.String columnName)
columnName
-
void setEnabled(boolean enable)
boolean canHaveSubItems()
boolean isSelected(TableRow row)
tableRowImpl
-
boolean isUnfilteredDataSourceAdded(java.lang.Object ds)
void setHeaderVisible(boolean visible)
visible
- boolean getHeaderVisible()
void processDataSourceQueueSync()
int getMaxItemShown()
void setMaxItemShown(int newIndex)
newIndex
- int getRowCount()
void resetLastSortedOn()
TableColumnCore[] getAllColumns()
void removeCountChangeListener(TableCountChangeListener l)
void addExpansionChangeListener(TableExpansionChangeListener listener)
void removeExpansionChangeListener(TableExpansionChangeListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |