Class ImageDocumentEditor

java.lang.Object
com.jalios.jcms.document.editor.AbstractDocumentEditor
com.jalios.jcms.document.editor.ImageDocumentEditor
All Implemented Interfaces:
DocumentEditor

public class ImageDocumentEditor extends AbstractDocumentEditor
  • Constructor Details

    • ImageDocumentEditor

      public ImageDocumentEditor()
  • Method Details

    • accept

      public boolean accept(FileDocument doc, Member mbr)
      Description copied from interface: DocumentEditor
      Returns true if the editor accepts the member to edit the document.
      Parameters:
      doc - the document
      mbr - the member
      Returns:
      true if the editor accepts the member to edit the document.
    • getUrl

      public String getUrl(FileDocument doc, Member mbr, String baseUrl)
      Description copied from interface: DocumentEditor
      Returns the URL to open the document.
      Parameters:
      doc - the document
      mbr - the member
      baseUrl - the base URL of the site
      Returns:
      the URL to edit the document.
    • getName

      public String getName(String lang)
      Description copied from interface: DocumentEditor
      Returns the localized name of the editor.
      Parameters:
      lang - the language
      Returns:
      the localized name of the editor.
    • getIcon

      public String getIcon(FileDocument doc, Member mbr)
      Description copied from interface: DocumentEditor
      Returns the 16x16-sized icon of the editor (icon property name without the icon. prefix).
      Parameters:
      doc - the document
      mbr - the document
      Returns:
      the icon of the editor.
    • getButtonLabel

      public String getButtonLabel(String lang, FileDocument doc, Member mbr)
      Description copied from interface: DocumentEditor
      Return the localized label used for the button (if only this editor is available).
      Parameters:
      lang - the language
      doc - the document
      mbr - the document
      Returns:
      the localized label used for the button (if only this editor is available).
    • getLinkCss

      public String getLinkCss()
      Description copied from interface: DocumentEditor
      Returns CSS classes to add to the link.
      Returns:
      CSS classes to add to the link.
    • getLinkAttributes

      public String getLinkAttributes(String lang, FileDocument doc, Member mbr)
      Description copied from interface: DocumentEditor
      Returns HTML attributes to add to the link.
      Parameters:
      lang - the language
      doc - the document
      mbr - the document
      Returns:
      HTML attributes to add to the link.