Class StylesheetLink
-
- org.apache.tapestry5.services.javascript.StylesheetLink
-
public final class StylesheetLink extends
Captures the information needed to create a stylesheet link in the finalDocument
, or as part of a JSON partial page render response.- Since:
- 5.2.0
- See Also:
DocumentLinker
,JavaScriptStack
-
-
Constructor Summary
Constructors Constructor Description url)
url, StylesheetOptions options)
StylesheetLink(Asset asset)
StylesheetLink(Asset asset, StylesheetOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Element container)
Invoked to add the stylesheet link to a container element.boolean
obj)
StylesheetOptions
getOptions()
Returns an instance ofStylesheetOptions
.getURL()
toString()
-
-
-
Constructor Detail
-
StylesheetLink
public StylesheetLink(Asset asset)
-
StylesheetLink
public StylesheetLink(Asset asset, StylesheetOptions options)
-
StylesheetLink
public url)
-
StylesheetLink
public url, StylesheetOptions options)
-
-
Method Detail
-
getURL
public getURL()
-
getOptions
public StylesheetOptions getOptions()
Returns an instance ofStylesheetOptions
. Never returns null (a blank options object is returned if null is passed to the constructor).
-
add
public void add(Element container)
Invoked to add the stylesheet link to a container element.- Parameters:
container
- to add the new element to
-
toString
public toString()
- Overrides:
in class
-
equals
public boolean obj)
- Overrides:
in class
-
-