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.
|
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() |
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 |
onClose() |
protected void |
postClose(Map<IEditorFilter,Object> contexts) |
protected Map<IEditorFilter,Object> |
preClose() |
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 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()
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-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.