|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.services.javascript.StylesheetOptions
public final class StylesheetOptions
Provides options to describe options associated with importing a stylesheet onto a page. Stylesheet options are immutable.
Field Summary | |
---|---|
boolean |
ajaxInsertionPoint
If true, then this stylesheet is the insertion point for Ajax operations; any added CSS links will be inserted before this link. |
String |
condition
The Internet Explorer condition associated with the link. |
String |
media
The media associated with this stylesheet, i.e., "print". |
Constructor Summary | |
---|---|
StylesheetOptions()
Returns 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. Use StylesheetOptions(String) and withCondition(String) } instead. |
Method Summary | |
---|---|
StylesheetOptions |
asAjaxInsertionPoint()
Returns a new options object with the ajaxInsertionPoint flag set to true. |
boolean |
equals(Object obj)
|
String |
getCondition()
Deprecated. in 5.3, may be removed in a later release, use the condition field instead |
String |
getMedia()
Deprecated. in 5.3, may be removed in a later release, use the media field instead |
String |
toString()
|
StylesheetOptions |
withCondition(String condition)
Returns a new options object with the indicated Internet Explorer condition. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String media
public final String condition
public boolean ajaxInsertionPoint
<link>
element's
ref attribute is wrtten out as "stylesheet t-ajax-insertion-point".
Constructor Detail |
---|
public StylesheetOptions()
public StylesheetOptions(String media)
public StylesheetOptions(String media, String condition)
StylesheetOptions(String)
and withCondition(String)
} instead.
Method Detail |
---|
public StylesheetOptions withCondition(String condition)
public StylesheetOptions asAjaxInsertionPoint()
ajaxInsertionPoint
flag set to true.
public String getMedia()
media
field instead
public String getCondition()
condition
field instead
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |