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()
Returns the user interface of an editor.
|
boolean |
isValid()
Checks whether the data entered into an editor is valid.
|
void |
setItem(E item,
boolean validate)
Sets an item to be edited.
|
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 isValid()
CrudEditorisValid in interface CrudEditor<E>public Component getView()
CrudEditorgetView in interface CrudEditor<E>Copyright © 2018. All rights reserved.