blob: 91fb51034b714eca95c6202de3e585c3dfa16e49 (
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.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
public class Ticket2271 extends Application.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);
}
}
|