|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractField<java.lang.String>
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 interface com.vaadin.ui.Component |
|---|
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener |
| Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
|---|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener |
| Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable |
|---|
Sizeable.Unit |
| 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.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer |
| Field Summary |
|---|
| Fields inherited from class com.vaadin.ui.AbstractComponent |
|---|
DESIGN_ATTR_PLAIN_TEXT |
| Fields inherited from interface com.vaadin.server.Sizeable |
|---|
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
| Constructor Summary | |
|---|---|
TextArea()
Constructs an empty TextArea. |
|
TextArea(Property dataSource)
Constructs a TextArea with given property data source. |
|
TextArea(java.lang.String caption)
Constructs an empty TextArea with given caption. |
|
TextArea(java.lang.String caption,
Property dataSource)
Constructs a TextArea with given caption and property data source. |
|
TextArea(java.lang.String caption,
java.lang.String value)
Constructs a TextArea with given caption and value. |
|
| Method Summary | |
|---|---|
int |
getRows()
Gets the number of rows in the text area. |
protected com.vaadin.shared.ui.textarea.TextAreaState |
getState()
Returns the shared state bean with information to be sent from the server to the client. |
protected com.vaadin.shared.ui.textarea.TextAreaState |
getState(boolean markAsDirty)
Returns the shared state for this connector. |
boolean |
isWordwrap()
Tests if the text area is in word-wrap mode. |
void |
readDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
Reads the component state from the given design. |
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. |
void |
writeDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
Writes the component state to the given design. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.LegacyComponent |
|---|
markAsDirty |
| Methods inherited from interface com.vaadin.server.VariableOwner |
|---|
isEnabled, isImmediate |
| Methods inherited from interface com.vaadin.ui.Component |
|---|
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Methods inherited from interface com.vaadin.server.Sizeable |
|---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined |
| Methods inherited from interface com.vaadin.event.Action.ShortcutNotifier |
|---|
addShortcutListener, removeShortcutListener |
| Constructor Detail |
|---|
public TextArea()
public TextArea(java.lang.String caption)
caption - the caption for the field.public TextArea(Property dataSource)
dataSource - the data source for the field
public TextArea(java.lang.String caption,
Property dataSource)
caption - the caption for the fielddataSource - the data source for the field
public TextArea(java.lang.String caption,
java.lang.String value)
caption - the caption for the fieldvalue - the value for the field| Method Detail |
|---|
protected com.vaadin.shared.ui.textarea.TextAreaState getState()
AbstractComponent
getState in class AbstractTextFieldprotected com.vaadin.shared.ui.textarea.TextAreaState getState(boolean markAsDirty)
AbstractClientConnector
getState in class AbstractTextFieldmarkAsDirty - true if the connector should automatically be marked dirty,
false otherwise
AbstractClientConnector.getState()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 readDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
ComponentThe component is responsible not only for updating its own state but also for ensuring that its children update their state based on the design.
It is assumed that the component is in its default state when this method is called. Reading should only take into consideration attributes specified in the design and not reset any unspecified attributes to their defaults.
This method must not modify the design.
readDesign in interface ComponentreadDesign in class AbstractTextFielddesign - The design as HTML to obtain the state fromdesignContext - The DesignContext instance used for parsing the design
public void writeDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
ComponentThe component is responsible not only for writing its own state but also for ensuring that its children write their state to the design.
This method must not modify the component state.
writeDesign in interface ComponentwriteDesign in class AbstractTextFielddesign - The design as HTML to update with the current state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||