Skip to content

Instantly share code, notes, and snippets.

@sebnozzi
Last active August 29, 2015 14:01
Show Gist options
  • Save sebnozzi/5fdf40ebc4e0805040c4 to your computer and use it in GitHub Desktop.
Save sebnozzi/5fdf40ebc4e0805040c4 to your computer and use it in GitHub Desktop.
Comparing Vaadin/Java and Scaladin
final Button greetButton = new Button("Greet");
greetButton.addClickListener(new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
Notification.show("Hi there!");
}
});
val greetButton = new Button("Greet") {
clickListeners += Notification.show("Hi there!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment