|
||||||||||
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.TextField
com.vaadin.ui.RichTextArea
public class RichTextArea
A simple RichTextArea to edit HTML format text.
Note, that using TextField.setMaxLength(int)
method in
RichTextArea
may produce unexpected results as formatting is counted
into length of field.
Nested Class Summary |
---|
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 | |
---|---|
RichTextArea()
Constructs an empty RichTextArea with no caption. |
|
RichTextArea(Property dataSource)
Constructs a new RichTextArea that's bound to the specified
Property and has no caption. |
|
RichTextArea(String caption)
Constructs an empty RichTextArea with the given caption. |
|
RichTextArea(String caption,
Property dataSource)
Constructs a new RichTextArea that's bound to the specified
Property and has the given caption. |
|
RichTextArea(String caption,
String value)
Constructs a new RichTextArea with the given caption and
initial text contents. |
Method Summary | |
---|---|
void |
paintContent(PaintTarget target)
Paints any needed component-specific things to the given UIDL stream. |
void |
setInputPrompt(String inputPrompt)
RichTextArea does not support input prompt. |
void |
setReadOnly(boolean readOnly)
Changes the readonly state and throw read-only status change events. |
Methods inherited from class com.vaadin.ui.TextField |
---|
addListener, addListener, changeVariables, getColumns, getFormat, getFormattedValue, getInputPrompt, getMaxLength, getNullRepresentation, getRows, getType, getValue, isEmpty, isNullSettingAllowed, isSecret, isWordwrap, removeListener, removeListener, selectAll, setColumns, setCursorPosition, setFormat, setHeight, setHeight, setMaxLength, setNullRepresentation, setNullSettingAllowed, setRows, setSecret, setSelectionRange, setWordwrap |
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 RichTextArea()
RichTextArea
with no caption.
public RichTextArea(String caption)
RichTextArea
with the given caption.
caption
- the caption for the editor.public RichTextArea(Property dataSource)
RichTextArea
that's bound to the specified
Property
and has no caption.
dataSource
- the data source for the editor valuepublic RichTextArea(String caption, Property dataSource)
RichTextArea
that's bound to the specified
Property
and has the given caption.
caption
- the caption for the editor.dataSource
- the data source for the editor valuepublic RichTextArea(String caption, String value)
RichTextArea
with the given caption and
initial text contents.
caption
- the caption for the editor.value
- the initial text content of the editor.Method Detail |
---|
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 TextField
target
- the target UIDL stream where the component should paint itself
to
PaintException
- if the paint operation failed.public void setInputPrompt(String inputPrompt)
setInputPrompt
in class TextField
public void setReadOnly(boolean readOnly)
AbstractField
setReadOnly
in interface Property
setReadOnly
in interface Component
setReadOnly
in class AbstractField
readOnly
- a boolean value specifying whether the component is put
read-only mode or notComponent.setReadOnly(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |