Skip to content

Instantly share code, notes, and snippets.

@christoph-frick
Created May 19, 2015 15:09
Show Gist options
  • Save christoph-frick/074e01ddea9ebb0fdf27 to your computer and use it in GitHub Desktop.
Save christoph-frick/074e01ddea9ebb0fdf27 to your computer and use it in GitHub Desktop.
@Grapes([
@Grab('org.vaadin.spring:spring-boot-vaadin:0.0.5.RELEASE'),
@Grab('com.vaadin:vaadin-server:7.4.6'),
@Grab('com.vaadin:vaadin-client-compiled:7.4.6'),
@Grab('com.vaadin:vaadin-themes:7.4.6'),
])
import org.vaadin.spring.annotation.VaadinUI
import com.vaadin.server.VaadinRequest
import com.vaadin.ui.*
@VaadinUI
class MyUI extends UI {
protected void init(VaadinRequest request) {
setContent(new VerticalLayout().with{
setMargin(true)
addComponent(new ComboBox("my box").with{
addItem("Alice")
addItem("Bob")
addItem("Charlie")
it
})
it
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment