public class ResizableTextAreaImpl<V> extends AbstractTextArea<JmixTextArea,V> implements ResizableTextArea<V>, org.springframework.beans.factory.InitializingBean
ResizableTextArea.ResizeDirection, ResizableTextArea.ResizeEvent
TextInputField.CaseConversion, TextInputField.CaseConversionSupported, TextInputField.CursorPositionSupported, TextInputField.EnterPressEvent, TextInputField.EnterPressNotifier, TextInputField.HtmlNameSupported, TextInputField.MaxLengthLimited, TextInputField.TextChangeEvent, TextInputField.TextChangeEventMode, TextInputField.TextChangeNotifier, TextInputField.TextSelectionSupported, TextInputField.TrimSupported
HasValue.ValueChangeEvent<V>
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
protected JmixResizableTextAreaWrapper |
wrapper |
conversionErrorMessage, dataAwareComponentsTools, datatype, locale, trimming
editable, parentEditableChangeListener, validators, VALIDATORS_LIST_INITIAL_CAPACITY
internalValue, uiTestIdsSupport, valueBinding
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
NAME
TYPE_BIGDECIMAL, TYPE_DATE, TYPE_DATETIME, TYPE_DEFAULT, TYPE_DOUBLE, TYPE_INTEGER, TYPE_LOCALDATE, TYPE_LOCALDATETIME, TYPE_LONG, TYPE_OFFSETTIME, TYPE_STRING, TYPE_TIME
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Constructor and Description |
---|
ResizableTextAreaImpl() |
Modifier and Type | Method and Description |
---|---|
io.jmix.core.common.event.Subscription |
addResizeListener(java.util.function.Consumer<ResizableTextArea.ResizeEvent> listener)
Adds a listener that is fired when the component is resized.
|
void |
afterPropertiesSet() |
protected void |
componentValueChanged(java.lang.String prevComponentValue,
java.lang.String newComponentValue,
boolean isUserOriginated) |
protected JmixTextArea |
createComponent() |
java.lang.String |
getCaption() |
TextInputField.CaseConversion |
getCaseConversion() |
com.vaadin.ui.Component |
getComposition() |
java.lang.String |
getDescription() |
java.lang.String |
getRequiredMessage() |
ResizableTextArea.ResizeDirection |
getResizableDirection()
Get the direction in which the textArea size changes.
|
protected void |
initComponent(JmixTextArea component) |
boolean |
isCaptionAsHtml() |
boolean |
isRequired() |
protected void |
onResize(java.lang.String oldWidth,
java.lang.String oldHeight,
java.lang.String width,
java.lang.String height) |
void |
setCaption(java.lang.String caption)
Sets the component's caption.
|
void |
setCaptionAsHtml(boolean captionAsHtml)
Sets whether the caption is rendered as HTML.
|
void |
setCaseConversion(TextInputField.CaseConversion caseConversion)
Disable automatic case conversion or enable with chosen mode
|
void |
setDescription(java.lang.String description)
Sets the component's description.
|
protected void |
setEditableToComponent(boolean editable) |
void |
setRequired(boolean required)
Sets whether the component must contain a non-null value.
|
void |
setRequiredMessage(java.lang.String msg)
Sets a message that will be displayed to user if the field is required but has null value.
|
void |
setResizableDirection(ResizableTextArea.ResizeDirection direction)
Allows resizing textArea in a given direction.
|
addTextChangeListener, commit, convertToModel, convertToPresentation, discard, fireTextChangeEvent, focus, getConversionErrorMessage, getConversionErrorMessageInternal, getDatatype, getInputPrompt, getMaxLength, getRawValue, getRows, getTabIndex, getTextChangeEventMode, getTextChangeTimeout, isBuffered, isEmpty, isModified, isTrimming, isWordWrap, selectAll, setBuffered, setConversionErrorMessage, setCurrentAuthentication, setCursorPosition, setDataAwareComponentsTools, setDatatype, setInputPrompt, setMaxLength, setRows, setSelectionRange, setTabIndex, setTextChangeEventMode, setTextChangeTimeout, setTrimming, setWordWrap, valueBindingConnected
addValidator, attachValueChangeListener, getDatatypeConversionErrorMsg, getDefaultRequiredMessage, getErrorMessage, getValidators, isEditable, isValid, removeValidator, setEditable, setParent, setupComponentErrorProvider, triggerValidators, validate
addValueChangeListener, fieldValueEquals, getValue, getValueSource, setUiTestId, setUiTestIdsSupport, setValue, setValueSource, setValueToPresentation, valueBindingActivated
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getComponent, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRawValue, getRows, isWordWrap, setRows, setWordWrap
getValueSource, setValueSource
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
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, withUnwrappedComposition
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
addValidator, addValidators, getValidators, removeValidator
commit, discard, isBuffered, isModified, setBuffered
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
getDatatype, setDatatype
getMaxLength, setMaxLength
setCursorPosition
isTrimming, setTrimming
addTextChangeListener, getTextChangeEventMode, getTextChangeTimeout, setTextChangeEventMode, setTextChangeTimeout
selectAll, setSelectionRange
getInputPrompt, setInputPrompt
getConversionErrorMessage, setConversionErrorMessage
protected JmixResizableTextAreaWrapper wrapper
protected void componentValueChanged(java.lang.String prevComponentValue, java.lang.String newComponentValue, boolean isUserOriginated)
componentValueChanged
in class AbstractTextArea<JmixTextArea,V>
protected JmixTextArea createComponent()
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
protected void initComponent(JmixTextArea component)
public com.vaadin.ui.Component getComposition()
getComposition
in interface Component.Wrapper
getComposition
in class AbstractComponent<JmixTextArea>
@Nullable public java.lang.String getCaption()
getCaption
in interface Component.HasCaption
getCaption
in class AbstractComponent<JmixTextArea>
public void setCaption(@Nullable java.lang.String caption)
Component.HasCaption
setCaption
in interface Component.HasCaption
setCaption
in class AbstractComponent<JmixTextArea>
caption
- the new component's captionpublic boolean isCaptionAsHtml()
isCaptionAsHtml
in interface HasHtmlCaption
isCaptionAsHtml
in class AbstractComponent<JmixTextArea>
true
if the caption is rendered as HTML,
false
if rendered as plain textpublic void setCaptionAsHtml(boolean captionAsHtml)
HasHtmlCaption
setCaptionAsHtml
in interface HasHtmlCaption
setCaptionAsHtml
in class AbstractComponent<JmixTextArea>
captionAsHtml
- true
if the caption is rendered as HTML,
false
if rendered as plain textComponent.HasCaption.setCaption(String)
@Nullable public java.lang.String getDescription()
getDescription
in interface Component.HasDescription
getDescription
in class AbstractComponent<JmixTextArea>
public void setDescription(@Nullable java.lang.String description)
Component.HasDescription
setDescription
in interface Component.HasDescription
setDescription
in class AbstractComponent<JmixTextArea>
description
- the new description to setpublic boolean isRequired()
isRequired
in interface Requirable
isRequired
in class AbstractField<JmixTextArea,java.lang.String,V>
public void setRequired(boolean required)
Requirable
setRequired
in interface Requirable
setRequired
in class AbstractField<JmixTextArea,java.lang.String,V>
required
- requiredprotected void setEditableToComponent(boolean editable)
setEditableToComponent
in class AbstractField<JmixTextArea,java.lang.String,V>
@Nullable public java.lang.String getRequiredMessage()
getRequiredMessage
in interface Requirable
getRequiredMessage
in class AbstractField<JmixTextArea,java.lang.String,V>
public void setRequiredMessage(@Nullable java.lang.String msg)
Requirable
setRequiredMessage
in interface Requirable
setRequiredMessage
in class AbstractField<JmixTextArea,java.lang.String,V>
msg
- messagepublic TextInputField.CaseConversion getCaseConversion()
getCaseConversion
in interface TextInputField.CaseConversionSupported
public void setCaseConversion(TextInputField.CaseConversion caseConversion)
TextInputField.CaseConversionSupported
setCaseConversion
in interface TextInputField.CaseConversionSupported
public ResizableTextArea.ResizeDirection getResizableDirection()
ResizableTextArea
getResizableDirection
in interface ResizableTextArea<V>
public io.jmix.core.common.event.Subscription addResizeListener(java.util.function.Consumer<ResizableTextArea.ResizeEvent> listener)
ResizableTextArea
addResizeListener
in interface ResizableTextArea<V>
listener
- a listener to addpublic void setResizableDirection(ResizableTextArea.ResizeDirection direction)
ResizableTextArea
setResizableDirection
in interface ResizableTextArea<V>
direction
- the direction in which resizes textArea.protected void onResize(java.lang.String oldWidth, java.lang.String oldHeight, java.lang.String width, java.lang.String height)