onNavigate

The event is fired when the user clicks on one of the navigation buttons that are displayed in the footer section of the tableView. The method getFirstVisibleRowAfter returns the first visible row after the event. Therefore it is not necessary to investigate which navigation button was pressed. This makes the onNavigate event handling routine very small.

Example

using the taglib

//CALLEDIFTHENAVIGATIONEVENTWASSEND public void  onNavigation(Eventevent){ if  (event instanceof  TableNavigationEvent){ //Getthenavigationevent TableNavigationEventtne=(TableNavigationEvent)event; //UsegetGirstVisibleRowAftertoreceivethefirstvisiblerow this .visibleRow=tne.getFirstVisibleRowAfter(); if  (myBean!= null ){ /*justforthefirsttime,whenthereisnobean.Setthevisiblerowinthemodel-thetableViewshowsthe newresultafterthepageistransmitted*/ myBean.setVisibleRow( new  Integer( this .visibleRow).toString());}} else  { //wrongevent... }}