com.sun.webui.jsf.component
Class Link

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

public class Link
extends javax.faces.component.UIComponentBase

The Link component is iused to insert information into the <head> element, such as links to external stylesheets.


Constructor Summary
Link()
          Construct a new Link.
 
Method Summary
 java.lang.String getCharset()
          Defines the character (charset) encoding of the target URL.
 java.lang.String getFamily()
          Return the family for this component.
 java.lang.String getMedia()
          Specifies the type of display device for which the referenced document is designed.
 java.lang.String getRel()
          Defines the relationship between the current document and the targeted document.
 java.lang.String getType()
          Specifies the MIME type of the target URL.
 java.lang.String getUrl()
          The absolute or relative target URL of the resource.
 java.lang.String getUrlLang()
          Defines the ISO language code of the human language used in the target URL file.
 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 setCharset(java.lang.String charset)
          Defines the character (charset) encoding of the target URL.
 void setId(java.lang.String id)
          The component identifier for this component.
 void setMedia(java.lang.String media)
          Specifies the type of display device for which the referenced document is designed.
 void setRel(java.lang.String rel)
          Defines the relationship between the current document and the targeted document.
 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 setType(java.lang.String type)
          Specifies the MIME type of the target URL.
 void setUrl(java.lang.String url)
          The absolute or relative target URL of the resource.
 void setUrlLang(java.lang.String urlLang)
          Defines the ISO language code of the human language used in the target URL file.
 
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

Link

public Link()

Construct a new Link.

Method Detail

getFamily

public java.lang.String getFamily()

Return the family for this component.

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

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

getCharset

public java.lang.String getCharset()

Defines the character (charset) encoding of the target URL. Default value is "ISO-8859-1".


setCharset

public void setCharset(java.lang.String charset)

Defines the character (charset) encoding of the target URL. Default value is "ISO-8859-1".

See Also:
getCharset()

getMedia

public java.lang.String getMedia()

Specifies the type of display device for which the referenced document is designed. The media attribute is useful for specifying different stylesheets for print and viewing on a screen. The default value is "screen".


setMedia

public void setMedia(java.lang.String media)

Specifies the type of display device for which the referenced document is designed. The media attribute is useful for specifying different stylesheets for print and viewing on a screen. The default value is "screen".

See Also:
getMedia()

getRel

public java.lang.String getRel()

Defines the relationship between the current document and the targeted document. Default is "stylesheet". Other possible values are described at w3.org.


setRel

public void setRel(java.lang.String rel)

Defines the relationship between the current document and the targeted document. Default is "stylesheet". Other possible values are described at w3.org.

See Also:
getRel()

getType

public java.lang.String getType()

Specifies the MIME type of the target URL. Default is: "text/css"


setType

public void setType(java.lang.String type)

Specifies the MIME type of the target URL. Default is: "text/css"

See Also:
getType()

getUrl

public java.lang.String getUrl()

The absolute or relative target URL of the resource.


setUrl

public void setUrl(java.lang.String url)

The absolute or relative target URL of the resource.

See Also:
getUrl()

getUrlLang

public java.lang.String getUrlLang()

Defines the ISO language code of the human language used in the target URL file. For example, valid values might be en, fr, es.


setUrlLang

public void setUrlLang(java.lang.String urlLang)

Defines the ISO language code of the human language used in the target URL file. For example, valid values might be en, fr, es.

See Also:
getUrlLang()

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.