com.sun.rave.web.ui.component
Class ThemeLinksBase

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended bycom.sun.rave.web.ui.component.ThemeLinksBase
All Implemented Interfaces:
javax.faces.component.StateHolder
Direct Known Subclasses:
ThemeLinks

public abstract class ThemeLinksBase
extends javax.faces.component.UIComponentBase

Use this tag to render references to theme resource files on a page where the ui:head component cannot be used.

Configuring the ui:themeLinks Tag

If 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.

Example

 
 <head>
 <title>ThemeLinks test</title>
 <ui:themeLinks styleSheetInline="true"/>
 </head>
 

Auto-generated component class. Do NOT modify; all changes will be lost!


Constructor Summary
ThemeLinksBase()
          Construct a new ThemeLinksBase.
 
Method Summary
 java.lang.String getFamily()
          Return the family for this component.
 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, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeLinksBase

public ThemeLinksBase()

Construct a new ThemeLinksBase.

Method Detail

getFamily

public java.lang.String getFamily()

Return the family for this component.


isJavaScript

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.


setJavaScript

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.

See Also:
isJavaScript()

isStyleSheet

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.


setStyleSheet

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.

See Also:
isStyleSheet()

isStyleSheetInline

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.


setStyleSheetInline

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.

See Also:
isStyleSheetInline()

restoreState

public void restoreState(javax.faces.context.FacesContext _context,
                         java.lang.Object _state)

Restore the state of this component.


saveState

public java.lang.Object saveState(javax.faces.context.FacesContext _context)

Save the state of this component.