| com.sun.rave.web.ui.component.LinkBase
All known Subclasses: com.sun.rave.web.ui.component.Link,
LinkBase | abstract public class LinkBase extends javax.faces.component.UIComponentBase (Code) | | Use the ui:link tag to insert header
references to
other documents related to this HTML page. The ui:link
tag must be used inside the ui:head
tag, and can be used
multiple times for references to multiple documents. A common use for
the ui:link
tag is to link to an external stylesheet, but
it can also be used to provide information about the document's
relationship to other documents. There are a
number of useful defaults making it simpler to specify an HTML link
using this tag.
HTML Elements and Layout
The
rendered HTML page contains <link> element, along with any
attributes
specified through the ui:link
tag attributes.
Theme
Identifiers
None.
Client
Side Javascript Functions
None.
Example
Example
1: Create a context relative link to a stylesheet
<ui:page>
<ui:html>
<ui:head id="blah"
title="hyperlink test page">
<ui:link
url="/context-relative-path/tomyfile/stylesheet.css">
</ui:head>
<ui:body>
</ui:body>
</ui:html>
</ui:page>
Auto-generated component class.
Do NOT modify; all changes
will be lost!
|
Method Summary | |
public String | getCharset() Defines the character encoding (charset) of the target URL. | public String | getFamily() Return the identifier of the component family to which this
component belongs. | public String | getMedia() Specifies the type of display device for which the referenced document
is designed. | public String | getRel() Defines the relationship between the current document and the
targeted document. | public String | getType() Specifies the MIME type of the target resource. | public String | getUrl() | public String | getUrlLang() Defines the ISO language code of the human language used in the target
URL file. | public void | restoreState(FacesContext _context, Object _state) | public Object | saveState(FacesContext _context) | public void | setCharset(String charset) Defines the character encoding (charset) of the target URL. | public void | setMedia(String media) Specifies the type of display device for which the referenced document
is designed. | public void | setRel(String rel) Defines the relationship between the current document and the
targeted document. | public void | setType(String type) Specifies the MIME type of the target resource. | public void | setUrl(String url) | public void | setUrlLang(String urlLang) Defines the ISO language code of the human language used in the target
URL file. |
LinkBase | public LinkBase()(Code) | | Construct a new LinkBase .
|
getCharset | public String getCharset()(Code) | | Defines the character encoding (charset) of the target URL. Default
value is "ISO-8859-1".
|
getFamily | public String getFamily()(Code) | | 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.
|
getMedia | public String getMedia()(Code) | | 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".
|
getRel | public String getRel()(Code) | | Defines the relationship between the current document and the
targeted document. Default is "stylesheet". Other possible values
are described at w3.org.
|
getType | public String getType()(Code) | | Specifies the MIME type of the target resource. Default is: "text/css"
|
getUrl | public String getUrl()(Code) | | The absolute or relative target URL of the resource.
|
getUrlLang | public String getUrlLang()(Code) | | Defines the ISO language code of the human language used in the target
URL file. For example, valid values might be en, fr, es.
|
restoreState | public void restoreState(FacesContext _context, Object _state)(Code) | | Restore the state of this component.
|
saveState | public Object saveState(FacesContext _context)(Code) | | Save the state of this component.
|
setCharset | public void setCharset(String charset)(Code) | | Defines the character encoding (charset) of the target URL. Default
value is "ISO-8859-1".
See Also: LinkBase.getCharset() |
setMedia | public void setMedia(String media)(Code) | | 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: LinkBase.getMedia() |
setRel | public void setRel(String rel)(Code) | | Defines the relationship between the current document and the
targeted document. Default is "stylesheet". Other possible values
are described at w3.org.
See Also: LinkBase.getRel() |
setUrlLang | public void setUrlLang(String urlLang)(Code) | | 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: LinkBase.getUrlLang() |
|
|