V - Value typepublic interface Input<V> extends ValueHolder<V>, ValueComponent<V>
Extends ValueHolder since handles a value, supporting ValueChangeListeners registration.
The actual UI Component which represents the input component can be obtained through ValueComponent.getComponent().
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Input.InputFieldPropertyRenderer<T>
|
static interface |
Input.InputPropertyRenderer<T>
|
ValueHolder.ValueChangeEvent<V>, ValueHolder.ValueChangeListener<V>| Modifier and Type | Method and Description |
|---|---|
void |
focus()
Sets the focus for this input component, if supported by concrete component implementation.
|
static <T> Input<T> |
from(com.vaadin.ui.Field<T> field)
Create a
Input component type from given Field instance. |
boolean |
isReadOnly()
Returns whether this input component is in read-only mode or not.
|
boolean |
isRequired()
Gets whether the field is required.
|
void |
setReadOnly(boolean readOnly)
Sets the read-only mode of this input component.
|
void |
setRequired(boolean required)
Sets the field as required.
|
addValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, setValuegetComponent, getValuevoid setReadOnly(boolean readOnly)
readOnly - the read-only mode of this input componentboolean isReadOnly()
false if the user can modify the value, true if notboolean isRequired()
true if the field as required, false otherwisevoid setRequired(boolean required)
Required fields should show a required indicator symbol in UI and the default non-empty validator is setted up.
required - true to set the field as required, false otherwisevoid focus()
Copyright © 2019 The Holon Platform. All rights reserved.