E
- the bean typepublic class BinderCrudEditor<E> extends Object implements CrudEditor<E>
Binder
.Binder
,
Serialized FormConstructor 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, wait
setItem
public BinderCrudEditor(Binder<E> binder)
binder
- the editor binderpublic void setItem(E item, boolean validate)
CrudEditor
setItem
in interface CrudEditor<E>
item
- the item to editvalidate
- if true the item will be validated immediatelypublic E getItem()
CrudEditor
getItem
in interface CrudEditor<E>
public void writeItemChanges()
CrudEditor
writeItemChanges
in interface CrudEditor<E>
public void clear()
clear
in interface CrudEditor<E>
public boolean isValid()
CrudEditor
isValid
in interface CrudEditor<E>
public Component getView()
CrudEditor
getView
in interface CrudEditor<E>
Copyright © 2019. All rights reserved.