blob: 970c2f71c7de08b6191db59e49fa21b2a4b0dfae (
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
|
package com.vaadin.tests.components.link;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.ThemeResource;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Link;
public class LinkIcon extends TestBase {
@Override
protected String getDescription() {
return "The icon of a Link component should have the same cursor as the text and should be clickable";
}
@Override
protected Integer getTicketNumber() {
// TODO Auto-generated method stub
return null;
}
@Override
protected void setup() {
Link l = new Link("www.google.com", new ExternalResource(
"http://www.vaadin.com/"));
l.setIcon(new ThemeResource("../runo/icons/32/calendar.png"));
addComponent(l);
}
}
|