com.sun.webui.jsf.component
Class ThemeLinks

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by com.sun.webui.jsf.component.ThemeLinks
All Implemented Interfaces:
javax.faces.component.StateHolder

public class ThemeLinks
extends javax.faces.component.UIComponentBase

The ThemeLicnks component is used to create references to theme resources on a page in a portlet environment, where the Head component cannot be used.


Constructor Summary
ThemeLinks()
          Default constructor.
 
Method Summary
 java.lang.String getFamily()
          Return the family for this component.
 boolean isDebug()
          Test flag indicating that debugging is enabled.
 boolean isDijitAll()
          Deprecated. Dojo is no longer included in the page.
 boolean isJavaScript()
          Test flag indicating that component JavaScript should be output in page.
 boolean isJsfx()
          Test flag indicating to include JSF Extensions.
 boolean isParseOnLoad()
          Test flag indicating to parse HTML markup.
 boolean isStyleSheet()
          If set to true, a link element with a reference to the theme stylesheet resource is rendered.
 boolean isStyleSheetInline()
          Deprecated. Not well supported by browsers.
 boolean isStyleSheetLink()
          Deprecated. Use isStyleSheet
 boolean isWebuiAll()
          Test flag indicating to include all webui functionality.
 boolean isWebuiJsfx()
          Test flag indicating to include default Ajax functionality.
 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 setDebug(boolean debug)
          Set flag indicating that debugging is enabled.
 void setDijitAll(boolean dijitAll)
          Deprecated. Dojo is no longer included in the page.
 void setId(java.lang.String id)
          The component identifier for this component.
 void setJavaScript(boolean javaScript)
          Flag (true or false) indicating that component and third party JavaScript should be output in page.
 void setJsfx(boolean jsfx)
          Set flag indicating to include JSF Extensions.
 void setParseOnLoad(boolean parseOnLoad)
          Set flag indicating to parse HTML markup.
 void setRendered(boolean rendered)
          Use the rendered attribute to indicate whether the HTML code for the component should be included in the rendered HTML page.
 void setStyleSheet(boolean styleSheet)
          If set to true, a link element with a reference to the theme stylesheet resource is rendered.
 void setStyleSheetInline(boolean styleSheetInline)
          Deprecated. Not well supported by browsers.
 void setStyleSheetLink(boolean styleSheetLink)
          Deprecated. Use setStyleSheet
 void setWebuiAll(boolean webuiAll)
          Flag indicating to include all webui functionality.
 void setWebuiJsfx(boolean webuiJsfx)
          Set flag indicating to include default Ajax functionality.
 
Methods inherited from class javax.faces.component.UIComponentBase
broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, getValueExpression, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, restoreAttachedState, saveAttachedState, setParent, setRendererType, setTransient, setValueBinding, setValueExpression
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeLinks

public ThemeLinks()
Default constructor.

Method Detail

getFamily

public java.lang.String getFamily()

Return the family for this component.

Specified by:
getFamily in class javax.faces.component.UIComponent

isStyleSheetLink

public boolean isStyleSheetLink()
Deprecated. Use isStyleSheet

Getter for property styleSheetLink.

Returns:
Value of property styleSheetLink.

setStyleSheetLink

public void setStyleSheetLink(boolean styleSheetLink)
Deprecated. Use setStyleSheet

Setter for property styleSheetLink.

Parameters:
styleSheetLink - New value of property styleSheetLink.

setId

public void setId(java.lang.String id)
The component identifier for this component. This value must be unique within the closest parent component that is a naming container.

Overrides:
setId in class javax.faces.component.UIComponentBase

setRendered

public void setRendered(boolean rendered)
Use the rendered attribute to indicate whether the HTML code for the component should be included in the rendered HTML page. If set to false, the rendered HTML page does not include the HTML for the component. If the component is not rendered, it is also not processed on any subsequent form submission.

Overrides:
setRendered in class javax.faces.component.UIComponentBase

isDebug

public boolean isDebug()
Test flag indicating that debugging is enabled.


setDebug

public void setDebug(boolean debug)
Set flag indicating that debugging is enabled.


isDijitAll

public boolean isDijitAll()
Deprecated. Dojo is no longer included in the page.

Test flag indicating to include all Dojo dijit functionality.


setDijitAll

public void setDijitAll(boolean dijitAll)
Deprecated. Dojo is no longer included in the page.

Set flag indicating to include all Dojo dijit functionality.


isJavaScript

public boolean isJavaScript()
Test flag indicating that component JavaScript should be output in page.


setJavaScript

public void setJavaScript(boolean javaScript)
Flag (true or false) indicating that component and third party JavaScript should be output in page. The default value is true.


isJsfx

public boolean isJsfx()
Test flag indicating to include JSF Extensions.


setJsfx

public void setJsfx(boolean jsfx)
Set flag indicating to include JSF Extensions.


isParseOnLoad

public boolean isParseOnLoad()
Test flag indicating to parse HTML markup.


setParseOnLoad

public void setParseOnLoad(boolean parseOnLoad)
Set flag indicating to parse HTML markup.


isStyleSheet

public boolean isStyleSheet()

If set to true, a link element with a reference to the theme stylesheet resource is rendered.


setStyleSheet

public void setStyleSheet(boolean styleSheet)

If set to true, a link element with a reference to the theme stylesheet resource is rendered.

See Also:
isStyleSheet()

isStyleSheetInline

public boolean isStyleSheetInline()
Deprecated. Not well supported by browsers.

If set to true, the theme stylesheet contents will be rendered inline instead of being linked to.


setStyleSheetInline

public void setStyleSheetInline(boolean styleSheetInline)
Deprecated. Not well supported by browsers.

If set to true, the theme stylesheet contents will be rendered inline instead of being linked to.

See Also:
isStyleSheetInline()

isWebuiAll

public boolean isWebuiAll()
Test flag indicating to include all webui functionality.


setWebuiAll

public void setWebuiAll(boolean webuiAll)
Flag indicating to include all webui functionality.


isWebuiJsfx

public boolean isWebuiJsfx()
Test flag indicating to include default Ajax functionality.


setWebuiJsfx

public void setWebuiJsfx(boolean webuiJsfx)
Set flag indicating to include default Ajax functionality.


restoreState

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

Restore the state of this component.

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase

saveState

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

Save the state of this component.

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase


Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.