T - Value typeE - Value change event typeC - Concrete configurator typepublic interface InputConfigurator<T,E extends ValueHolder.ValueChangeEvent<T>,C extends InputConfigurator<T,E,C>> extends ComponentConfigurator<C>
Input.| Modifier and Type | Interface and Description |
|---|---|
static interface |
InputConfigurator.BaseInputConfigurator<T>
Base
InputConfigurator. |
ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
default C |
readOnly()
Set the input component as read-only.
|
C |
readOnly(boolean readOnly)
Set whether the input component is read-only.
|
C |
required()
Set the input as required, i.e. the user must fill in a value.
|
C |
required(boolean required)
Set the input as required or not.
|
C |
withValueChangeListener(ValueHolder.ValueChangeListener<T,E> listener)
Add a
ValueHolder.ValueChangeListener to be notified when the input value changes. |
elementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNameC readOnly(boolean readOnly)
When the input component is read-only, the user can not change the value of the input.
readOnly - Whether to set the input as read-onlydefault C readOnly()
C withValueChangeListener(ValueHolder.ValueChangeListener<T,E> listener)
ValueHolder.ValueChangeListener to be notified when the input value changes.listener - The ValueHolder.ValueChangeListener to add (not null)C required(boolean required)
Depending on the actual input component implementation, setting the input as required may involve:
required attribute in the input element at client side, if
supported.required - Whether the input is requiredC required()
Depending on the actual input component implementation, setting the input as required may involve:
required attribute in the input element at client side, if
supported.Copyright © 2019 The Holon Platform. All rights reserved.