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.
|
C |
required(boolean required)
Set the input as required or not.
|
<A> C |
withAdapter(Class<A> type,
Function<Input<T>,A> adapter)
Register an adapter function to be used with the
Input.as(Class) method, to provide a object instance of
given type. |
C |
withReadonlyChangeListener(ReadonlyChangeListener listener)
Add a
ReadonlyChangeListener to be notified when the input read-only state changes. |
C |
withValueChangeListener(ValueHolder.ValueChangeListener<T,E> listener)
Add a
ValueHolder.ValueChangeListener to be notified when the input value changes. |
create, 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 withReadonlyChangeListener(ReadonlyChangeListener listener)
ReadonlyChangeListener to be notified when the input read-only state changes.listener - The ReadonlyChangeListener to add (not null)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)<A> C withAdapter(Class<A> type, Function<Input<T>,A> adapter)
Input.as(Class) method, to provide a object instance of
given type.A - Adapter typetype - The type to provide (not null)adapter - The function to use to provide the object instance of given typeC 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 © 2020 The Holon Platform. All rights reserved.