public interface DocumentEditor
file-document.
and suffix .class
.
Example:
file-document.editor.mySuperEditor.class: com.jalios.jcmsplugin.mySuperEditor.MySuperEditorDocumentEditor
Modifier and Type | Method and Description |
---|---|
boolean |
accept(FileDocument doc,
Member mbr)
Returns true if the editor accepts the member to edit the document.
|
default java.lang.String |
getButtonLabel(java.lang.String lang,
FileDocument doc,
Member mbr)
Return the localized label used for the button (if only this editor is available).
|
java.lang.String |
getIcon(FileDocument doc,
Member mbr)
Returns the icon of the editor.
|
default java.lang.String |
getLinkAttributes()
Returns HTML attributes to add to the link.
|
default java.lang.String |
getLinkCss()
Returns CSS classes to add to the link.
|
default java.lang.String |
getMenuLabel(java.lang.String lang,
FileDocument doc,
Member mbr)
Return the localized label used in the dropdown menu.
|
java.lang.String |
getName(java.lang.String lang)
Returns the localized name of the editor.
|
java.lang.String |
getUrl(FileDocument doc,
Member mbr,
java.lang.String baseUrl)
Returns the URL to edit the document.
|
boolean accept(FileDocument doc, Member mbr)
doc
- the documentmbr
- the memberjava.lang.String getUrl(FileDocument doc, Member mbr, java.lang.String baseUrl)
doc
- the documentmbr
- the memberbaseUrl
- the base URL of the sitejava.lang.String getName(java.lang.String lang)
lang
- the languagejava.lang.String getIcon(FileDocument doc, Member mbr)
doc
- the documentmbr
- the documentdefault java.lang.String getMenuLabel(java.lang.String lang, FileDocument doc, Member mbr)
lang
- the languagedoc
- the documentmbr
- the documentdefault java.lang.String getButtonLabel(java.lang.String lang, FileDocument doc, Member mbr)
lang
- the languagedoc
- the documentmbr
- the documentdefault java.lang.String getLinkCss()
default java.lang.String getLinkAttributes()
Copyright © 2001-2019 Jalios SA. All Rights Reserved.