当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
ThemeLink - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.theme
Class ThemeLink
java.lang.Object
org.jboss.portal.theme.ThemeLink
- All Implemented Interfaces:
- ThemeElement
- public final class ThemeLink
- extends java.lang.Object
- implements ThemeElement
An implementation of a ThemeLink
.
The theme link is responsible for producing the markup of a link
element in the markup response's head tag.
- Version:
- $LastChangedRevision: 5448 $, $LastChangedDate: 2006-10-13 15:29:17 -0400 (Fri, 13 Oct 2006) $
- Author:
- Martin Holzner
- See Also:
ThemeElement
Field Summary |
private java.lang.String |
href
|
private java.lang.String |
id
|
private java.lang.String |
link
|
private static org.apache.log4j.Logger |
log
|
private java.lang.String |
media
|
private java.lang.String |
rel
|
private java.lang.String |
title
|
private java.lang.String |
type
|
Constructor Summary |
ThemeLink(java.lang.String contextPath,
java.lang.String rel,
java.lang.String type,
java.lang.String href,
java.lang.String id,
java.lang.String title,
java.lang.String media)
Create a new ThemeLink |
Method Summary |
private static java.lang.String |
buildLinkMarkup(java.lang.String contextPath,
java.lang.String rel,
java.lang.String type,
java.lang.String href,
java.lang.String id,
java.lang.String title,
java.lang.String media)
|
java.lang.String |
getAttributeValue(java.lang.String attributeName)
Get the attribute value of the provided attribute, or null if the attribute is not specified in this element |
java.lang.String |
getElement()
Get the markup of the theme element. |
java.lang.String |
getLink()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
private static final org.apache.log4j.Logger log
rel
private final java.lang.String rel
type
private final java.lang.String type
href
private final java.lang.String href
title
private final java.lang.String title
media
private final java.lang.String media
id
private final java.lang.String id
link
private final java.lang.String link
ThemeLink
public ThemeLink(java.lang.String contextPath,
java.lang.String rel,
java.lang.String type,
java.lang.String href,
java.lang.String id,
java.lang.String title,
java.lang.String media)
- Create a new ThemeLink
- Parameters:
contextPath
- the URI of the servlet context that hosts the resource that the link is pointing torel
- the rel attributes valuetype
- the type attributes valuehref
- the href attributes valuetitle
- the title attributes valuemedia
- the media attributes value
getLink
public java.lang.String getLink()
- See Also:
getLink()
toString
public java.lang.String toString()
- See Also:
Object.toString()
getElement
public java.lang.String getElement()
- Description copied from interface:
ThemeElement
- Get the markup of the theme element.
- Specified by:
getElement
in interface ThemeElement
- Returns:
- the markup that this theme element represents
- See Also:
ThemeElement.getElement()
getAttributeValue
public java.lang.String getAttributeValue(java.lang.String attributeName)
- Description copied from interface:
ThemeElement
- Get the attribute value of the provided attribute, or null if the attribute is not specified in this element
- Specified by:
getAttributeValue
in interface ThemeElement
- Parameters:
attributeName
- the name of the attribute to get the value for
- Returns:
- a String with the attribute value
- See Also:
org.jboss.portal.theme.ThemeElement@getAttributeValue
buildLinkMarkup
private static java.lang.String buildLinkMarkup(java.lang.String contextPath,
java.lang.String rel,
java.lang.String type,
java.lang.String href,
java.lang.String id,
java.lang.String title,
java.lang.String media)