Skip to content

dylanwatsonsoftware/vaadin-blueimp-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vaadin Blueimp Image Gallery

Add the Blueimp Image Gallery to your Vaadin 7 Application.

Build Status

Download

Download the latest release via Maven Central:

<dependency>
    <groupId>com.github.lotsabackscatter</groupId>
    <artifactId>vaadin-blueimp-gallery</artifactId>
    <version>1.0</version>
</dependency>

Or Download the latest SNAPSHOT via the Sonatype Maven Repository:

<repositories>
    <repository>
        <id>oss-sonatype</id>
        <name>oss-sonatype</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

...

<dependency>
  <groupId>com.github.lotsabackscatter</groupId>
  <artifactId>vaadin-blueimp-gallery</artifactId>
  <version>1.1-SNAPSHOT</version>
</dependency>

Usage

Simply create a layout and add the Gallery component to it!

VerticalLayout layout = new VerticalLayout();
Gallery gallery = new Gallery();
layout.addComponent(gallery);

Then, just create the images and show the gallery!

Image apple = new Image.Builder().title("Apple")
        .href("apple.jpg")
        .thumbnail("thumbs/apple.jpg").build();
        
Image banana = new Image.Builder().title("Banana")
        .href("banana.jpg")
        .thumbnail("thumbs/banana.jpg").build();        

gallery.showGallery(apple, banana);

Developed By

License

Copyright 2014 Dylan Watson.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.