|
|||||||||
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(String sColumnName)
Invalidate all the cells in a column |
void |
columnInvalidate(TableColumnCore tableColumn)
|
boolean |
dataSourceExists(DATASOURCETYPE dataSource)
|
void |
delete()
|
TableColumnCore[] |
getAllColumns()
|
TableCellCore[] |
getColumnCells(String columnName)
Retrieve a list of |
List<DATASOURCETYPE> |
getDataSources()
|
List<DATASOURCETYPE> |
getDataSources(boolean include_filtered)
|
Class |
getDataSourceType()
|
Object |
getFirstSelectedDataSource()
|
TableRowCore |
getFocusedRow()
|
boolean |
getHeaderVisible()
|
int |
getMaxItemShown()
|
Object |
getParentDataSource()
|
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 |
List<Object> |
getSelectedDataSources()
Returns an array of all selected Data Sources. |
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(String columnName)
|
String |
getTableID()
|
TableRowCore |
getTableRowWithCursor()
Retrieves the row that has the cursor over it |
TableColumnCore[] |
getVisibleColumns()
|
int |
indexOf(TableRowCore row)
|
boolean |
isColumnVisible(TableColumn column)
|
boolean |
isDisposed()
|
boolean |
isRowVisible(TableRowCore row)
|
boolean |
isSelected(TableRow row)
|
boolean |
isUnfilteredDataSourceAdded(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,
String[] restrictToIDs)
|
void |
setFocus()
|
void |
setHeaderVisible(boolean visible)
|
void |
setMaxItemShown(int newIndex)
|
void |
setParentDataSource(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(String sColumnName)
sColumnName
- Name of column to invalidatevoid columnInvalidate(TableColumnCore tableColumn)
tableColumn
- void delete()
TableCellCore[] getColumnCells(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.
List<DATASOURCETYPE> getDataSources()
List<DATASOURCETYPE> getDataSources(boolean include_filtered)
Object getFirstSelectedDataSource()
String getPropertiesPrefix()
TableRowCore getRow(DATASOURCETYPE dataSource)
dataSource
- a reference to a core Datasource object
(not a plugin datasource object)
TableRowCore[] getRows()
List<Object> getSelectedDataSources()
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, String[] restrictToIDs)
enableTabViews
- void setFocus()
void setParentDataSource(Object newDataSource)
newDataSource
- 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()
String getTableID()
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
-
Class getDataSourceType()
TableColumn getTableColumn(String columnName)
columnName
-
void setEnabled(boolean enable)
boolean canHaveSubItems()
boolean isSelected(TableRow row)
tableRowImpl
-
boolean isUnfilteredDataSourceAdded(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 |