public interface Driver<T,E extends Editor<T,T>>
A client side editor's driver.
Drivers are used to isolate the editors hierarchy from the edition logic for an instance of type T
.
So do not matter the editors' concrete implementations, same driver can be used agains different client side editors reusing the edition logic.
Modifier and Type | Method and Description |
---|---|
void |
edit(T instance,
E editor)
Edit the instance using the given editor.
|
boolean |
flush()
Flush the editors hierarchy states and perform the validations.
|
T |
getValue()
The instance after being flush with against the editors hierarchy.
|
void |
show(T instance,
E viewer)
Show the instance using the given editor.
|
void show(T instance, E viewer)
instance
- The instance to show.viewer
- The viewer for the instance.void edit(T instance, E editor)
instance
- The instance to show.editor
- The editor for the instance.boolean flush()
T getValue()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.