Class AbstractInjectableResource
- java.lang.Object
-
- org.pepstock.charba.client.resources.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 Summary
Constructors Modifier Constructor Description protectedAbstractInjectableResource(String name, String... content)Creates the resource with a mandatory name as string and the content of injectable resource.protectedAbstractInjectableResource(Key key, String... content)Creates the resource with a mandatory name as key and the content of injectable resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Returns the content of the item to inject.StringgetName()Returns the name of the object.
-