|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractField
com.vaadin.ui.AbstractTextField
com.vaadin.ui.TextArea
public class TextArea
A text field that supports multi line editing.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractTextField |
---|
AbstractTextField.TextChangeEventImpl, AbstractTextField.TextChangeEventMode |
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractField |
---|
AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEvent |
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
---|
AbstractComponent.ComponentErrorEvent, AbstractComponent.ComponentErrorHandler |
Nested classes/interfaces inherited from interface com.vaadin.ui.Field |
---|
Field.ValueChangeEvent |
Nested classes/interfaces inherited from interface com.vaadin.data.Buffered |
---|
Buffered.SourceException |
Nested classes/interfaces inherited from interface com.vaadin.data.Property |
---|
Property.ConversionException, Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer |
Constructor Summary | |
---|---|
TextArea()
Constructs an empty TextArea. |
|
TextArea(Property dataSource)
Constructs a TextArea with given property data source. |
|
TextArea(String caption)
Constructs an empty TextArea with given caption. |
|
TextArea(String caption,
Property dataSource)
Constructs a TextArea with given caption and property data source. |
|
TextArea(String caption,
String value)
Constructs a TextArea with given caption and value. |
Method Summary | |
---|---|
int |
getRows()
Gets the number of rows in the text area. |
boolean |
isWordwrap()
Tests if the text area is in word-wrap mode. |
void |
paintContent(PaintTarget target)
Paints any needed component-specific things to the given UIDL stream. |
void |
setRows(int rows)
Sets the number of rows in the text area. |
void |
setWordwrap(boolean wordwrap)
Sets the text area's word-wrap mode on or off. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.Field |
---|
getDescription, setCaption, setDescription |
Constructor Detail |
---|
public TextArea()
public TextArea(String caption)
caption
- the caption for the field.public TextArea(Property dataSource)
dataSource
- the data source for the fieldpublic TextArea(String caption, Property dataSource)
caption
- the caption for the fielddataSource
- the data source for the fieldpublic TextArea(String caption, String value)
caption
- the caption for the fieldvalue
- the value for the fieldMethod Detail |
---|
public void setRows(int rows)
rows
- the number of rows for this text area.public int getRows()
public void setWordwrap(boolean wordwrap)
wordwrap
- the boolean value specifying if the text area should be in
word-wrap mode.public boolean isWordwrap()
true
if the component is in word-wrap mode,
false
if not.public void paintContent(PaintTarget target) throws PaintException
AbstractComponent
AbstractComponent.paint(PaintTarget)
method handles all general
attributes common to all components, and it calls this method to paint
any component-specific attributes to the UIDL stream.
paintContent
in class AbstractTextField
target
- the target UIDL stream where the component should paint itself
to
PaintException
- if the paint operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |