Package com.jalios.jcms.document.editor
Class ImageDocumentEditor
java.lang.Object
com.jalios.jcms.document.editor.AbstractDocumentEditor
com.jalios.jcms.document.editor.ImageDocumentEditor
- All Implemented Interfaces:
DocumentEditor
-
Field Summary
Fields inherited from interface com.jalios.jcms.document.editor.DocumentEditor
EDIT_LABEL_PROP, READ_LABEL_PROP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(FileDocument doc, Member mbr) Returns true if the editor accepts the member to edit the document.getButtonLabel(String lang, FileDocument doc, Member mbr) Return the localized label used for the button (if only this editor is available).getIcon(FileDocument doc, Member mbr) Returns the 16x16-sized icon of the editor (icon property name without the icon.getLinkAttributes(String lang, FileDocument doc, Member mbr) Returns HTML attributes to add to the link.Returns CSS classes to add to the link.Returns the localized name of the editor.getUrl(FileDocument doc, Member mbr, String baseUrl) Returns the URL to open the document.Methods inherited from class com.jalios.jcms.document.editor.AbstractDocumentEditor
getKey, setKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jalios.jcms.document.editor.DocumentEditor
accept, getIcon48, getLinkAttributes, getMenuLabel, getMenuLabel, getUrl
-
Constructor Details
-
ImageDocumentEditor
public ImageDocumentEditor()
-
-
Method Details
-
accept
Description copied from interface:DocumentEditorReturns true if the editor accepts the member to edit the document.- Parameters:
doc- the documentmbr- the member- Returns:
- true if the editor accepts the member to edit the document.
-
getUrl
Description copied from interface:DocumentEditorReturns the URL to open the document.- Parameters:
doc- the documentmbr- the memberbaseUrl- the base URL of the site- Returns:
- the URL to edit the document.
-
getName
Description copied from interface:DocumentEditorReturns the localized name of the editor.- Parameters:
lang- the language- Returns:
- the localized name of the editor.
-
getIcon
Description copied from interface:DocumentEditorReturns the 16x16-sized icon of the editor (icon property name without the icon. prefix).- Parameters:
doc- the documentmbr- the document- Returns:
- the icon of the editor.
-
getButtonLabel
Description copied from interface:DocumentEditorReturn the localized label used for the button (if only this editor is available).- Parameters:
lang- the languagedoc- the documentmbr- the document- Returns:
- the localized label used for the button (if only this editor is available).
-
getLinkCss
Description copied from interface:DocumentEditorReturns CSS classes to add to the link.- Returns:
- CSS classes to add to the link.
-
getLinkAttributes
Description copied from interface:DocumentEditorReturns HTML attributes to add to the link.- Parameters:
lang- the languagedoc- the documentmbr- the document- Returns:
- HTML attributes to add to the link.
-