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 TypeMethodDescriptionboolean
Determines whether the handler can process the provided field name.boolean
Determines whether the specified field can be set to a value.Retrieves the value associated with the specified field.boolean
isBasic()
Determines whether the field value handler is considered basic.boolean
isEditable
(com.vaadin.flow.component.HasValue<?, ?> field) Checks if the given field is editable.boolean
isEditable
(String fieldName) Checks whether the specified field is editable.boolean
isVisible
(com.vaadin.flow.component.HasValue<?, ?> field) Determines if the specified field is currently visible.boolean
Checks whether the specified field is visible.void
Sets 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
-