T
- The edited entity type.A
- The edited member type for this editor/sub-editor.public interface Editor<T,A> extends Viewer<T>
A client side editor.
Editors should implement this interface in order to isolate the editor components from the editing logic (provided by drivers) and the instance edited.
Editor sub-types should add more interface methods to describe the whole editor hierarchy for the instance of type T
.
The most common edition workflow consist of:
edit()
using the edited instance as argument.getValue()
.Modifier and Type | Method and Description |
---|---|
void |
edit(T instance)
Initialize the editor hierarchy using the instance given.
|
void |
flush()
Flush editor's state.
|
A |
getValue()
Get edited value.
|
void |
setViolations(Set<javax.validation.ConstraintViolation<T>> violations)
Set validation violations into the editor hierarchy.
|
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.