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.
|
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.
|
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 isValid()
void writeItemChanges()
Component getView()
Copyright © 2019. All rights reserved.