blob: 625c8cf43588c3f6a69366dcac3ecda9462d3a4e (
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
|
package com.vaadin.tests.minitutorials.v7a2;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;
/**
* Mini tutorial code for
* https://vaadin.com/wiki/-/wiki/Main/Creating%20a%20simple%20component,
* https://vaadin.com/wiki/-/wiki/Main/Creating%20a%20simple%20component,
* https://vaadin.com/wiki/-/wiki/Main/Sending%
* 20events%20from%20the%20client%20to%20the%20server%20using%20RPC,
* https://vaadin
* .com/wiki/-/wiki/Main/Using%20RPC%20to%20send%20events%20to%20the%20client
*
* @author Vaadin Ltd
* @since 7.0.0
*/
@Widgetset("com.vaadin.tests.widgetset.TestingWidgetSet")
public class MyComponentUI extends UI {
@Override
protected void init(VaadinRequest request) {
MyComponent component = new MyComponent();
component.setText("My component text");
setContent(component);
}
}
|