Module io.github.mmm.ui.api.core
Interface UiValuedComposite<C extends UiWidget,V>
- Type Parameters:
C
- type of thechild widgets
.V
- type of thevalue
.
- All Superinterfaces:
AttributeReadAttached
,AttributeReadEnabled
,AttributeReadId
,AttributeReadValid
,AttributeReadValue<V>
,AttributeReadVisible
,AttributeWriteEnabled
,AttributeWriteId
,AttributeWriteReadOnly
,AttributeWriteTooltip
,AttributeWriteValidationFailure
,AttributeWriteValue<V>
,AttributeWriteValueForUser<V>
,AttributeWriteVisible
,EventSource<UiEvent,
,UiEventListener> UiBindableWidget<V>
,UiComposite<C>
,UiFailureComposite<C>
,UiMutableComposite<C>
,UiRemovableComposite<C>
,UiValidatableWidget<V>
,UiValuedWidget<V>
,UiWidget
- All Known Implementing Classes:
UiCustomValuedComposite
public interface UiValuedComposite<C extends UiWidget,V>
extends UiMutableComposite<C>, UiFailureComposite<C>, UiBindableWidget<V>
- Since:
- 1.0.0
-
Field Summary
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
Modifier and TypeMethodDescriptiondefault boolean
isValid()
AUiComposite
is only valid if all its children are valid (recursive check).default void
reset()
Resets this widget recursively including its potentialchildren
to its original state.Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadAttached
isAttached
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.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.value.UiBindableWidget
initBinding
Methods inherited from interface io.github.mmm.ui.api.widget.composite.UiComposite
getChild, getChild, getChildById, getChildCount, getChildIndex, getChildSibling, getChildSibling, getDescendant, getModificationTimestamp, getPropagation, isModified, setFocused
Methods inherited from interface io.github.mmm.ui.api.widget.composite.UiMutableComposite
addChild, addChild
Methods inherited from interface io.github.mmm.ui.api.widget.composite.UiRemovableComposite
removeChild, removeChild
Methods inherited from interface io.github.mmm.ui.api.widget.value.UiValidatableWidget
getOriginalValue, getValidator, getValue, getValueOrThrow, setOriginalValue, setValidator, setValue, setValue, setValueForUser
Methods inherited from interface io.github.mmm.ui.api.widget.UiWidget
cast, dispose, getParent, getReadOnlyFixed, getStyles, isDisposed, isEnabled, isEnabled, isFocused, isReadOnly, isVisible, isVisible, setEnabled, setEnabled, setReadOnly, setReadOnlyFixed, setVisible, setVisible, validate, validate, validate, validateDown, validateUp
-
Method Details
-
isValid
default boolean isValid()Description copied from interface:UiWidget
AUiComposite
is only valid if all its children are valid (recursive check). An atomic widget that does not implementUiValidatableWidget
will always returntrue
here.- Specified by:
isValid
in interfaceAttributeReadValid
- Specified by:
isValid
in interfaceAttributeWriteValidationFailure
- Specified by:
isValid
in interfaceUiComposite<C extends UiWidget>
- Specified by:
isValid
in interfaceUiFailureComposite<C extends UiWidget>
- Specified by:
isValid
in interfaceUiValidatableWidget<C extends UiWidget>
- Specified by:
isValid
in interfaceUiWidget
- Returns:
true
if valid (novalidation failure
is present),false
otherwise.- See Also:
-
reset
default void reset()Description copied from interface:UiWidget
Resets this widget recursively including its potentialchildren
to its original state.UiValidatableWidget
s will retain theiroriginal value
. Further,modified flags
are reset so all involved widgets will not bemodified
after calling this method.- Specified by:
reset
in interfaceUiComposite<C extends UiWidget>
- Specified by:
reset
in interfaceUiValidatableWidget<C extends UiWidget>
- Specified by:
reset
in interfaceUiWidget
-