D - the type of data that can be edited by this editor@Unstable public abstract class AbstractEditor<D> extends Object implements Editor<D>
ScriptContext.| Constructor and Description |
|---|
AbstractEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getEditContext(D data,
Map<String,Object> parameters) |
protected abstract String |
render() |
String |
render(D data,
Map<String,Object> parameters)
Generates the HTML code needed to edit the given data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptorpublic String render(D data, Map<String,Object> parameters) throws EditException
Editorrender in interface Editor<D>data - the data to editparameters - editor parametersEditException - if the editor fails to be renderedprotected abstract String render() throws EditException
EditExceptionCopyright © 2004–2016 XWiki. All rights reserved.