public abstract class AbstractCmsEditor<T> extends Object implements IEditor<T>, org.apache.wicket.model.IDetachable, IRefreshable
IEditor.Mode
Constructor and Description |
---|
AbstractCmsEditor(IEditorContext editorContext,
IPluginContext context,
IPluginConfig parameters,
org.apache.wicket.model.IModel<T> model,
IEditor.Mode mode) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Requests that the editor be closed.
|
protected UsageEvent |
createUsageEvent(String name) |
protected UsageEvent |
createUsageEvent(String name,
org.apache.wicket.model.IModel<T> model) |
void |
detach() |
void |
discard()
Default implementation that does nothing.
|
void |
done()
Default implementation that does nothing.
|
void |
focus()
Requests focus on the editor.
|
protected org.apache.wicket.model.IModel<T> |
getBaseModel() |
protected IClusterConfig |
getClusterConfig() |
protected org.apache.wicket.model.IModel<T> |
getEditorModel() |
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.
|
protected IPluginContext |
getPluginContext() |
protected String |
getRendererServiceId() |
boolean |
isModified() |
boolean |
isValid() |
protected void |
onActivated()
Hook called when an editor is activated, i.e.
|
protected void |
onClose() |
protected void |
onDeactivated()
Hook called when an editor is deactivate, i.e.
|
protected void |
postClose(Map<IEditorFilter,Object> contexts) |
protected Map<IEditorFilter,Object> |
preClose() |
protected void |
publishEvent(String name) |
void |
refresh() |
void |
revert()
Default implementation that does nothing.
|
void |
save()
Default implementation that does nothing.
|
void |
setMode(IEditor.Mode mode) |
void |
start() |
void |
stop() |
public AbstractCmsEditor(IEditorContext editorContext, IPluginContext context, IPluginConfig parameters, org.apache.wicket.model.IModel<T> model, IEditor.Mode mode) throws EditorException
EditorException
public IEditor.Mode getMode()
public void setMode(IEditor.Mode mode) throws EditorException
setMode
in interface IEditor<T>
EditorException
public org.apache.wicket.model.IModel<T> getModel()
IEditor
public boolean isModified() throws EditorException
isModified
in interface IEditor<T>
EditorException
public boolean isValid() throws EditorException
isValid
in interface IEditor<T>
EditorException
public void save() throws EditorException
save
in interface IEditor<T>
EditorException
public void done() throws EditorException
done
in interface IEditor<T>
EditorException
public void revert() throws EditorException
revert
in interface IEditor<T>
EditorException
public void discard() throws EditorException
discard
in interface IEditor<T>
EditorException
public void close() throws EditorException
IEditor
close
in interface IEditor<T>
EditorException
- when the editor is in a state where it cannot be closed.protected void onActivated()
protected void onDeactivated()
protected void publishEvent(String name)
protected UsageEvent createUsageEvent(String name)
protected UsageEvent createUsageEvent(String name, org.apache.wicket.model.IModel<T> model)
protected Map<IEditorFilter,Object> preClose() throws EditorException
EditorException
protected void postClose(Map<IEditorFilter,Object> contexts)
protected IPluginContext getPluginContext()
protected org.apache.wicket.model.IModel<T> getEditorModel() throws EditorException
EditorException
protected org.apache.wicket.model.IModel<T> getBaseModel() throws EditorException
EditorException
protected IClusterConfig getClusterConfig()
public void start() throws EditorException
EditorException
public void stop()
protected String getRendererServiceId()
public org.apache.wicket.markup.html.form.Form getForm()
IEditor
Form
that wraps the editor.protected void onClose()
public void refresh()
refresh
in interface IRefreshable
public void focus()
IEditor
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.