com.vaadin.flow.component.crud.
Interface CrudEditor<E>
-
Type Parameters:
E
- the bean typeAll Superinterfaces:
All Known Implementing Classes:
public interface CrudEditor<E> extends Serializable
Interface representing a crud editor.
-
-
Method Summary
All Methods Modifier and Type Method and Description void
clear()
Clears the editor.
E
getItem()
Returns the item being edited.
Component
getView()
Returns the user interface of an editor.
boolean
isValid()
Checks whether the data entered into an editor is valid.
default void
setItem(E item)
Sets an item to be edited.
void
setItem(E item, boolean validate)
Sets an item to be edited.
void
writeItemChanges()
Writes any pending input update (if any) to the item.
-
-
-
Method Detail
-
setItem
default void setItem(E item)
Sets an item to be edited. This could be a newly instantiated item or an existing item from the grid. Initial validation will be skipped.
Parameters:
item
- the item to editSee Also:
-
setItem
void setItem(E item, boolean validate)
Sets an item to be edited. This could be a newly instantiated item or an existing item from the grid.
Parameters:
item
- the item to editvalidate
- if true the item will be validated immediately
-
getItem
E getItem()
Returns the item being edited.
Returns:
the item being edited
-
clear
void clear()
Clears the editor.
-
isValid
boolean isValid()
Checks whether the data entered into an editor is valid.
Returns:
true if valid or false if otherwise
-
writeItemChanges
void writeItemChanges()
Writes any pending input update (if any) to the item.
-
getView
Component getView()
Returns the user interface of an editor.
Returns:
the user interface
-
-