Skip to content

samie/vaadin-googlepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on Vaadin  Directory Stars on Vaadin Directory

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

Contributors 3

  •  
  •  
  •