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 protected
AbstractInjectableResource(String name, String... content)
Creates the resource with a mandatory name as string and the content of injectable resource.protected
AbstractInjectableResource(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 String
getContent()
Returns the content of the item to inject.String
getName()
Returns the name of the object.
-