Vaadin, Cordova/Phonegap integration

I am trying to develop vaadin touckit project for barcode scanner. I found barcode scanner plugin here But don`t know how to integrate this to vaadin. I am new to vaadin and cordova. So please help me to get right way. And if anyone done this before please give me some sample so that i can easily understand the work flow.