Class ExternalSource

    • Constructor Detail

      • ExternalSource

        public ExternalSource​(String id)
        Creates an external source
        Parameters:
        id - the component id
        src - the source URL
        srcSet - a list of URLs placed in the srcset attribute
      • ExternalSource

        public ExternalSource​(String id,
                              List<Serializable> srcSet)
        Creates an external source
        Parameters:
        id - the component id
        src - the source URL
        srcSet - a list of URLs placed in the srcset attribute
      • ExternalSource

        public ExternalSource​(String id,
                              IModel<List<Serializable>> srcSetModel)
        Creates an external source
        Parameters:
        id - the component id
        src - the model source URL
        srcSetModel - a model list of URLs placed in the srcset attribute
    • Method Detail

      • onComponentTag

        protected void onComponentTag​(ComponentTag tag)
        Description copied from class: Component
        Processes the component tag. Overrides of this method most likely should call the super implementation.
        Overrides:
        onComponentTag in class ExternalImage
        Parameters:
        tag - Tag to modify
      • setMedia

        public void setMedia​(String media)
        Sets the media attribute information
        Parameters:
        media - the media attribute information
      • getMedia

        public String getMedia()
        Gets the media attribute information
        Returns:
        the media attribute information
      • setCrossOrigin

        public void setCrossOrigin​(CrossOrigin crossorigin)
        Unsupported for source tag
        Overrides:
        setCrossOrigin in class ExternalImage
        Parameters:
        crossorigin - the cross origins settings to set