Class StylesheetOptions
java.lang.Object
org.apache.tapestry5.services.javascript.StylesheetOptions
Provides options to describe options associated with importing a stylesheet onto a page. Stylesheet options
are immutable.
- Since:
- 5.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
If true, then this stylesheet is the insertion point for Ajax operations; any added CSS links will be inserted before this link.final String
The Internet Explorer condition associated with the link.final String
The media associated with this stylesheet, i.e., "print". -
Constructor Summary
ConstructorsConstructorDescriptionReturns a new options object with media as null (that is, unspecified), no condition, and not the Ajax insertion point.StylesheetOptions
(String media) StylesheetOptions
(String media, String condition) Deprecated.In 5.3, may be removed in a later release. -
Method Summary
Modifier and TypeMethodDescriptionReturns a new options object with theajaxInsertionPoint
flag set to true.boolean
toString()
withCondition
(String condition) Returns a new options object with the indicated Internet Explorer condition.
-
Field Details
-
media
The media associated with this stylesheet, i.e., "print". Becomes the media attribute of the <link> tag. May be null. -
condition
The Internet Explorer condition associated with the link. When non-blank, the <link> element will be written inside a specially formatted comment interpreted by Internet Explorer. Usually null, and only used for full page renders (not partial page renders). -
ajaxInsertionPoint
If true, then this stylesheet is the insertion point for Ajax operations; any added CSS links will be inserted before this link. Only at most one CSS link should be the insertion point. Only used for full page renders (not partial page renders). When this is true, the<link>
element's ref attribute is wrtten out as "stylesheet ajax-insertion-point".
-
-
Constructor Details
-
StylesheetOptions
public StylesheetOptions()Returns a new options object with media as null (that is, unspecified), no condition, and not the Ajax insertion point. -
StylesheetOptions
-
StylesheetOptions
Deprecated.In 5.3, may be removed in a later release. UseStylesheetOptions(String)
andwithCondition(String)
} instead.
-
-
Method Details
-
withCondition
Returns a new options object with the indicated Internet Explorer condition. @since 5.3 -
asAjaxInsertionPoint
Returns a new options object with theajaxInsertionPoint
flag set to true. -
toString
-
equals
-