Class IntegrationTestJavaScriptPlugin

    • Constructor Detail

      • IntegrationTestJavaScriptPlugin

        public IntegrationTestJavaScriptPlugin()
    • Method Detail

      • findResourceByFileName

        public IPluginFormResourceDescriptor findResourceByFileName​(String fileName)
        Description copied from interface: IPluginFormResources
        Finds the resource with the given file name among the resources that this plugin provides. This method is given one of the file names of the resource descriptors as returned by findResources(). This method should return the resource with the given file name, or null if this plugin does not provide a resource with the given file name.

        This method must be able to locate all resources returned by findResources method via their file name. In addition, it may also be able to locate additional files that are not returned by that method. This is helpful, for example, when you wish to provide e.g. a CSS file that references another file (such as an image, a font, or another CSS file).

        Specified by:
        findResourceByFileName in interface IPluginFormResources
        Parameters:
        fileName - The file name of the resource to find.
        Returns:
        The resource with the given file name, or null if not found.
      • findResources

        public Iterable<? extends IPluginFormResourceDescriptor> findResources​(IPluginFormResourcesFindParams params)
        Description copied from interface: IPluginFormResources
        Gets all resources that this plugin wishes to include. All resources returned by this method are included automatically, depending on descriptor.isIncludeInForm() and descriptor.isIncludeInTemplate(). The method findResourceByFileName must be able to locate all resources returned by this method via their file name. In addition, it may also be able to locate additional files that are not returned by this method. This is helpful, for example, when you wish to provide e.g. a CSS file that references another file (such as an image, a font, or another CSS file).

        This method is given a set of parameters, the resources should depend only on these parameters, as the resources may get cached.

        This method should never return null. The default implementation returns null for backward compatibility: getResources() will be called if this method returns null.

        Specified by:
        findResources in interface IPluginFormResources
        Parameters:
        params - Parameters for obtaining the resources.
        Returns:
        All resources that this plugin wishes to provide.