Code to run a table mass action from a button?

Did you want the button to only run the action on the rows the user has selected, or does it assume they want to run it on all the rows in the model?