|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
com.sun.rave.web.ui.component.ThemeLinksBase
public abstract class ThemeLinksBase
Use this tag to render references to theme resource files on a
page where the ui:head
component cannot be used.
ui:themeLinks
TagIf no attributes are specified, the component renders a
link
to the CSS stylesheet class(es) and a
script
element with a reference to the JavaScript
functions definition file required by the Sun Java Web UI
Components.
To suppress rendering of the script
element, set the
javaScript
attribute value to false.
To suppress rendering of the link
element, set the
styleSheet
attribute value to false.
To render a style element with an inline import of the stylesheet
definitions, set the
styleSheetInline
attribute value to true.
<head> <title>ThemeLinks test</title> <ui:themeLinks styleSheetInline="true"/> </head>
Auto-generated component class. Do NOT modify; all changes will be lost!
Field Summary |
---|
Fields inherited from class javax.faces.component.UIComponent |
---|
bindings |
Constructor Summary | |
---|---|
ThemeLinksBase()
Construct a new ThemeLinksBase . |
Method Summary | |
---|---|
java.lang.String |
getFamily()
Return the identifier of the component family to which this component belongs. |
boolean |
isJavaScript()
If the javaScript attribute is true, a script
element with a reference to the JavaScript file that defines the
client side behaviour of the Sun Java Web UI Components is
rendered. |
boolean |
isStyleSheet()
If the styleSheet attribute is true, a link
element with a reference to the CSS stylesheet that defines the
appearance of the Sun Java Web UI Components is
rendered. |
boolean |
isStyleSheetInline()
If the styleSheetInline attribute is true, the
stylesheet that defines the appearance of the Sun Java Web UI
Components is rendered inline. |
void |
restoreState(javax.faces.context.FacesContext _context,
java.lang.Object _state)
Restore the state of this component. |
java.lang.Object |
saveState(javax.faces.context.FacesContext _context)
Save the state of this component. |
void |
setJavaScript(boolean javaScript)
If the javaScript attribute is true, a script
element with a reference to the JavaScript file that defines the
client side behaviour of the Sun Java Web UI Components is
rendered. |
void |
setStyleSheet(boolean styleSheet)
If the styleSheet attribute is true, a link
element with a reference to the CSS stylesheet that defines the
appearance of the Sun Java Web UI Components is
rendered. |
void |
setStyleSheetInline(boolean styleSheetInline)
If the styleSheetInline attribute is true, the
stylesheet that defines the appearance of the Sun Java Web UI
Components is rendered inline. |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThemeLinksBase()
Construct a new ThemeLinksBase
.
Method Detail |
---|
public java.lang.String getFamily()
Return the identifier of the component family to which this
component belongs. This identifier, in conjunction with the value
of the rendererType
property, may be used to select
the appropriate Renderer
for this component instance.
getFamily
in class javax.faces.component.UIComponent
public boolean isJavaScript()
If the javaScript
attribute is true, a script
element with a reference to the JavaScript file that defines the
client side behaviour of the Sun Java Web UI Components is
rendered. The default value is true. This component is primarily
intended for portlet
environments. In a web application, this functionality is
automatically provided by the ui:head
component.
public void setJavaScript(boolean javaScript)
If the javaScript
attribute is true, a script
element with a reference to the JavaScript file that defines the
client side behaviour of the Sun Java Web UI Components is
rendered. The default value is true. This component is primarily
intended for portlet
environments. In a web application, this functionality is
automatically provided by the ui:head
component.
isJavaScript()
public boolean isStyleSheet()
If the styleSheet
attribute is true, a link
element with a reference to the CSS stylesheet that defines the
appearance of the Sun Java Web UI Components is
rendered. The default value is true.
This component is primarily intended for portlet
environments. In a web application, this functionality is
automatically provided by the ui:head
component.
public void setStyleSheet(boolean styleSheet)
If the styleSheet
attribute is true, a link
element with a reference to the CSS stylesheet that defines the
appearance of the Sun Java Web UI Components is
rendered. The default value is true.
This component is primarily intended for portlet
environments. In a web application, this functionality is
automatically provided by the ui:head
component.
isStyleSheet()
public boolean isStyleSheetInline()
If the styleSheetInline
attribute is true, the
stylesheet that defines the appearance of the Sun Java Web UI
Components is rendered inline. The default value is true.
This component is primarily
intended for portlet environments. In a web application, this
functionality is automatically provided by the
ui:head
component.
public void setStyleSheetInline(boolean styleSheetInline)
If the styleSheetInline
attribute is true, the
stylesheet that defines the appearance of the Sun Java Web UI
Components is rendered inline. The default value is true.
This component is primarily
intended for portlet environments. In a web application, this
functionality is automatically provided by the
ui:head
component.
isStyleSheetInline()
public void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
Restore the state of this component.
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
public java.lang.Object saveState(javax.faces.context.FacesContext _context)
Save the state of this component.
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |