Package com.storedobject.vaadin.util
Interface FieldValueHandler
- All Known Implementing Classes:
AbstractForm.ValueHandler
public interface FieldValueHandler
Interface for handling field values dynamically. This interface defines
various operations for retrieving, updating, and checking properties of fields
such as visibility, editability, and basic handling capabilities.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether the handler can process the provided field name.booleanDetermines whether the specified field can be set to a value.Retrieves the value associated with the specified field.booleanisBasic()Determines whether the field value handler is considered basic.booleanisEditable(com.vaadin.flow.component.HasValue<?, ?> field) Checks if the given field is editable.booleanisEditable(String fieldName) Checks whether the specified field is editable.booleanisVisible(com.vaadin.flow.component.HasValue<?, ?> field) Determines if the specified field is currently visible.booleanChecks whether the specified field is visible.voidSets the value of the specified field.
-
Method Details
-
isBasic
boolean isBasic()Determines whether the field value handler is considered basic.- Returns:
- true if the handler is basic, false otherwise
-
canHandle
Determines whether the handler can process the provided field name.- Parameters:
fieldName- the name of the field to check- Returns:
- true if the handler can handle the field, false otherwise
-
canSet
Determines whether the specified field can be set to a value.- Parameters:
fieldName- the name of the field to check- Returns:
- true if the field can be set, false otherwise
-
getValue
-
setValue
-
isVisible
Checks whether the specified field is visible.- Parameters:
fieldName- the name of the field to check visibility for- Returns:
- true if the field is visible, false otherwise
-
isVisible
boolean isVisible(com.vaadin.flow.component.HasValue<?, ?> field) Determines if the specified field is currently visible.- Parameters:
field- the field to check for visibility, provided as an instance implementing HasValue- Returns:
- true if the field is visible, false otherwise
-
isEditable
Checks whether the specified field is editable.- Parameters:
fieldName- the name of the field to check- Returns:
- true if the field is editable, false otherwise
-
isEditable
boolean isEditable(com.vaadin.flow.component.HasValue<?, ?> field) Checks if the given field is editable.- Parameters:
field- the field to be checked- Returns:
- true if the field is editable, false otherwise
-