Class Download

All Implemented Interfaces:
Adaptable, Resource

public class Download extends DownloadResource
Provides convenience methods for rendering download paragraphs.
  • Constructor Details

    • Download

      public Download(Resource resource)
      Creates a new download based on the given resource. the file properties are considered to be 'on' the given resource.
      Parameters:
      resource - resource of the image
      Throws:
      IllegalArgumentException - if the given resource is not adaptable to node.
  • Method Details

    • getIconPath

      @Deprecated public String getIconPath()
      Deprecated.
      since 5.4 please use css classes for the icon, like "icon_xls.gif"
      Returns a path to an icon representing the file. Checks if the component of the resource provides an icon for the respective type.
      Overrides:
      getIconPath in class DownloadResource
      Returns:
      a path to an icon or null.