-
- 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
UiValuedWidgetfor anregularinput field.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringSTYLE_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 UiRegularWidgetgetContainerWidget()UiLabelgetNameWidget()booleanhasContainerWidget()booleanhasNameWidget()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:
trueif thename widgethas already been created,falseotherwise. Helpful to avoid unintended lazy initialization.
-
getNameWidget
UiLabel getNameWidget()
-
hasContainerWidget
boolean hasContainerWidget()
- Returns:
trueif thecontainer widgethas already been created,falseotherwise. Helpful to avoid unintended lazy initialization.
-
getContainerWidget
UiRegularWidget getContainerWidget()
- Returns:
- the
UiRegularWidgetcontaining both thename widgetand 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- theClassreflecting thedatatype.required-trueif aUiSingleWidgetFactoryDatatypehas to be registered for the givendatatype,falseotherwise.- Returns:
- the
UiInputfor the givendatatype. May benullifrequiredisfalse.
-
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- theClassreflecting theproperty.required-trueif aUiSingleWidgetFactoryPropertyorUiSingleWidgetFactoryDatatypehas to be registered for the givenproperty,falseotherwise.- Returns:
- the
UiInputfor the givenproperty. May benullifrequiredisfalse.
-
-