org.apache.jetspeed.headerresource
Interface HeaderResource


public interface HeaderResource

HeaderResource has tags information to put them into <head> tag.

Version:
$Id: PortalReservedParameters.java 188569 2005-05-13 13:35:18Z weaver $
Author:
Shinsuke Sugaya

Method Summary
 void addHeaderInfo(String elementName, Map attributes, String text)
          Add tag information to this instance.
 void addJavaScript(String path)
          Convenient method to add <script> tag.
 void addJavaScript(String path, boolean defer)
          Convenient method to add <script> tag with defer option.
 void addStyleSheet(String path)
          Convenient method to add <link> tag.
 String toString()
          Returns tags to put them into <head> tag.
 

Method Detail

toString

public String toString()
Returns tags to put them into <head> tag.

Returns:

addHeaderInfo

public void addHeaderInfo(String elementName,
                          Map attributes,
                          String text)
Add tag information to this instance. For example, if you want to add the following tag into <head>, <foo a="1" b="2">FOO FOO</foo> Java code is: HashMap map=new HashMap(); map.put("a","1"); map.put("b","2"); headerResouce.addHeaderInfo("foo",map,"FOO FOO");

Parameters:
elementName - Tag's name
attributes - Tag's attributes
text - Tag's content

addJavaScript

public void addJavaScript(String path,
                          boolean defer)
Convenient method to add <script> tag with defer option.

Parameters:
path - Javascript file path
defer - defer attributes for <script> tag.

addJavaScript

public void addJavaScript(String path)
Convenient method to add <script> tag.

Parameters:
path - Javascript file path

addStyleSheet

public void addStyleSheet(String path)
Convenient method to add <link> tag.

Parameters:
path - CSS file path


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.