blob: 9665a7a98c635e56f9305ccedf51d984fb71503d (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
package com.vaadin.ui;
import com.vaadin.data.Property;
import com.vaadin.terminal.gwt.client.ui.VTextArea;
/**
* A text field that supports multiline editing.
*/
@ClientWidget(VTextArea.class)
public class TextArea extends TextField {
private static final int DEFAULT_ROWS = 5;
/**
* Constructs an empty TextArea.
*/
public TextArea() {
setRows(DEFAULT_ROWS);
}
/**
* Constructs an empty TextArea with given caption.
*
* @param caption
* the caption for the field.
*/
public TextArea(String caption) {
super(caption);
setRows(DEFAULT_ROWS);
}
/**
* Constructs a TextArea with given property data source.
*
* @param dataSource
* the data source for the field
*/
public TextArea(Property dataSource) {
super(dataSource);
setRows(DEFAULT_ROWS);
}
/**
* Constructs a TextArea with given caption and property data source.
*
* @param caption
* the caption for the field
* @param dataSource
* the dato source for the field
*/
public TextArea(String caption, Property dataSource) {
super(caption, dataSource);
setRows(DEFAULT_ROWS);
}
/**
* Constructs a TextArea with given caption and value.
*
* @param caption
* the caption for the field
* @param value
* the value for the field
*/
public TextArea(String caption, String value) {
super(caption, value);
setRows(DEFAULT_ROWS);
}
/**
* Sets the number of rows in the editor.
*
* @param rows
* the number of rows for this editor.
*/
@Override
public void setRows(int rows) {
// TODO implement here once the API from TextField is removed
super.setRows(rows);
}
/**
* Gets the number of rows in the editor. If the number of rows is set to 0,
* the actual number of displayed rows is determined implicitly by the
* adapter.
*
* @return number of explicitly set rows.
*/
@Override
public int getRows() {
// TODO implement here once the API from TextField is removed
return super.getRows();
}
/**
* Sets the editor's word-wrap mode on or off.
*
* @param wordwrap
* the boolean value specifying if the editor should be in
* word-wrap mode after the call or not.
*/
@Override
public void setWordwrap(boolean wordwrap) {
// TODO implement here once the API from TextField is removed
super.setWordwrap(wordwrap);
}
/**
* Tests if the editor is in word-wrap mode.
*
* @return <code>true</code> if the component is in the word-wrap mode,
* <code>false</code> if not.
*/
@Override
public boolean isWordwrap() {
// TODO implement here once the API from TextField is removed
return super.isWordwrap();
}
}
|