|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.xsp.complex.ValueBindingObjectImpl
com.ibm.xsp.resource.AbstractResource
com.ibm.xsp.resource.StyleSheetResource
public class StyleSheetResource
Corresponds to the xp:styleSheet tag which is used to load stylesheets at runtime
| Field Summary | |
|---|---|
static java.lang.String |
RENDERER_TYPE
|
| Fields inherited from class com.ibm.xsp.resource.AbstractResource |
|---|
FAMILY |
| Constructor Summary | |
|---|---|
StyleSheetResource()
Default Constructor |
|
StyleSheetResource(java.lang.String href)
Constructor for StyleSheetResources |
|
StyleSheetResource(java.lang.String href,
boolean dojoTheme,
java.lang.String media)
Constructor for StyleSheetResources |
|
| Method Summary | |
|---|---|
void |
addAttr(Attr attr)
Add an Attr, to appear as an attribute in the HTML output of this control
or object tag. |
java.util.List<Attr> |
getAttrs()
The extra attributes to be output on the base element at the root of this control or object tag. |
java.lang.String |
getCharset()
Indicates the character encoding of the linked style sheet file. |
java.lang.String |
getContents()
For style sheets, the "contents" property can be set in the XPage source. |
java.lang.String |
getHref()
Returns the location of the style sheets resources |
java.lang.String |
getMedia()
Returns the device for this stylesheet. |
boolean |
isDojoTheme()
Returns whether the style sheet resource is using the dojoTheme |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAttrs(java.util.List<Attr> attrs)
This method is not used by the XPage generated .java file - instead the addAttr(Attr) method is used to add attributes to the list. |
void |
setCharset(java.lang.String charset)
Sets the charset which is the character encoding |
void |
setContents(java.lang.String contents)
Sets the contents of the CSS resource |
void |
setDojoTheme(boolean dojoTheme)
Sets whether the style sheet resource is using the dojoTheme |
void |
setHref(java.lang.String href)
Sets the href location of style sheet resources |
void |
setMedia(java.lang.String media)
Sets the media device for this stylesheet |
java.lang.String |
toString()
|
| Methods inherited from class com.ibm.xsp.resource.AbstractResource |
|---|
encodeObject, equals, getFamily, getRendererType, getServerResourceContents, getUniqueId, isRendered, loadContents, setRendered, setRendererType |
| Methods inherited from class com.ibm.xsp.complex.ValueBindingObjectImpl |
|---|
getComponent, getFacesContext, getValueBinding, isTransient, setComponent, setTransient, setValueBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ibm.xsp.complex.EncodableObject |
|---|
encodeObject |
| Field Detail |
|---|
public static final java.lang.String RENDERER_TYPE
| Constructor Detail |
|---|
public StyleSheetResource()
public StyleSheetResource(java.lang.String href)
href - location of stylesheet
public StyleSheetResource(java.lang.String href,
boolean dojoTheme,
java.lang.String media)
href - location of stylesheetwhether - to set dojoThememedia - that resource is linked to| Method Detail |
|---|
public java.lang.String getContents()
contentspublic void setContents(java.lang.String contents)
contents of the CSS resource
contents - public java.lang.String getHref()
hrefpublic void setHref(java.lang.String href)
href location of style sheet resources
href - public boolean isDojoTheme()
public void setDojoTheme(boolean dojoTheme)
- public java.lang.String getMedia()
mediapublic void setMedia(java.lang.String media)
media device for this stylesheet
media - public java.lang.String getCharset()
public void setCharset(java.lang.String charset)
charset which is the character encoding
charset - public java.util.List<Attr> getAttrs()
null. The addAttr(Attr)
method should be used to add an Attr.
getAttrs in interface FacesAttrsObjectpublic void addAttr(Attr attr)
Attr, to appear as an attribute in the HTML output of this control
or object tag.
addAttr in interface FacesAttrsObjectaction - public void setAttrs(java.util.List<Attr> attrs)
addAttr(Attr) method is used to add attributes to the list.
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class AbstractResource
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class AbstractResourcepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||