T - The type of the component extending from this classpublic class InputValueBox<T extends InputValueBox<T>> extends AbstractValueBox<T,elemental2.dom.HTMLInputElement,String>
TelephoneBox,
EmailBoxValueBox.AutoValidate, ValueBox.AutoValidatorBasicFormElement.FieldHandler<T>BaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylerHasChangeHandlers.ChangeHandler<V>HasValidation.ValidatorchangeHandlers, changeListener, DISABLED, fieldContainer, fieldGroup, FLOATING, FOCUSED, inputContainer, inputListenerelement| Constructor and Description |
|---|
InputValueBox(String type,
String label)
Creates an instance of the specified type with a label
|
| Modifier and Type | Method and Description |
|---|---|
T |
addSuggestedValue(String suggestedValue)
Adds a String value as a suggested value
HTMLOptionElement for this input |
T |
clearSuggestions()
removes all suggested values
|
protected void |
clearValue(boolean silent)
clear the field value
|
protected ValueBox.AutoValidator |
createAutoValidator(ValueBox.AutoValidate autoValidate)
Create an AutoValidator that will automatically validate the component when it loses focus
|
protected elemental2.dom.HTMLInputElement |
createInputElement(String type)
Creates an input element with the specified type
|
protected void |
doSetValue(String value) |
String |
getInvalidPatternErrorMessage() |
String |
getPattern() |
String |
getStringValue() |
Collection<String> |
getSuggestedValues() |
String |
getValue() |
boolean |
isEmptyAsNull() |
T |
removeSuggestedValue(String suggestedValue)
Removes a suggested value
HTMLOptionElement from this input |
T |
setEmptyAsNull(boolean emptyAsNull) |
T |
setEnableSuggestions(boolean enableSuggestions) |
T |
setInvalidPatternErrorMessage(String invalidPatternErrorMessage) |
T |
setPattern(String pattern)
Sets a pattern to be used for formatting this component value, this is the pattern html
attribute
|
T |
setPattern(String pattern,
String errorMessage)
Sets a pattern to be used for formatting this component value, this is the pattern html
attribute
|
T |
setSuggestedValues(List<String> suggestedValues)
Adds a List of String values as a suggested values
HTMLOptionElement for this input |
T |
setType(String type)
Sets the type for the HTMLInputElement of this component
|
T |
setTypeMismatchErrorMessage(String typeMismatchErrorMessage) |
getMaxLength, getMinLength, getMinLengthErrorMessage, isEmpty, isEmptyIgnoreSpaces, setMaxLength, setMinLength, setMinLengthErrorMessage, setReadOnly, updateCharacterCount, valueaddChangeHandler, addLeftAddOn, addLeftAddOn, addLeftAddOn, addOnClearHandler, addRightAddOn, addRightAddOn, addRightAddOn, allowEmptyLabel, asTableField, autoValidate, callChangeHandlers, changeLabelFloating, clear, clear, clearInvalid, clearValue, condense, createLabelElement, createMandatoryAddOn, disable, doFocus, doUnfocus, element, enable, floating, floatLabel, focus, getAdditionalInfoContainer, getCountItem, getErrorItem, getErrorsContainer, getFieldContainer, getFieldGroup, getFieldInputContainer, getFieldStyle, getFocusColor, getHelperContainer, getHelpItem, getInputContainer, getInputElement, getLabelElement, getLabelTextElement, getLeftAddonContainer, getLeftAddOnsContainer, getMandatoryAddOn, getNotesContainer, getOnClearHandlers, getPlaceholder, getPostfix, getPostFixItem, getPrefix, getPrefixItem, getRightAddonContainer, getRightAddOnsContainer, hasChangeHandler, hideLabelText, hidePlaceholder, invalidate, invalidate, isAddFocusColor, isAutoValidation, isFloating, isFocused, isReadOnly, linkLabelToField, nonfloating, onEnterKey, pauseChangeHandlers, pauseFocusValidation, removeChangeHandler, removeLeftAddOn, removeLeftAddOn, removeLeftAddOn, removeLeftAddOn, removeLeftAddOns, removeOnClearHandler, removeRightAddOn, removeRightAddOn, removeRightAddOn, removeRightAddOn, removeRightAddOns, resumeChangeHandlers, resumeFocusValidation, setAutoValidation, setFieldStyle, setFixErrorsPosition, setFloating, setFocusColor, setLabel, setLabel, setLabel, setLabel, setLabelTextVisible, setPauseChangeHandlers, setPlaceholder, setPostFix, setPrefix, setSpellCheck, setTableField, shouldShowPlaceholder, showLabelText, showPlaceholder, spread, unfloatLabel, unfocus, updateLabel, valueaddValidator, getErrorLabels, getErrors, getHelperText, getLabel, getName, getRequiredErrorMessage, groupBy, hasValidator, isDisabled, isEnabled, isFixErrorsPosition, isRequired, isShowRequiredIndicator, isValidationDisabled, makeErrorLabel, removeValidator, setHelperText, setName, setRequired, setRequired, setRequiredErrorMessage, setShowRequiredIndicator, setValidationDisabled, setValue, showErrors, ungroup, validate, withValidationDisabledadd, add, addClickListener, addCss, addCss, addEventListener, addEventListener, addEventsListener, addHideListener, addShowListener, alignCenter, alignRight, appendChild, appendChild, apply, attr, blur, childNodes, clearElement, contains, contains, contains, containsCss, css, css, cssClassByIndex, cssClassesCount, cssText, elevate, elevate, firstChild, getAttachObserver, getAttribute, getBoundingClientRect, getChildElementCount, getClickableElement, getCollapsible, getCollapsibleElement, getDetachObserver, getDominoId, getElementsCount, getElevation, getFirstChild, getId, getTextContent, getTooltip, getWavesElement, hasAttribute, hasChildNodes, hasDirectChild, hide, hideOn, id, init, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, insertFirst, insertFirst, insertFirst, isAttached, isCollapsed, isEmptyElement, isEqualNode, isForceHidden, isHidden, item, lastChild, length, onAttached, onDetached, onResize, pullLeft, pullRight, querySelector, querySelectorAll, remove, removeAttachObserver, removeAttribute, removeChild, removeChild, removeCss, removeCss, removeCssProperty, removeDetachObserver, removeEventListener, removeEventListener, removeHideListener, removeHideOn, removeShowListener, removeShowOn, removeTooltip, removeWaves, replaceCss, setAlignItems, setAttribute, setAttribute, setAttribute, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBottom, setBottom, setBoxShadow, setCollapseStrategy, setColor, setColor, setContent, setContent, setCssProperty, setCssProperty, setCursor, setCursor, setDisabled, setDisplay, setDisplay, setDropMenu, setFlex, setFloat, setFloat, setFontSize, setFontSize, setForceHidden, setHeight, setHeight, setId, setInnerHtml, setLeft, setLeft, setLineHeight, setLineHeight, setMargin, setMargin, setMarginBottom, setMarginBottom, setMarginLeft, setMarginLeft, setMarginRight, setMarginRight, setMarginTop, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setOpacity, setOpacity, setOverFlow, setOverFlow, setOverFlowY, setPadding, setPadding, setPaddingBottom, setPaddingBottom, setPaddingLeft, setPaddingLeft, setPaddingRight, setPaddingRight, setPaddingTop, setPaddingTop, setPointerEvents, setPosition, setPosition, setRight, setRight, setTabIndex, setTextAlign, setTextAlign, setTextContent, setTooltip, setTooltip, setTooltip, setTooltip, setTop, setTop, setTransitionDuration, setWidth, setWidth, setZIndex, show, showOn, style, style, styler, textContent, toggleDisplay, toggleDisplay, withWaves, withWavesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateAllisExpandedadd, add, remove, remove, removeProperty, replace, setProperty, setPropertyprotected elemental2.dom.HTMLInputElement createInputElement(String type)
createInputElement in class ValueBox<T extends InputValueBox<T>,elemental2.dom.HTMLInputElement,String>type - String the input element typeprotected void clearValue(boolean silent)
clearValue in class ValueBox<T extends InputValueBox<T>,elemental2.dom.HTMLInputElement,String>protected void doSetValue(String value)
doSetValue in class ValueBox<T extends InputValueBox<T>,elemental2.dom.HTMLInputElement,String>value - V the value to set for this fieldpublic String getValue()
public T setType(String type)
type - Stringpublic String getStringValue()
getStringValue in interface HasInputElementgetStringValue in class ValueBox<T extends InputValueBox<T>,elemental2.dom.HTMLInputElement,String>public T addSuggestedValue(String suggestedValue)
HTMLOptionElement for this inputsuggestedValue - public T setSuggestedValues(List<String> suggestedValues)
HTMLOptionElement for this inputsuggestedValues - List of Stringpublic T removeSuggestedValue(String suggestedValue)
HTMLOptionElement from this inputsuggestedValue - Stringpublic Collection<String> getSuggestedValues()
public T clearSuggestions()
public T setPattern(String pattern)
pattern - Stringpublic T setPattern(String pattern, String errorMessage)
pattern - StringerrorMessage - String error message to be used when the field value does not match the
provided patternpublic String getPattern()
public T setInvalidPatternErrorMessage(String invalidPatternErrorMessage)
invalidPatternErrorMessage - String error message to be used when the field value does not
match the provided patternpublic String getInvalidPatternErrorMessage()
public T setEnableSuggestions(boolean enableSuggestions)
enableSuggestions - boolean, if true the component will show suggested values, otherwise
it will not.public T setEmptyAsNull(boolean emptyAsNull)
emptyAsNull - boolean, if true empty value will be treated as null otherwise it is empty
stringpublic boolean isEmptyAsNull()
protected ValueBox.AutoValidator createAutoValidator(ValueBox.AutoValidate autoValidate)
createAutoValidator in class ValueBox<T extends InputValueBox<T>,elemental2.dom.HTMLInputElement,String>autoValidate - ValueBox.AutoValidateCopyright © 2019–2022 Dominokit. All rights reserved.