Package com.storedobject.vaadin
Interface RequiredField
- All Known Implementing Classes:
AbstractQuantityField
,ActionTextField
,AngleField
,AreaField
,CountField
,CurrencyField
,DistanceField
,FractionalCountField
,GridSearchField
,JSONField
,MoneyField
,PercentageField
,PressureField
,QuantityField
,SearchField
,SpeedField
,TemperatureField
,TextField
,TimeDurationField
,TokensField
,TreeSearchField
,VolumeField
,VolumeRateField
,WeightField
,WeightOrVolumeField
,WeightRateField
public interface RequiredField
Custom interface to denote that value in a field is required or not. If any of the setRequired(...) methods of
AbstractDataForm
or Form
is set, this method will be invoked on the field that implements this
interface and the field can set its status internally.- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setRequired
(boolean required) Indicate that value is required for this field.
-
Method Details
-
setRequired
void setRequired(boolean required) Indicate that value is required for this field.- Parameters:
required
- True/false.
-