Is there a way to list the selected items? I know the metho

Is there a way to list the selected items? I know the
method for listing the checked boxes.

The
getSelectedItemId returns selected item, in case of multi selection it returns
a comma separated list as string