Package io.jmix.ui.component
Interface TextArea<V>
- Type Parameters:
V- type of value
- All Superinterfaces:
Buffered,Component,Component.BelongToFrame,Component.Editable,Component.Focusable,Component.HasCaption,Component.HasDescription,Component.HasIcon,Field<V>,HasContextHelp,HasConversionErrorMessage,HasDatatype<V>,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,HasInputPrompt,HasValidator<V>,HasValue<V>,HasValueSource<V>,Requirable,TextInputField<V>,TextInputField.CaseConversionSupported,TextInputField.CursorPositionSupported,TextInputField.MaxLengthLimited,TextInputField.TextChangeNotifier,TextInputField.TextSelectionSupported,TextInputField.TrimSupported,Validatable
- All Known Subinterfaces:
ResizableTextArea<V>
- All Known Implementing Classes:
AbstractTextArea,ResizableTextAreaImpl,TextAreaImpl
@StudioComponent(caption="TextArea",
category="Components",
xmlElement="textArea",
icon="io/jmix/ui/icon/component/textArea.svg",
canvasBehaviour=TEXT_AREA,
documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/text-area.html")
public interface TextArea<V>
extends TextInputField<V>, HasDatatype<V>, TextInputField.MaxLengthLimited, TextInputField.CursorPositionSupported, TextInputField.TrimSupported, TextInputField.TextChangeNotifier, TextInputField.TextSelectionSupported, TextInputField.CaseConversionSupported, HasInputPrompt, HasConversionErrorMessage
A text field that supports multi line editing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.HasValue
HasValue.ValueChangeEvent<V>Nested classes/interfaces inherited from interface io.jmix.ui.component.TextInputField
TextInputField.CaseConversion, TextInputField.CaseConversionSupported, TextInputField.CursorPositionSupported, TextInputField.EnterPressEvent, TextInputField.EnterPressNotifier, TextInputField.HtmlNameSupported, TextInputField.MaxLengthLimited, TextInputField.TextChangeEvent, TextInputField.TextChangeEventMode, TextInputField.TextChangeNotifier, TextInputField.TextSelectionSupported, TextInputField.TrimSupported -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.springframework.core.ParameterizedTypeReference<TextArea<BigDecimal>>static final org.springframework.core.ParameterizedTypeReference<TextArea<LocalDateTime>>static final org.springframework.core.ParameterizedTypeReference<TextArea<OffsetTime>>Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionReturns a string representation of the value.intgetRows()booleanvoidsetRows(int rows) Sets the number of rows in the text area.voidsetWordWrap(boolean wordWrap) Sets whether word wrapping is enabled or not.Methods inherited from interface io.jmix.ui.component.Buffered
commit, discard, isBuffered, isModified, setBufferedMethods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditableMethods inherited from interface io.jmix.ui.component.Component.Focusable
focus, getTabIndex, isFocusable, setFocusable, setTabIndexMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasConversionErrorMessage
getConversionErrorMessage, setConversionErrorMessageMethods inherited from interface io.jmix.ui.component.HasDatatype
getDatatype, setDatatypeMethods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasInputPrompt
getInputPrompt, setInputPromptMethods inherited from interface io.jmix.ui.component.HasValidator
addValidator, addValidators, getValidators, removeValidatorMethods inherited from interface io.jmix.ui.component.HasValue
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValueMethods inherited from interface io.jmix.ui.component.data.HasValueSource
getValueSource, setValueSourceMethods inherited from interface io.jmix.ui.component.Requirable
getRequiredMessage, isRequired, setRequired, setRequiredMessageMethods inherited from interface io.jmix.ui.component.TextInputField.CaseConversionSupported
getCaseConversion, setCaseConversionMethods inherited from interface io.jmix.ui.component.TextInputField.CursorPositionSupported
setCursorPositionMethods inherited from interface io.jmix.ui.component.TextInputField.MaxLengthLimited
getMaxLength, setMaxLengthMethods inherited from interface io.jmix.ui.component.TextInputField.TextChangeNotifier
addTextChangeListener, getTextChangeEventMode, getTextChangeTimeout, setTextChangeEventMode, setTextChangeTimeoutMethods inherited from interface io.jmix.ui.component.TextInputField.TextSelectionSupported
selectAll, setSelectionRangeMethods inherited from interface io.jmix.ui.component.TextInputField.TrimSupported
isTrimming, setTrimmingMethods inherited from interface io.jmix.ui.component.Validatable
isValid, isValidateOnCommit, validate
-
Field Details
-
NAME
- See Also:
-
TYPE_DEFAULT
-
TYPE_STRING
-
TYPE_INTEGER
-
TYPE_LONG
-
TYPE_DOUBLE
-
TYPE_BIGDECIMAL
static final org.springframework.core.ParameterizedTypeReference<TextArea<BigDecimal>> TYPE_BIGDECIMAL -
TYPE_DATE
-
TYPE_DATETIME
-
TYPE_LOCALDATE
-
TYPE_LOCALDATETIME
static final org.springframework.core.ParameterizedTypeReference<TextArea<LocalDateTime>> TYPE_LOCALDATETIME -
TYPE_TIME
-
TYPE_OFFSETTIME
static final org.springframework.core.ParameterizedTypeReference<TextArea<OffsetTime>> TYPE_OFFSETTIME
-
-
Method Details
-
getRows
int getRows()- Returns:
- the number of rows
-
setRows
Sets the number of rows in the text area.- Parameters:
rows- the number of rows
-
isWordWrap
boolean isWordWrap()- Returns:
- whether word wrapping is enabled or not
-
setWordWrap
Sets whether word wrapping is enabled or not.- Parameters:
wordWrap- wordWrap
-
getRawValue
String getRawValue()Returns a string representation of the value.
-