onHeaderClick
The event is fired when the user clicks on one of the columns in the header of the table.
Example
|
/*GetthetableViewcomponent*/ TableViewtable=(TableView) this .getComponentByName( "myTableView" ); /*SettheonHeaderClickevent*/ table.setOnHeaderClick( "onHeaderClick" );.. /*themethodonHeaderClickhastobedeclaredintheDynPage. Otherwiseanexceptionisthrown("methodnotfound")whenthe userclicksontheheaderofthetableView.DeclaringonHeaderClick:*/ public void onHeaderClick(Eventevent){System.out.println( "Headerclick" );} |