public interface UiWidgetRichTextField extends UiWidgetTextualInputField<String>, AttributeWriteKeyboardFilter, AttributeWriteHeightInRows, UiWidgetNative
input field widget
that represents a rich text area
field. Such field is like UiWidgetTextAreaField
but allows to enter rich text with markup. It should support
the user with a nice toolbar that allows to apply styles to the selected text (e.g. bold, italic, blockquote, etc.).
It should also support unordered and ordered lists as well as headings (at least four levels). Also insertion of
hyperlinks and images should be possible.Modifier and Type | Field and Description |
---|---|
static String |
STYLE_RICH_TEXT_AREA
The
primary style of the internal widget with the rich text area. |
STYLE_FIELD, STYLE_LABEL, STYLE_MANDATORY, STYLE_VIEW
STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_LABEL
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
Modifier and Type | Method and Description |
---|---|
void |
setAvailableFeatures(RichTextFeature... features)
This method sets the
RichTextFeature that should be available for the end-user. |
void |
setValue(String value)
This method sets the
value . |
getLabel, getLabelWidget, setLabel
getChild, getChild
getChildCount, getChildIndex
getContext, getParent, getSize
clearMessages
addEventHandler, removeEventHandler
setMode
getMode
setModeFixed
getModeFixed
setId
getId
setTooltip
getTooltip
getVisibleFlag, isVisible, setVisible, setVisible
isVisibleRecursive
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
isModified
getAriaRole
getValue
getValueAndValidate, getValueDirect
addChangeHandler, removeChangeHandler
resetValue, setValue, setValueForUser
getOriginalValue, getValueOrException
addValidatorMandatory, isMandatory
addValidator, removeValidator
setValueAsString
getValueAsString
setValidationFailure
getValidationFailure
setTrimValue
isTrimValue
setAccessKey
getAccessKey
addFocusHandler, removeFocusHandler
isFocused
setFocused
setMaximumTextLength
getMaximumTextLength
setKeyboardFilter
getKeyboardFilter
setHeightInRows
getHeightInRows
static final String STYLE_RICH_TEXT_AREA
primary style
of the internal widget with the rich text area.void setValue(String value)
value
.
It will also set the modified
flag to false
.
UiWidgetRichTextField
(and NOT any other widget) in the same client
instance.setValue
in interface AttributeWriteValue<String>
setValue
in interface AttributeWriteValueAdvanced<String>
value
- is the new value
. May be null
unless otherwise stated.void setAvailableFeatures(RichTextFeature... features)
RichTextFeature
that should be available for the end-user. By default all
RichTextFeature
s are active. This method allows to reduce the offered features to those explicitly
specified to this method. Then only these features are visible in the toolbar of this rich-text field and
accessibly via keyboard shortcuts.features
- are the RichTextFeature
s that shall be available.Copyright © 2001–2016 mmm-Team. All rights reserved.