Package org.vaadin.miki.markers
Interface WithRequiredMixin<SELF extends HasRequired>
- Type Parameters:
SELF- Self type.
- All Superinterfaces:
HasRequired
- All Known Implementing Classes:
AbstractSuperFloatingPointField,AbstractSuperNumberField,SuperBigDecimalField,SuperDatePicker,SuperDoubleField,SuperIntegerField,SuperLongField,SuperTextArea,SuperTextField
Mixin for
HasRequired.- Since:
- 2022-09-09
- Author:
- miki
-
Method Summary
Modifier and TypeMethodDescriptiondefault SELFCalls and returnswithRequired(boolean)withfalse.default SELFCalls and returnswithRequired(boolean)withtrue.default SELFwithRequired(boolean state) ChainsHasRequired.setRequired(boolean)and returns itself.Methods inherited from interface org.vaadin.miki.markers.HasRequired
isRequired, setRequired
-
Method Details
-
withRequired
ChainsHasRequired.setRequired(boolean)and returns itself.- Parameters:
state- Required state.- Returns:
- This.
-
withRequired
Calls and returnswithRequired(boolean)withtrue.- Returns:
- This.
-
withoutRequired
Calls and returnswithRequired(boolean)withfalse.- Returns:
- This.
-