Class MediaPlaceholder


  • @Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class)
    public class MediaPlaceholder
    extends java.lang.Object
    Model for media replacement placeholder.

    Mandatory use parameters:

    • media (io.wcm.handler.media.Media): The result object of the media handler (usually in invalid state)
    • classAppend (String): Additional CSS classes for placeholder element
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.String getClassAppend()
      Gets additional CSS classes for the replacement placeholder to allow drag&drop of assets into an empty component.
      @Nullable java.lang.String getMediaInvalidReason()
      Additional text to append to empty placeholder message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MediaPlaceholder

        public MediaPlaceholder()
    • Method Detail

      • getClassAppend

        @Nullable
        public @Nullable java.lang.String getClassAppend()
        Gets additional CSS classes for the replacement placeholder to allow drag&drop of assets into an empty component.
        Returns:
        CSS class or null
      • getMediaInvalidReason

        @Nullable
        public @Nullable java.lang.String getMediaInvalidReason()
        Additional text to append to empty placeholder message.
        Returns:
        Empty text