站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

HeaderContentPlugin.HeaderElement - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.plugins.page
Class HeaderContentPlugin.HeaderElement

java.lang.Object
  extended byorg.jboss.portal.core.plugins.page.HeaderContentPlugin.HeaderElement
Enclosing class:
HeaderContentPlugin

public static class HeaderContentPlugin.HeaderElement
extends java.lang.Object

representation of a header element.


Constructor Summary
HeaderContentPlugin.HeaderElement(java.lang.String contextPath, java.lang.String src, java.lang.String type, java.lang.String bodyContent)
          Create a script header element.
HeaderContentPlugin.HeaderElement(java.lang.String contextPath, java.lang.String rel, java.lang.String type, java.lang.String href, java.lang.String title, java.lang.String media)
          Create a link header element.
 
Method Summary
 java.lang.String getContent()
          Get the markup for this element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderContentPlugin.HeaderElement

public HeaderContentPlugin.HeaderElement(java.lang.String contextPath,
                                         java.lang.String rel,
                                         java.lang.String type,
                                         java.lang.String href,
                                         java.lang.String title,
                                         java.lang.String media)
Create a link header element.

This element will create a link tag.

Parameters:
contextPath - the context path of the WAR that hosts the resource this link points to
rel - the rel attribute of the link
type - the type attribute of the link
href - the href attribute of the link
title - the title attribute of the link
media - the media attribute of the link

HeaderContentPlugin.HeaderElement

public HeaderContentPlugin.HeaderElement(java.lang.String contextPath,
                                         java.lang.String src,
                                         java.lang.String type,
                                         java.lang.String bodyContent)
Create a script header element.

This element will create a script tag.

Parameters:
contextPath - the context path of the WAR that hosts the resource this script points to
src - the src attribute of this script
type - the type attribute of this script
bodyContent - the body of the src tag (if any)
Method Detail

getContent

public java.lang.String getContent()
Get the markup for this element

Returns:
the markup of this element