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
public interface WithRequiredMixin<SELF extends HasRequired> extends HasRequired
Mixin forHasRequired.- Since:
- 2022-09-09
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SELFwithoutRequired()Calls and returnswithRequired(boolean)withfalse.default SELFwithRequired()Calls 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 Detail
-
withRequired
default SELF withRequired(boolean state)
ChainsHasRequired.setRequired(boolean)and returns itself.- Parameters:
state- Required state.- Returns:
- This.
-
withRequired
default SELF withRequired()
Calls and returnswithRequired(boolean)withtrue.- Returns:
- This.
-
withoutRequired
default SELF withoutRequired()
Calls and returnswithRequired(boolean)withfalse.- Returns:
- This.
-
-