Interface IPluginFormElementTemplateLoader


public interface IPluginFormElementTemplateLoader
Loader for the form element templates provided by a form element template plugin.
Since:
8.0.1
Author:
XIMA MEDIA GmbH
  • Method Summary

    Modifier and Type
    Method
    Description
    Loads an icon for a template, identified by its URI.
    Loads a persist JSON for a template, identified by its URI.
  • Method Details

    • loadIcon

      InputStream loadIcon(URI uri) throws IOException
      Loads an icon for a template, identified by its URI. See getIcon for more details.
      Parameters:
      uri - URI for the icon, as returned by getIcon.
      Returns:
      An input stream with the data of the icon.
      Throws:
      IOException - When the icon could not be loaded. This may result in no icon being shown, or a default icon being shown.
    • loadPersistJson

      InputStream loadPersistJson(URI uri) throws IOException
      Loads a persist JSON for a template, identified by its URI. See getPersistJsonUri for more details.
      Parameters:
      uri - URI for the persist JSON, as returned by IPluginFormElementTemplateDescriptor.getPersistJson().
      Returns:
      An input stream with the data of the persist JSON.
      Throws:
      IOException - When the persist JSON could not be loaded.