E - the bean typepublic class BinderCrudEditor<E> extends Object implements CrudEditor<E>
Binder.Binder,
Serialized Form| Constructor and Description |
|---|
BinderCrudEditor(Binder<E> binder)
Initializes a BinderCrudEditor with the given binder and no form view
|
BinderCrudEditor(Binder<E> binder,
Component view)
Initializes a BinderCrudEditor with the given binder and form view
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the editor.
|
E |
getItem()
Returns the item being edited.
|
Component |
getView()
Deprecated.
This method should not be used outside.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetItempublic BinderCrudEditor(Binder<E> binder)
binder - the editor binderpublic void setItem(E item, boolean validate)
CrudEditorsetItem in interface CrudEditor<E>item - the item to editvalidate - if true the item will be validated immediatelypublic E getItem()
CrudEditorgetItem in interface CrudEditor<E>public void writeItemChanges()
CrudEditorwriteItemChanges in interface CrudEditor<E>public void clear()
clear in interface CrudEditor<E>public boolean validate()
CrudEditorvalidate in interface CrudEditor<E>@Deprecated public Component getView()
CrudEditorgetView in interface CrudEditor<E>Copyright © 2025. All rights reserved.