org.apache.tapestry5.services.javascript
Class StylesheetLink
java.lang.Object
   org.apache.tapestry5.services.javascript.StylesheetLink
org.apache.tapestry5.services.javascript.StylesheetLink
- public final class StylesheetLink 
- extends Object
Captures the information needed to create a stylesheet link in the final Document, or
 as part of a JSON partial page render response.
- Since:
- 5.2.0
- See Also:
- DocumentLinker,- JavaScriptStack
 
 
 
StylesheetLink
public StylesheetLink(Asset asset)
StylesheetLink
public StylesheetLink(Asset asset,
                      StylesheetOptions options)
StylesheetLink
public StylesheetLink(String url)
StylesheetLink
public StylesheetLink(String url,
                      StylesheetOptions options)
getURL
public String getURL()
- 
 
getOptions
public StylesheetOptions getOptions()
- Returns an instance of StylesheetOptions. 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 String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
equals
public boolean equals(Object obj)
- 
- Overrides:
- equalsin class- Object
 
- 
 
Copyright © 2003-2012 The Apache Software Foundation.