blob: e7e5b515d9a877da7ab23dc1997252bbae59fe43 (
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
38
39
|
/*
@ITMillApache2LicenseForJavaFiles@
*/
package com.itmill.toolkit.ui;
import java.util.Collection;
import com.itmill.toolkit.data.Container;
import com.itmill.toolkit.terminal.PaintException;
import com.itmill.toolkit.terminal.PaintTarget;
/**
* Configures select to be used as an option group.
*/
public class OptionGroup extends AbstractSelect {
public OptionGroup() {
super();
}
public OptionGroup(String caption, Collection options) {
super(caption, options);
}
public OptionGroup(String caption, Container dataSource) {
super(caption, dataSource);
}
public OptionGroup(String caption) {
super(caption);
}
public void paintContent(PaintTarget target) throws PaintException {
target.addAttribute("type", "optiongroup");
super.paintContent(target);
}
}
|