ariba.ui.widgets
Interface TableHeaderDelegate


public interface TableHeaderDelegate

The TableHeaderDelegate is specified as an attribute of a a TableHeaderRow tag. It is consulted when the user clicks on a column to do sorting, or clicks the select all checkbox. The delegate is expected to carry out whatever is needed such that rendering the table will reflect the appropriate change (e.g. the data is sorted appropriately or all rows have their columns checked).


Method Summary
 void selectAll(boolean flag)
          This method is called when the user clicks the select all checkbox in the header.
 void sort(java.lang.Object key, boolean ascending)
          This method is called when the user clicks the label for a sortable column.
 

Method Detail

sort

void sort(java.lang.Object key,
          boolean ascending)
This method is called when the user clicks the label for a sortable column. The delegate should ensure that the data is sorted when it is displayed.

Parameters:
key - The unique key identifying the selected column as specified when the column was constructed.
ascending - True if the data should be sorted in ascending order.

selectAll

void selectAll(boolean flag)
This method is called when the user clicks the select all checkbox in the header.

Parameters:
flag - true if the selet all checkbox was checked on.


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.