Package org.teamapps.ux.component.field
Class TextField
- All Implemented Interfaces:
ClientObject,Component,TextInputHandlingField
- Direct Known Subclasses:
MultiLineTextField,PasswordField
-
Field Summary
FieldsFields inherited from class org.teamapps.ux.component.field.AbstractField
onBlur, onFocus, onValueChanged, onVisibilityChangedFields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidhandleUiEvent(UiEvent event) booleanbooleanisEmptyValue(String value) Whether this value be regarded as empty / "no user input".booleanvoidsetAutofill(boolean autofill) setEmptyText(String emptyText) setMaxCharacters(int maxCharacters) setShowClearButton(boolean showClearButton) Methods inherited from class org.teamapps.ux.component.field.AbstractField
addCustomFieldMessage, addCustomFieldMessage, addValidator, applyValueFromUi, clearCustomFieldMessages, clearValidatorMessages, convertUiValueToUxValue, convertUxValueToUiValue, focus, getCustomFieldMessages, getDefaultMessagePosition, getDefaultMessageVisibility, getEditingMode, getFieldMessages, getMaxFieldMessageSeverity, getValidators, getValue, isEmpty, isRequired, isValid, isValueChangedByClient, isValueLocked, mapAbstractFieldAttributesToUiField, removeCustomFieldMessage, removeValidator, setAndLockValue, setCustomFieldMessages, setDefaultMessagePosition, setDefaultMessageVisibility, setEditingMode, setRequired, setRequiredIfVisibleAndEditable, setValue, setValueChangedByClient, setVisible, validateMethods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, toggleCssClass, toString, unrenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.ClientObject
handleUiQueryMethods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClassMethods inherited from interface org.teamapps.ux.component.field.TextInputHandlingField
defaultHandleTextInputEvent
-
Field Details
-
onTextInput
-
onSpecialKeyPressed
-
-
Constructor Details
-
TextField
public TextField()
-
-
Method Details
-
getMaxCharacters
public int getMaxCharacters() -
setMaxCharacters
-
isShowClearButton
public boolean isShowClearButton() -
setShowClearButton
-
getEmptyText
-
setEmptyText
-
isAutofill
public boolean isAutofill() -
setAutofill
public void setAutofill(boolean autofill) -
createUiComponent
- Specified by:
createUiComponentin classAbstractComponent
-
handleUiEvent
- Specified by:
handleUiEventin interfaceClientObject- Overrides:
handleUiEventin classAbstractField<String>
-
isEmptyValue
Description copied from class:AbstractFieldWhether this value be regarded as empty / "no user input". Override for field-specific behaviour.- Overrides:
isEmptyValuein classAbstractField<String>- Returns:
- true if the value can be regarded as "empty".
-
onTextInput
- Specified by:
onTextInputin interfaceTextInputHandlingField
-
onSpecialKeyPressed
- Specified by:
onSpecialKeyPressedin interfaceTextInputHandlingField
-