Class AbstractInjectableResource

  • Direct Known Subclasses:
    EmptyResource, InjectableTextResource

    public abstract class AbstractInjectableResource
    extends Object
    Defines an object which must inject script or CSS style objects in the DOM document, at runtime.
    It must have a name and should be a unique value because it will be used to set the element (script or style) id.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • AbstractInjectableResource

        protected AbstractInjectableResource​(Key key,
                                             String... content)
        Creates the resource with a mandatory name as key and the content of injectable resource.
        Parameters:
        key - name of resource as key
        content - content of resource to be injected
      • AbstractInjectableResource

        protected AbstractInjectableResource​(String name,
                                             String... content)
        Creates the resource with a mandatory name as string and the content of injectable resource.
        Parameters:
        name - name of resource as string
        content - content of resource to be injected
    • Method Detail

      • getContent

        public final String getContent()
        Returns the content of the item to inject.
        Returns:
        the content of the item to inject
      • getName

        public final String getName()
        Returns the name of the object.
        Returns:
        the name of object