-
- Type Parameters:
V
- type of thevalue
.
- All Superinterfaces:
AttributeReadEnabled
,AttributeReadId
,AttributeReadValid
,AttributeReadValue<V>
,AttributeReadVisible
,AttributeWriteEnabled
,AttributeWriteId
,AttributeWritePrefix
,AttributeWriteReadOnly
,AttributeWriteSuffix
,AttributeWriteTooltip
,AttributeWriteValidationFailure
,AttributeWriteValue<V>
,AttributeWriteValueForUser<V>
,AttributeWriteVisible
,EventSource<UiEvent,UiEventListener>
,UiAbstractInput<V>
,UiRegularWidget
,UiValidatableWidget<V>
,UiValuedWidget<V>
,UiWidget
- All Known Subinterfaces:
UiAbstractChoice<O,V>
,UiAbstractMultiChoice<V>
,UiAbstractSingleChoice<V>
,UiBigDecimalInput
,UiBigIntegerInput
,UiCheckbox
,UiCheckboxChoice<V>
,UiColorInput
,UiComboBox<V>
,UiCompositeInput<V>
,UiDateInput
,UiDateTimeInput
,UiDoubleInput
,UiHorizontalInput<V>
,UiHtmlEditor
,UiIntegerInput
,UiIntegerSlider
,UiLongInput
,UiLongSlider
,UiMultiComboBox<V>
,UiNumberInput<V>
,UiNumericInput<V>
,UiPasswordInput
,UiRadioButton
,UiRadioChoice<V>
,UiSlider<V>
,UiStringInput
,UiTextArea
,UiTextInput
,UiTextualInput<V>
,UiTimeInput
,UiVerticalInput<V>
- All Known Implementing Classes:
FxAbstractChoice
,FxCheckbox
,FxComboBox
,FxCompositeInput
,FxHorizontalInput
,FxInput
,FxPasswordInput
,FxRadioButton
,FxRadioChoice
,FxStringInput
,FxTextArea
,FxTextInput
,FxTextualInput
,TestAbstractChoice
,TestAbstractRadioButton
,TestAbstractSingleChoice
,TestCheckbox
,TestComboBox
,TestInput
,TestPasswordInput
,TestRadioButton
,TestRadioChoice
,TestSelectionInput
,TestStringInput
,TestTextArea
,TestTextInput
,TestTextualInput
,TvmAbstractTextArea
,TvmBooleanInput
,TvmCheckbox
,TvmComboBoxDataList
,TvmComboBoxSelect
,TvmHtmlInput
,TvmHtmlSelect
,TvmInput
,TvmLabelledInput
,TvmPasswordInput
,TvmRadioButton
,TvmRadioChoice
,TvmStringInput
,TvmTextArea
,TvmTextInput
,TvmTextualInput
,UiCustomCompositeInput
,UiCustomHorizontalInput
,UiCustomInput
public interface UiInput<V> extends UiAbstractInput<V>, UiRegularWidget, AttributeWritePrefix, AttributeWriteSuffix
UiValuedWidget
for anregular
input field.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
STYLE_INPUT
-
Fields inherited from interface io.github.mmm.ui.api.attribute.AttributeWritePrefix
STYLE_PREFIX, STYLE_WITH_PREFIX
-
Fields inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteSuffix
STYLE_SUFFIX, STYLE_WITH_SUFFIX
-
Fields inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteValidationFailure
STYLE_INVALID
-
Fields inherited from interface io.github.mmm.ui.api.widget.value.UiValidatableWidget
STYLE_MANDATORY
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description UiRegularWidget
getContainerWidget()
UiLabel
getNameWidget()
boolean
hasContainerWidget()
boolean
hasNameWidget()
static <V> UiInput<V>
of(ReadableTypedValue<V> property)
static <V> UiInput<V>
of(ReadableTypedValue<V> property, boolean required)
static <V> UiInput<V>
of(Class<V> datatype)
static <V> UiInput<V>
of(Class<V> datatype, boolean required)
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getId
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setId
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWritePrefix
getPrefix, setPrefix
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteSuffix
getSuffix, setSuffix
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltip
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteValidationFailure
getValidationFailure, setValidationFailure, setValidationFailure
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.ui.api.widget.input.UiAbstractInput
getName, setName
-
Methods inherited from interface io.github.mmm.ui.api.widget.value.UiValidatableWidget
getOriginalValue, getValidator, getValue, getValueOrThrow, isValid, reset, setOriginalValue, setValidator, setValue, setValue, setValueForUser
-
Methods inherited from interface io.github.mmm.ui.api.widget.UiWidget
cast, dispose, getModificationTimestamp, getParent, getReadOnlyFixed, getStyles, isDisposed, isEnabled, isEnabled, isFocused, isModified, isReadOnly, isVisible, isVisible, setEnabled, setEnabled, setFocused, setReadOnly, setReadOnlyFixed, setVisible, setVisible, validate, validate, validate, validateDown, validateUp
-
-
-
-
Field Detail
-
STYLE_INPUT
static final String STYLE_INPUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasNameWidget
boolean hasNameWidget()
- Returns:
true
if thename widget
has already been created,false
otherwise. Helpful to avoid unintended lazy initialization.
-
getNameWidget
UiLabel getNameWidget()
-
hasContainerWidget
boolean hasContainerWidget()
- Returns:
true
if thecontainer widget
has already been created,false
otherwise. Helpful to avoid unintended lazy initialization.
-
getContainerWidget
UiRegularWidget getContainerWidget()
- Returns:
- the
UiRegularWidget
containing both thename widget
and the actual input widget. Will be lazily created on the first call of this method.
-
of
static <V> UiInput<V> of(Class<V> datatype, boolean required)
- Type Parameters:
V
- type of thedatatype
.- Parameters:
datatype
- theClass
reflecting thedatatype
.required
-true
if aUiSingleWidgetFactoryDatatype
has to be registered for the givendatatype
,false
otherwise.- Returns:
- the
UiInput
for the givendatatype
. May benull
ifrequired
isfalse
.
-
of
static <V> UiInput<V> of(ReadableTypedValue<V> property)
-
of
static <V> UiInput<V> of(ReadableTypedValue<V> property, boolean required)
- Type Parameters:
V
- type of theproperty
.- Parameters:
property
- theClass
reflecting theproperty
.required
-true
if aUiSingleWidgetFactoryProperty
orUiSingleWidgetFactoryDatatype
has to be registered for the givenproperty
,false
otherwise.- Returns:
- the
UiInput
for the givenproperty
. May benull
ifrequired
isfalse
.
-
-