Package com.orchestranetworks.ui

# Interface UIDependencyRegisterer

All Known Subinterfaces:
  `UIAjaxContext`, `UIComponentWriter`, `UIFormPaneWriter`, `UIFormWriter`, `UIResponseContext`, `UIServiceComponentWriter`, `UITableFilterResponseContext`, `UserServicePaneWriter`, `UserServiceRawPaneWriter`, `UserServiceWriter`, `WidgetWriter`, `WidgetWriterForList`

public interface UIDependencyRegisterer
This interface provides methods to add dependencies to resource files in the current response context.

Since:
  5.7.1
See Also:
  - UI Developer Guide

- ## Method Summary

  Modifier and Type
  Method
  Description
  `UIDependencyRegisterer`
  `addJavaScriptDependency(String aJavaScriptURL)`
  Adds a JavaScript resource dependency.

- ## Method Details

  - ### addJavaScriptDependency

    UIDependencyRegisterer addJavaScriptDependency(String aJavaScriptURL)
    Adds a JavaScript resource dependency.

    For a JavaScript resource packaged in a module, one of the following methods should be used:

    - `UIResourceLocator.getURLForResource(String)`
    - `UIResourceLocator.getURLForResource(ResourceType, String)`
    - `UIResourceLocator.getURLForResource(ResourceType, String, java.util.Locale)`
    - `UIResourceLocator.getURLForResource(String, ResourceType, String, java.util.Locale)`
    Throws:
      `IllegalArgumentException` - if the specified URL is empty or `null`.
    See Also:
      - `ResourceType.JSCRIPT`
      - `ModuleContextOnRepositoryStartup.addPackagedJavaScriptResource(String)`