blob: fefd7a0b28e4c1f1217fa828f7883b38cc7d8965 (
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
36
37
|
package com.vaadin.tests.components.tabsheet;
import com.vaadin.server.UserError;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Label;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TabSheet.Tab;
public class TabsheetTooltip extends TestBase {
@Override
protected String getDescription() {
return "The label inside the tabsheet should show a tooltip 'This is a label' and the tab should show a different tooltip 'This is a tab'";
}
@Override
protected Integer getTicketNumber() {
return 2995;
}
@Override
protected void setup() {
TabSheet tabSheet = new TabSheet();
Label l = new Label("Label");
l.setDescription("This is a label");
Tab tab = tabSheet.addTab(l, "Tab", null);
tab.setDescription("This is a tab");
tab.setComponentError(new UserError("abc error"));
Tab tab2 = tabSheet.addTab(new Label("Another label, d'oh"), "Tab 2",
null);
tab2.setDescription("This is another tab");
addComponent(tabSheet);
}
}
|