Project

General

Profile

Revision b418455f

IDb418455f11506eefcc295c420750806e0ce038d6
Parent dde59526
Child 571401ad

Added by Andreas Kohlbecker about 2 years ago

removing obsolete example code

View differences:

src/main/java/com/example/cdm_vaadin/Cdm_vaadinUI.java
1
package com.example.cdm_vaadin;
2

  
3
import com.vaadin.annotations.Theme;
4
import com.vaadin.server.VaadinRequest;
5
import com.vaadin.ui.Button;
6
import com.vaadin.ui.Button.ClickEvent;
7
import com.vaadin.ui.Label;
8
import com.vaadin.ui.UI;
9
import com.vaadin.ui.VerticalLayout;
10

  
11
@SuppressWarnings("serial")
12
@Theme("cdm_vaadin")
13
public class Cdm_vaadinUI extends UI {
14

  
15
	@Override
16
	protected void init(VaadinRequest request) {
17
		final VerticalLayout layout = new VerticalLayout();
18
		layout.setMargin(true);
19
		setContent(layout);
20

  
21
		Button button = new Button("Click Me");
22
		button.addClickListener(new Button.ClickListener() {
23
			public void buttonClick(ClickEvent event) {
24
				layout.addComponent(new Label("Thank you for clicking"));
25
			}
26
		});
27
		layout.addComponent(button);
28
	}
29

  
30
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)