aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui/NativeSelect.java
blob: 187069e8c788b88f0a006c9598d5bfced78e3404 (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
40
41
/**
 * 
 */
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;

/**
 * Since TK5 default select is customized component with mane advanced features
 * over terminals native select components. Sometimes "native" select may still
 * be the best option. Terminal renders this select with its native select
 * widget.
 */
public class NativeSelect extends Select {

	public NativeSelect() {
		super();
	}
	
	public NativeSelect(String caption, Collection options) {
		super(caption, options);
	}

	public NativeSelect(String caption, Container dataSource) {
		super(caption, dataSource);
	}

	public NativeSelect(String caption) {
		super(caption);
	}

	public void paintContent(PaintTarget target) throws PaintException {
		target.addAttribute("type", "native");
		super.paintContent(target);
	}

}