Class StylesheetLink
- java.lang.Object
-
- org.apache.tapestry5.services.javascript.StylesheetLink
-
public final class StylesheetLink extends Object
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 StylesheetLink(String url)
StylesheetLink(String 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
equals(Object obj)
StylesheetOptions
getOptions()
Returns an instance ofStylesheetOptions
.String
getURL()
String
toString()
-
-
-
Constructor Detail
-
StylesheetLink
public StylesheetLink(Asset asset)
-
StylesheetLink
public StylesheetLink(Asset asset, StylesheetOptions options)
-
StylesheetLink
public StylesheetLink(String url)
-
StylesheetLink
public StylesheetLink(String url, StylesheetOptions options)
-
-
Method Detail
-
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
-
-