T
- Value typeB
- Concrete builder typepublic interface TextInputBuilder<T,C extends Input<T>,B extends TextInputBuilder<T,C,B>> extends InputBuilder<T,C,B>
Input
instances backed by a text input widget.InputConfigurator.BaseFieldConfigurator<T>
ComponentConfigurator.BaseComponentConfigurator
Modifier and Type | Method and Description |
---|---|
B |
inputPrompt(com.holonplatform.core.i18n.Localizable inputPrompt)
Sets the input prompt - a textual prompt that is displayed when the field would otherwise be empty, to prompt the
user for input - using a
Localizable message. |
B |
inputPrompt(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.
|
B |
inputPrompt(String defaultInputPrompt,
String messageCode,
Object... arguments)
Sets the input prompt - a textual prompt that is displayed when the field would otherwise be empty, to prompt the
user for input - using a localizable
messageCode . |
B |
maxLength(int maxLength)
Set the maximum number of characters in the field
|
B |
textChangeEventMode(com.vaadin.shared.ui.ValueChangeMode inputEventMode)
Sets the mode how the TextField triggers vaue change events.
|
B |
textChangeTimeout(int timeout)
The text change timeout modifies how often text change events are communicated to the application when text
change event mode is
ValueChangeMode.LAZY or ValueChangeMode.TIMEOUT . |
B |
withBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
Add a listener for focus lost events
|
B |
withFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
Add a listener for focus gained events
|
asField, build, deferLocalization, dragSource, dropTarget, validatable
locale, readOnly, tabIndex, withValue, withValueChangeListener
caption, caption, caption, captionAsHtml, description, description, description, disabled, errorHandler, fullHeight, fullSize, fullWidth, height, height, heightUndefined, hidden, icon, id, notVisible, primaryStyleName, replaceStyleName, responsive, sizeUndefined, styleName, width, width, widthUndefined, withAttachListener, withContextClickListener, withData, withDetachListener, withShortcutListener
B maxLength(int maxLength)
maxLength
- Maximum number of characters in the field, -1 is considered unlimitedB inputPrompt(String inputPrompt)
inputPrompt
- the input prompt to set, null
for noneB inputPrompt(String defaultInputPrompt, String messageCode, Object... arguments)
messageCode
.
For input prompt localization, a LocalizationContext
must be available and localized as Context
resource when component is built or when component is displayed if InputBuilder.deferLocalization()
is
true
.
defaultInputPrompt
- Default message if no translation is available for given messageCode
for
current Locale.messageCode
- Input prompt translation message keyarguments
- Optional translation argumentsB inputPrompt(com.holonplatform.core.i18n.Localizable inputPrompt)
Localizable
message.
For input prompt localization, a LocalizationContext
must be available and localized as Context
resource when component is built or when component is displayed if InputBuilder.deferLocalization()
is
true
.
inputPrompt
- Localizable input promptB textChangeEventMode(com.vaadin.shared.ui.ValueChangeMode inputEventMode)
inputEventMode
- the new modeValueChangeMode
B textChangeTimeout(int timeout)
ValueChangeMode.LAZY
or ValueChangeMode.TIMEOUT
.timeout
- the timeout in millisecondsB withFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
listener
- Listener to addB withBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
listener
- Listener to addCopyright © 2018 The Holon Platform. All rights reserved.