blob: e2ce5448e6407a9fa297f37ed70cb249aa1a2dc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package com.vaadin.tests.widgetset.server;
import com.vaadin.tests.widgetset.client.DelegateState;
import com.vaadin.ui.AbstractComponent;
public class DelegateToWidgetComponent extends AbstractComponent {
public DelegateToWidgetComponent() {
DelegateState state = getState();
state.value1 = "My String";
state.renamedValue2 = 42;
state.setValue3(Boolean.TRUE);
state.setRenamedValue4(Math.PI);
}
@Override
protected DelegateState getState() {
return (DelegateState) super.getState();
}
}
|