public interface IEditor<T>
extends org.apache.wicket.util.io.IClusterable
Modifier and Type | Interface and Description |
---|---|
static class |
IEditor.Mode |
Modifier and Type | Method and Description |
---|---|
void |
close()
Requests that the editor be closed.
|
void |
discard()
Discards all changes to the document and switches the editor to VIEW mode.
|
void |
done()
Saves the document, and switches the editor to VIEW mode.
|
void |
focus()
Requests focus on the editor.
|
org.apache.wicket.markup.html.form.Form |
getForm()
The
Form that wraps the editor. |
IEditor.Mode |
getMode() |
org.apache.wicket.model.IModel<T> |
getModel()
Model of the Editor.
|
boolean |
isModified() |
boolean |
isValid() |
void |
revert()
Reverts the current document to last saved state and should keep the editor in its current mode (EDIT).
|
void |
save()
Saves the document, and keeps the editor in its current mode (EDIT).
|
void |
setMode(IEditor.Mode mode) |
IEditor.Mode getMode()
void setMode(IEditor.Mode mode) throws EditorException
EditorException
void focus()
org.apache.wicket.model.IModel<T> getModel()
boolean isModified() throws EditorException
EditorException
boolean isValid() throws EditorException
EditorException
org.apache.wicket.markup.html.form.Form getForm()
Form
that wraps the editor.void save() throws EditorException
EditorException
- should be thrown in case of the editor is unable to save the document or
the document is not in Edit mode.void done() throws EditorException
EditorException
- should be thrown in case of the editor is unable to save the document or
the document is not in Edit mode.void revert() throws EditorException
EditorException
- should be thrown in case of the editor is unable to revert the document or
the document is not in Edit mode.void discard() throws EditorException
EditorException
- should be thrown in case of the editor is unable to revert the document or
the document is not in Edit mode.void close() throws EditorException
EditorException
- when the editor is in a state where it cannot be closed.Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.