com.atlassian.confluence.plugins.linkbrowser.client
Interface DataTableSupport<T>

All Known Implementing Classes:
ConfluenceDataTableDisplay

public interface DataTableSupport<T>

Displays that contain a DataTable should extend this interface.


Method Summary
 void displayFetchDataError(String errorMessage)
          Display and error message when an error is encountered fetching the data.
 void displayNoDataMessage()
          Display the appropriate information when there are no data results returned.
 void fetchDataTable()
          Fetch data and update the table.
 String getId()
           
 HasAction getTableActionSupport()
           
 List<T> getTableData()
          Returns the data list used to populate the table.
 void hideDataTable()
          Hides the data table from display.
 void setDataSource(DataSource<T> dataSource)
          Sets the data source for the data table
 void setDataSourceCallback(DataSourceCallback<T> callback)
          Sets the data source callback for the data table.
 void setSelectionHandler(DataTableSelectionHandler handler)
          Sets the selection handler for the data table.
 void showDataTable()
          Shows the data table in display.
 

Method Detail

getId

String getId()
Returns:
the id of the data table container

getTableActionSupport

HasAction getTableActionSupport()

displayNoDataMessage

void displayNoDataMessage()
Display the appropriate information when there are no data results returned.


displayFetchDataError

void displayFetchDataError(String errorMessage)
Display and error message when an error is encountered fetching the data.


hideDataTable

void hideDataTable()
Hides the data table from display.


showDataTable

void showDataTable()
Shows the data table in display.


getTableData

List<T> getTableData()
Returns the data list used to populate the table.


fetchDataTable

void fetchDataTable()
Fetch data and update the table.


setSelectionHandler

void setSelectionHandler(DataTableSelectionHandler handler)
Sets the selection handler for the data table.


setDataSourceCallback

void setDataSourceCallback(DataSourceCallback<T> callback)
Sets the data source callback for the data table.


setDataSource

void setDataSource(DataSource<T> dataSource)
Sets the data source for the data table



Copyright © 2003-2010 Atlassian. All Rights Reserved.