Class DownloadLink

    • Constructor Detail

      • DownloadLink

        public DownloadLink​(String id,
                            IModel<File> model)
        Constructor
        Parameters:
        id - the markup id
        model - model that contains the file object
      • DownloadLink

        public DownloadLink​(String id,
                            IModel<File> model,
                            String icon)
        Constructor
        Parameters:
        id - the markup id
        model - model that contains the file object
        icon - either a JQueryIcon constant or a 'ui-icon-xxx' css class
      • DownloadLink

        public DownloadLink​(String id,
                            IModel<File> model,
                            IModel<String> filename)
        Constructor
        Parameters:
        id - the markup id
        model - model that contains the file object
        filename - model that provides the file name to use in the response headers
      • DownloadLink

        public DownloadLink​(String id,
                            IModel<File> model,
                            IModel<String> filename,
                            String icon)
        Constructor
        Parameters:
        id - the markup id
        model - model that contains the file object
        filename - model that provides the file name to use in the response headers
        icon - either a JQueryIcon constant or a 'ui-icon-xxx' css class
    • Method Detail

      • onConfigure

        public void onConfigure​(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
        Specified by:
        onConfigure in interface com.googlecode.wicket.jquery.core.IJQueryWidget
      • onBeforeRender

        public void onBeforeRender​(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
        Specified by:
        onBeforeRender in interface com.googlecode.wicket.jquery.core.IJQueryWidget
      • newWidgetBehavior

        public com.googlecode.wicket.jquery.core.JQueryBehavior newWidgetBehavior​(String selector)
        Specified by:
        newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidget