Skip to content

jennielynshapiro/vaadin-googlepicker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vaadin-googlepicker

Google Picker integration for Vaadin. Implements a UI extension that you can use to open up the Google Picker interface to choose files and other resources from Google Drive.

Creating a GooglePicker

To use Google Picker in your application you need to get a API Key and Client ID from Google Developer Console https://console.developers.google.com/

        picker = new GooglePicker(API_KEY, CLIENT_ID);
        picker.addSelectionListener(new GooglePicker.SelectionListener() {

            @Override
            public void documentSelected(GooglePicker.Document document) {
                String name = document.getName();
                // Do something with the chosen document
            }

        });
        addExtension(picker);

        // Open selection dialog for spreadseets
        picker.pickDocument(GooglePicker.Type.SPREADSHEETS);

More information about Google Picker: https://developers.google.com/picker/

About

Google Picker integration for Vaadin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 70.5%
  • JavaScript 28.8%
  • CSS 0.7%