E
- the bean typepublic interface CrudEditor<E> extends Serializable
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.
|
default void |
setItem(E item)
Sets an item to be edited.
|
void |
setItem(E item,
boolean validate)
Sets an item to be edited.
|
boolean |
validate()
Runs validations on the data entered into an editor and returns their
validity but could also have side-effects such as showing visual
indicators for invalid fields.
|
void |
writeItemChanges()
Writes any pending input update (if any) to the item.
|
default void setItem(E item)
item
- the item to editsetItem(Object, boolean)
void setItem(E item, boolean validate)
item
- the item to editvalidate
- if true the item will be validated immediatelyE getItem()
void clear()
boolean validate()
void writeItemChanges()
Component getView()
Copyright © 2025. All rights reserved.