Show TOC

Syntax documentationonHeaderClick Locate this document in the navigation structure

The event is fired when the user clicks on one of the columns in the header of the table.

Example

Syntax Syntax

  1.     /* Get the tableView component */
        TableView table = (TableView) this.getComponentByName("myTableView");
    
        /* Set the onHeaderClick event */
        table.setOnHeaderClick("onHeaderClick");
        ..
    
        /*  the method onHeaderClick has to be declared in the DynPage.
    
            Otherwise an exception is thrown ("method not found") when the
    
            user clicks on the header of the tableView.
    
            Declaring onHeaderClick: */
        public void onHeaderClick(Event event) {
            System.out.println("Header click");
        }
    
End of the code.