public interface I_CmsEditor
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority()
Gets the priority.
|
void |
initUI(I_CmsAppUIContext context,
CmsResource resource,
java.lang.String backLink,
java.util.Map<java.lang.String,java.lang.String> params)
Within this method the editor UI should be initialized.
|
boolean |
matchesResource(CmsResource resource,
boolean plainText)
Checks whether the editor is available for the given resource.
|
boolean |
matchesType(I_CmsResourceType type,
boolean plainText)
Checks whether the editor is available for the given resource type.
|
I_CmsEditor |
newInstance()
Returns a new editor instance.
|
int getPriority()
If multiple editors for the same resource type are available, the one with the highest priority will be picked.
void initUI(I_CmsAppUIContext context, CmsResource resource, java.lang.String backLink, java.util.Map<java.lang.String,java.lang.String> params)
Use the context to add the app's components to the UI.
context - the UI contextresource - the resource to editbackLink - the link to return to when closing the editorparams - optional parametersboolean matchesResource(CmsResource resource, boolean plainText)
resource - the resource to editplainText - if plain text editing is requiredtrue if the editor is available for the given resourceboolean matchesType(I_CmsResourceType type, boolean plainText)
type - the resource type to editplainText - if plain text editing is requiredtrue if the editor is available for the given resourceI_CmsEditor newInstance()