blob: f10f0df76ec809467adf0c06b0ec990425460b9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package com.vaadin.tests.tickets;
import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2271 extends LegacyApplication {
@Override
public void init() {
LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
setMainWindow(w);
// setTheme("tests-tickets");
createUI((AbstractOrderedLayout) w.getContent());
}
private void createUI(AbstractOrderedLayout layout) {
VerticalLayout ol = new VerticalLayout();
ol.setWidth(null);
ComboBox cb = new ComboBox("Asiakas");
cb.setWidth("100%");
Button b = new Button("View CSV-tiedostoon");
ol.addComponent(cb);
ol.addComponent(b);
layout.addComponent(ol);
}
}
|