public class DesktopTextArea extends DesktopAbstractTextField<javax.swing.JTextArea> implements TextArea
TextInputField.CaseConversion, TextInputField.CaseConversionSupported, TextInputField.CursorPositionSupported, TextInputField.EnterPressEvent, TextInputField.EnterPressListener, TextInputField.EnterPressNotifier, TextInputField.MaxLengthLimited, TextInputField.TextChangeEvent, TextInputField.TextChangeEventMode, TextInputField.TextChangeListener, TextInputField.TextChangeNotifier, TextInputField.TextSelectionSupported, TextInputField.TrimSupported
Field.Validator
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
DesktopComponent.HasContextHelpClickHandler
SWING_PROPERTY_CLASS, SWING_PROPERTY_ID
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
DesktopTextArea() |
Modifier and Type | Method and Description |
---|---|
void |
addTextChangeListener(TextInputField.TextChangeListener listener) |
void |
commit()
Updates all changes since the previous commit to the data source.
|
void |
discard()
Discards all changes since last commit.
|
TextInputField.CaseConversion |
getCaseConversion() |
int |
getColumns() |
javax.swing.JComponent |
getComposition() |
Datatype |
getDatatype() |
java.lang.String |
getInputPrompt() |
int |
getMaxLength() |
java.lang.String |
getRawValue()
Returns a string representation of the value.
|
int |
getRows() |
TextInputField.TextChangeEventMode |
getTextChangeEventMode() |
int |
getTextChangeTimeout()
Gets the timeout used to fire
TextInputField.TextChangeEvent s when the
TextInputField.TextChangeNotifier.getTextChangeEventMode() is TextInputField.TextChangeEventMode.LAZY or
TextInputField.TextChangeEventMode.TIMEOUT . |
boolean |
isBuffered() |
boolean |
isModified()
Tests if the value stored in the object has been modified since it was
last updated from the data source.
|
boolean |
isTrimming() |
boolean |
isWordwrap() |
void |
removeTextChangeListener(TextInputField.TextChangeListener listener) |
void |
selectAll() |
void |
setBuffered(boolean buffered)
Sets the buffered mode.
|
void |
setCaseConversion(TextInputField.CaseConversion caseConversion)
Disable automatic case conversion or enable with chosen mode
|
void |
setColumns(int columns) |
void |
setCursorPosition(int position)
Sets the cursor position in the field.
|
void |
setDatatype(Datatype datatype) |
void |
setHeight(java.lang.String height)
Set component height in
Component.getHeightUnits() |
void |
setInputPrompt(java.lang.String inputPrompt)
Sets the input prompt - a textual prompt that is displayed when the field
would otherwise be empty, to prompt the user for input.
|
void |
setMaxLength(int value) |
void |
setRows(int rows) |
void |
setSelectionRange(int pos,
int length) |
void |
setTextChangeEventMode(TextInputField.TextChangeEventMode mode)
Sets the mode how the TextField triggers
TextInputField.TextChangeEvent s. |
void |
setTextChangeTimeout(int timeout)
The text change timeout modifies how often text change events are
communicated to the application when
TextInputField.TextChangeNotifier.getTextChangeEventMode() is
TextInputField.TextChangeEventMode.LAZY or TextInputField.TextChangeEventMode.TIMEOUT . |
void |
setTrimming(boolean trimming) |
void |
setWordwrap(boolean wordwrap) |
getDatasource, getDescription, getMetaProperty, getMetaPropertyPath, getValue, setDatasource, setDescription, setValue, updateEnabled, updateMissingValueState
addListener, addValidator, addValueChangeListener, fireContextHelpIconClickEvent, getContextHelpIconClickHandler, getContextHelpText, getRequiredMessage, getValidators, isContextHelpTextHtmlEnabled, isEditable, isRequired, isValid, removeListener, removeValidator, removeValueChangeListener, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setEditable, setParent, setRequired, setRequiredMessage, validate
addStyleName, assignAutoDebugId, getAlignment, getCaption, getComponent, getDebugId, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getTabIndex, getWidth, getWidthUnits, getXmlDescriptor, isComponentVisible, isEnabled, isEnabledItself, isParentEnabled, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setCaption, setContainer, setDebugId, setEnabled, setExpanded, setFrame, setIcon, setIconFromSet, setId, setParentEnabled, setResponsive, setStyleName, setTabIndex, setVisible, setWidth, setXmlDescriptor, unwrap, unwrapComposition
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessage
getDatasource, getMetaProperty, getMetaPropertyPath, setDatasource
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getCaption, getDescription, setCaption, setDescription
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
getTabIndex, isFocusable, setFocusable, setTabIndex
public javax.swing.JComponent getComposition()
getComposition
in interface Component.Wrapper
getComposition
in class DesktopAbstractComponent<javax.swing.JTextArea>
public void setHeight(java.lang.String height)
Component
Component.getHeightUnits()
setHeight
in interface Component
setHeight
in class DesktopAbstractComponent<javax.swing.JTextArea>
public int getColumns()
getColumns
in interface TextArea
public void setColumns(int columns)
setColumns
in interface TextArea
public boolean isWordwrap()
isWordwrap
in interface TextArea
public void setWordwrap(boolean wordwrap)
setWordwrap
in interface TextArea
public int getMaxLength()
getMaxLength
in interface TextInputField.MaxLengthLimited
public void setMaxLength(int value)
setMaxLength
in interface TextInputField.MaxLengthLimited
public boolean isTrimming()
isTrimming
in interface TextInputField.TrimSupported
public void setTrimming(boolean trimming)
setTrimming
in interface TextInputField.TrimSupported
public void setCursorPosition(int position)
TextInputField.CursorPositionSupported
setCursorPosition
in interface TextInputField.CursorPositionSupported
position
- new cursor positionpublic java.lang.String getInputPrompt()
getInputPrompt
in interface Component.HasInputPrompt
public void setInputPrompt(java.lang.String inputPrompt)
Component.HasInputPrompt
setInputPrompt
in interface Component.HasInputPrompt
inputPrompt
- input promptpublic TextInputField.CaseConversion getCaseConversion()
getCaseConversion
in interface TextInputField.CaseConversionSupported
public void setCaseConversion(TextInputField.CaseConversion caseConversion)
TextInputField.CaseConversionSupported
setCaseConversion
in interface TextInputField.CaseConversionSupported
public void selectAll()
selectAll
in interface TextInputField.TextSelectionSupported
public void setSelectionRange(int pos, int length)
setSelectionRange
in interface TextInputField.TextSelectionSupported
public void addTextChangeListener(TextInputField.TextChangeListener listener)
addTextChangeListener
in interface TextInputField.TextChangeNotifier
public void removeTextChangeListener(TextInputField.TextChangeListener listener)
removeTextChangeListener
in interface TextInputField.TextChangeNotifier
public void setTextChangeTimeout(int timeout)
TextInputField.TextChangeNotifier
TextInputField.TextChangeNotifier.getTextChangeEventMode()
is
TextInputField.TextChangeEventMode.LAZY
or TextInputField.TextChangeEventMode.TIMEOUT
.setTextChangeTimeout
in interface TextInputField.TextChangeNotifier
timeout
- timeout in millisecondspublic int getTextChangeTimeout()
TextInputField.TextChangeNotifier
TextInputField.TextChangeEvent
s when the
TextInputField.TextChangeNotifier.getTextChangeEventMode()
is TextInputField.TextChangeEventMode.LAZY
or
TextInputField.TextChangeEventMode.TIMEOUT
.getTextChangeTimeout
in interface TextInputField.TextChangeNotifier
public TextInputField.TextChangeEventMode getTextChangeEventMode()
getTextChangeEventMode
in interface TextInputField.TextChangeNotifier
TextInputField.TextChangeEvent
s.public void setTextChangeEventMode(TextInputField.TextChangeEventMode mode)
TextInputField.TextChangeNotifier
TextInputField.TextChangeEvent
s.setTextChangeEventMode
in interface TextInputField.TextChangeNotifier
mode
- the new modepublic void commit()
Component.Buffered
commit
in interface Component.Buffered
public void discard()
Component.Buffered
discard
in interface Component.Buffered
public boolean isBuffered()
isBuffered
in interface Component.Buffered
true
if buffered mode is on, false
otherwisepublic void setBuffered(boolean buffered)
Component.Buffered
When in buffered mode, an internal buffer will be used to store changes
until Component.Buffered.commit()
is called. Calling Component.Buffered.discard()
will revert
the internal buffer to the value of the data source.
When in non-buffered mode both read and write operations will be done
directly on the data source. In this mode the Component.Buffered.commit()
and
Component.Buffered.discard()
methods serve no purpose.
setBuffered
in interface Component.Buffered
buffered
- true
if buffered mode should be turned on, false
otherwisepublic boolean isModified()
Component.Buffered
isModified
in interface Component.Buffered
true
if the value in the object has been modified
since the last data source update, false
if not.public void setDatatype(Datatype datatype)
setDatatype
in interface TextArea
public java.lang.String getRawValue()
TextArea
getRawValue
in interface TextArea
public Datatype getDatatype()
getDatatype
in interface TextArea