setAdapter method
Merge pull request #25 from JindrichPilar/2.x

setAdapter method