• Post Reply Bookmark Topic Watch Topic
  • New Topic

howto detect datacroller button press  RSS feed

Arnie Morein
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I build a data table and scroller in code at run time for an ad-hoc inquiry app. I need to know which button (first)(previous)(next)(last) the user pressed. I had done this:

new Class[] {ActionEvent.class}));

but I cannot figure out how to discern which button was pressed.

I was thinking maybe if I used a value binding to the control, there might be a property that could tell me, but thus far, looking through the API docs has be fruitless.

I understand that the entire purpose of the datascroller is automate the paging but I had to write a descendant of datamodel that allows me to page through a resultset based on a stored procedure. The SP requires parameters that tell it which page to display (based on the number of recs per page).

As I understand it, shouldn't the data scroller call methods on the data model to point to a new rowIndex?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!