org.apache.jetspeed.headerresource.impl
Class HeaderResourceImpl

java.lang.Object
  extended by org.apache.jetspeed.headerresource.impl.HeaderResourceImpl
All Implemented Interfaces:
HeaderResource

public class HeaderResourceImpl
extends java.lang.Object
implements HeaderResource

Default implementation for HeaderResource

Version:
$Id: HeaderResourceImpl.java 188569 2005-05-13 13:35:18Z weaver $
Author:
Shinsuke Sugaya, Steve Milek

Field Summary
protected static java.lang.String EOL
           
protected static org.apache.commons.logging.Log log
           
protected static java.lang.String UNNAMED_CONTENT_HEADER_NAME
           
 
Fields inherited from interface org.apache.jetspeed.headerresource.HeaderResource
DESKTOP_JSON_WINDOW_ACTION_BUTTON_MAX, DESKTOP_JSON_WINDOW_ACTION_BUTTON_ORDER, DESKTOP_JSON_WINDOW_ACTION_BUTTON_TOOLTIP, DESKTOP_JSON_WINDOW_ACTION_MENU_ORDER, DESKTOP_JSON_WINDOW_ACTION_NOIMAGE, DESKTOP_JSON_WINDOW_ICON_ENABLED, DESKTOP_JSON_WINDOW_ICON_PATH, DESKTOP_JSON_WINDOW_RESIZEBAR_ENABLED, DESKTOP_JSON_WINDOW_TITLEBAR_ENABLED, HEADER_CONFIG_DESKTOP, HEADER_CONFIG_DESKTOP_LAYOUT_DECORATION_DEFAULT, HEADER_CONFIG_DESKTOP_PAGE_ACTION_BUTTON_TOOLTIP, HEADER_CONFIG_DESKTOP_PAGE_AJAXNAVIGATION, HEADER_CONFIG_DESKTOP_PORTLET_DECORATION_DEFAULT, HEADER_CONFIG_DESKTOP_WINDOW_ACTION_BUTTON_MAX, HEADER_CONFIG_DESKTOP_WINDOW_ACTION_BUTTON_ORDER, HEADER_CONFIG_DESKTOP_WINDOW_ACTION_BUTTON_TOOLTIP, HEADER_CONFIG_DESKTOP_WINDOW_ACTION_MENU_ORDER, HEADER_CONFIG_DESKTOP_WINDOW_ACTION_NOIMAGE, HEADER_CONFIG_DESKTOP_WINDOW_HEIGHT, HEADER_CONFIG_DESKTOP_WINDOW_HEIGHT_EXPAND, HEADER_CONFIG_DESKTOP_WINDOW_ICON_ENABLED, HEADER_CONFIG_DESKTOP_WINDOW_ICON_PATH, HEADER_CONFIG_DESKTOP_WINDOW_RESIZEBAR_ENABLED, HEADER_CONFIG_DESKTOP_WINDOW_TILING, HEADER_CONFIG_DESKTOP_WINDOW_TITLEBAR_ENABLED, HEADER_CONFIG_DESKTOP_WINDOW_WIDTH, HEADER_CONFIG_DOJO, HEADER_CONFIG_DOJO_ENABLE, HEADER_CONFIG_DOJO_MODULES_NAMESPACE, HEADER_CONFIG_DOJO_MODULES_PATH, HEADER_CONFIG_DOJO_PARAM_DEBUGALLCOSTS, HEADER_CONFIG_DOJO_PARAM_ISDEBUG, HEADER_CONFIG_DOJO_PARAM_PREVENT_BACKBUTTON_FIX, HEADER_CONFIG_DOJO_PARAMS, HEADER_CONFIG_DOJO_PATH, HEADER_CONFIG_DOJO_REQUIRES_CORE, HEADER_CONFIG_DOJO_REQUIRES_MODULES, HEADER_CONFIG_ORDER, HEADER_CONFIG_REQUIREDFLAG, HEADER_CONFIG_TYPES, HEADER_DEBUG_REQUIRES, HEADER_INTERNAL_CONFIG_DESKTOP_WINDOW_ACTION, HEADER_INTERNAL_DOJO_CONFIG_JETSPEED_VAR_NAME, HEADER_INTERNAL_DOJO_CONFIG_JETSPEED_VAR_NAME_SCOPE, HEADER_INTERNAL_INCLUDED_NAMES, HEADER_INTERNAL_JETSPEED_VAR_NAME, HEADER_SECTION_BASE_TAG, HEADER_SECTION_DESKTOP_INIT, HEADER_SECTION_DESKTOP_STYLE_LAYOUT, HEADER_SECTION_DOJO_CONFIG, HEADER_SECTION_DOJO_INIT, HEADER_SECTION_DOJO_MODULES_NAMESPACE, HEADER_SECTION_DOJO_MODULES_PATH, HEADER_SECTION_DOJO_PARAMETERS, HEADER_SECTION_DOJO_PREINIT, HEADER_SECTION_DOJO_REQUIRES_CORE, HEADER_SECTION_DOJO_REQUIRES_MODULES, HEADER_SECTION_DOJO_STYLE_BODYEXPAND, HEADER_SECTION_DOJO_STYLE_BODYEXPAND_NOSCROLL, HEADER_SECTION_DOJO_WRITEINCLUDES, HEADER_SECTION_NAME_PREFIX_DOJO, HEADER_TYPE_BASE_TAG, HEADER_TYPE_ID_BASE_TAG, HEADER_TYPE_ID_LINK_TAG, HEADER_TYPE_ID_SCRIPT_BLOCK, HEADER_TYPE_ID_SCRIPT_BLOCK_END, HEADER_TYPE_ID_SCRIPT_BLOCK_START, HEADER_TYPE_ID_SCRIPT_TAG, HEADER_TYPE_ID_STYLE_BLOCK, HEADER_TYPE_LINK_TAG, HEADER_TYPE_SCRIPT_BLOCK, HEADER_TYPE_SCRIPT_BLOCK_END, HEADER_TYPE_SCRIPT_BLOCK_START, HEADER_TYPE_SCRIPT_TAG, HEADER_TYPE_STYLE_BLOCK
 
Constructor Summary
HeaderResourceImpl(RequestContext context)
          Default Constructor
HeaderResourceImpl(RequestContext context, BasePortalURL baseUrlAccess, boolean isDesktop, java.util.Map headerConfiguration)
           
 
Method Summary
 void addHeaderInfo(java.lang.String text)
          Add text as-is to this instance.
 void addHeaderInfo(java.lang.String elementName, java.util.Map attributes, java.lang.String text)
          Add tag information to this instance.
 void addHeaderSectionFragment(java.lang.String addToHeaderName, java.lang.String text)
          Add text argument to the getHeaderSections() content entry with a key that matches addToHeaderName argument
 void addHeaderSectionFragment(java.lang.String headerFragmentName, java.lang.String addToHeaderName, java.lang.String text)
          If no previous call using value of headerFragmentName argument has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry with a key that matches addToHeaderName argument
protected  void addHeaderSectionFragment(java.lang.String headerFragmentName, java.lang.String addToHeaderName, java.lang.String text, boolean alreadyCheckedFragName)
           
 void addJavaScript(java.lang.String path)
          Convenient method to add <script> tag.
 void addJavaScript(java.lang.String path, boolean defer)
          Convenient method to add <script> tag with defer option.
 void addStyleSheet(java.lang.String path)
          Convenient method to add <link> tag.
 void dojoAddBodyExpandStyle(boolean omitWindowScrollbars)
          Assure that header section name for dojo body expand style is included
 void dojoAddCoreLibraryRequire(java.lang.String dojoRequire)
          If no previous call using value of dojoRequire argument has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry for dojo core require statements
 void dojoAddCoreLibraryRequires(java.lang.String dojoRequires)
          Split dojoRequires argument using ';' delimiter and for each resulting dojoRequire value, if no previous call using dojoRequire value has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry for dojo core require statements
 void dojoAddModuleLibraryRequire(java.lang.String dojoRequire)
          If no previous call using value of dojoRequire argument has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry for dojo library module require statements
 void dojoAddModuleLibraryRequires(java.lang.String dojoRequires)
          Split dojoRequires argument using ';' delimiter and for each resulting dojoRequire value, if no previous call using dojoRequire value has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry for dojo library module require statements
protected  void dojoAddRequire(java.lang.String dojoRequire, java.lang.String addToHeaderName)
           
protected  void dojoAddRequires(java.lang.String dojoRequires, java.lang.String addToHeaderName)
           
protected  void dojoDisable()
           
 void dojoEnable()
          Enable dojo by setting appropriate modifiable header configuration setting
protected  java.lang.String dojoGenerateBodyExpandNoScrollStyle()
           
protected  java.lang.String dojoGenerateBodyExpandStyle()
           
protected  java.lang.String dojoGenerateInit()
           
protected  java.lang.String dojoGeneratePreinit()
           
protected  java.lang.String dojoGenerateWriteincludes()
           
protected  java.lang.String dojoGetPath()
           
protected  java.lang.String generateHeaderSection(java.lang.String headerName)
           
protected  BasePortalURL getBaseUrlAccess()
           
 java.lang.String getContent()
          Output all content (that has not already been output)
 java.util.Map getHeaderConfiguration()
          Access complete header configuration settings
 java.util.Map getHeaderDynamicConfiguration()
          Access modifiable header configuration settings
protected  java.util.Map getHeaderResourceRegistry()
           
protected  java.util.Map getHeaderSectionNames(boolean create)
           
protected  java.util.List getHeaderSectionOrderList(boolean create)
           
 java.lang.String getHeaderSectionRequiredFlag(java.lang.String headerName)
          Get the requiredflag of the getHeaderSections() content entry with a key that matches headerName argument
protected  java.util.Map getHeaderSections()
           
protected  java.util.Map getHeaderSectionsAddedFragments()
           
 java.lang.String getHeaderSectionType(java.lang.String headerName)
          Get the type of the getHeaderSections() content entry with a key that matches headerName argument
protected  java.util.Map getHeaderSectionTypes(boolean create)
           
 java.lang.String getNamedContent()
          Output all getHeaderSections() content (that has not already been output)
 java.lang.String getNamedContent(java.lang.String headerName)
          Output the one getHeaderSections() content entry with a key that matches headerName (if it has not already been output)
 java.lang.String getNamedContentForPrefix(java.lang.String headerNamePrefix)
          Output getHeaderSections() content entries with key prefixes that match headerNamePrefix (if it has not already been output)
protected  void getNamedResourceContent(java.lang.String headerNameMatch, boolean headerNameMatchPrefixOnly, java.lang.StringBuffer header)
           
protected  java.util.HashMap getNamedResourcesAlreadyOutput()
           
 java.lang.String getPortalBaseUrl()
          Portal base url ( e.g.
 java.lang.String getPortalBaseUrl(boolean encode)
          Portal base url ( e.g.
 java.lang.String getPortalResourceUrl(java.lang.String relativePath)
          Portal base url with relativePath argument appended ( e.g.
 java.lang.String getPortalResourceUrl(java.lang.String relativePath, boolean encode)
          Portal base url with relativePath argument appended ( e.g.
 java.lang.String getPortalUrl()
          Portal base servlet url ( e.g.
 java.lang.String getPortalUrl(boolean encode)
          Portal base servlet url ( e.g.
 java.lang.String getPortalUrl(java.lang.String relativePath)
          Portal base servlet url with relativePath argument appended ( e.g.
 java.lang.String getPortalUrl(java.lang.String relativePath, boolean encode)
          Portal base servlet url with relativePath argument appended ( e.g.
protected  RequestContext getRequestContext()
           
 java.lang.String getUnnamedContent()
          Output all unnamed (getHeaderInfoSet()) content (that has not already been output)
protected  void getUnnamedContent(java.lang.StringBuffer header)
           
 boolean hasHeaderSectionFragment(java.lang.String headerFragmentName)
          Indicate whether value of headerFragmentName argument has been used to add to any getHeaderSections() content entry
protected  boolean hasHeaderSectionFragment(java.lang.String headerFragmentName, boolean setToTrue)
           
 boolean isDesktop()
          Is request for /desktop rather than /portal
 boolean isHeaderSectionIncluded(java.lang.String headerName)
          Indicate whether value of headerName is an included header section
protected  java.lang.String jetspeedGenerateBasetag()
           
protected  void orderHeaderSection(java.lang.String headerName)
           
 void setHeaderSectionRequiredFlag(java.lang.String headerName, java.lang.String headerReqFlag)
          Set the requiredflag of the getHeaderSections() content entry with a key that matches headerName argument to the value of the headerReqFlag argument
 void setHeaderSectionType(java.lang.String headerName, java.lang.String headerType)
          Set the type of the getHeaderSections() content entry with a key that matches headerName argument to the value of the headerType argument
protected  void setNamedResourcesAlreadyOutput(java.util.HashMap newOne)
           
 java.lang.String toString()
          Output all content (that has not already been output)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log

EOL

protected static final java.lang.String EOL
See Also:
Constant Field Values

UNNAMED_CONTENT_HEADER_NAME

protected static final java.lang.String UNNAMED_CONTENT_HEADER_NAME
See Also:
Constant Field Values
Constructor Detail

HeaderResourceImpl

public HeaderResourceImpl(RequestContext context)
Default Constructor

Parameters:
context -

HeaderResourceImpl

public HeaderResourceImpl(RequestContext context,
                          BasePortalURL baseUrlAccess,
                          boolean isDesktop,
                          java.util.Map headerConfiguration)
Method Detail

getContent

public java.lang.String getContent()
Output all content (that has not already been output)

Specified by:
getContent in interface HeaderResource
Returns:
content string for inclusion in html <head>

toString

public java.lang.String toString()
Output all content (that has not already been output)

Specified by:
toString in interface HeaderResource
Overrides:
toString in class java.lang.Object
Returns:
content string for inclusion in html <head>

getUnnamedContent

public java.lang.String getUnnamedContent()
Output all unnamed (getHeaderInfoSet()) content (that has not already been output)

Specified by:
getUnnamedContent in interface HeaderResource
Returns:
content string for inclusion in html <head>

getNamedContent

public java.lang.String getNamedContent()
Output all getHeaderSections() content (that has not already been output)

Specified by:
getNamedContent in interface HeaderResource
Returns:
content string for inclusion in html <head>

getNamedContent

public java.lang.String getNamedContent(java.lang.String headerName)
Output the one getHeaderSections() content entry with a key that matches headerName (if it has not already been output)

Specified by:
getNamedContent in interface HeaderResource
Returns:
content string for inclusion in html <head>

getNamedContentForPrefix

public java.lang.String getNamedContentForPrefix(java.lang.String headerNamePrefix)
Output getHeaderSections() content entries with key prefixes that match headerNamePrefix (if it has not already been output)

Specified by:
getNamedContentForPrefix in interface HeaderResource
Returns:
content string for inclusion in html <head>

getUnnamedContent

protected void getUnnamedContent(java.lang.StringBuffer header)

getNamedResourceContent

protected void getNamedResourceContent(java.lang.String headerNameMatch,
                                       boolean headerNameMatchPrefixOnly,
                                       java.lang.StringBuffer header)

generateHeaderSection

protected java.lang.String generateHeaderSection(java.lang.String headerName)

addHeaderSectionFragment

public void addHeaderSectionFragment(java.lang.String addToHeaderName,
                                     java.lang.String text)
Add text argument to the getHeaderSections() content entry with a key that matches addToHeaderName argument

Specified by:
addHeaderSectionFragment in interface HeaderResource

addHeaderSectionFragment

public void addHeaderSectionFragment(java.lang.String headerFragmentName,
                                     java.lang.String addToHeaderName,
                                     java.lang.String text)
If no previous call using value of headerFragmentName argument has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry with a key that matches addToHeaderName argument

Specified by:
addHeaderSectionFragment in interface HeaderResource

addHeaderSectionFragment

protected void addHeaderSectionFragment(java.lang.String headerFragmentName,
                                        java.lang.String addToHeaderName,
                                        java.lang.String text,
                                        boolean alreadyCheckedFragName)

hasHeaderSectionFragment

public boolean hasHeaderSectionFragment(java.lang.String headerFragmentName)
Indicate whether value of headerFragmentName argument has been used to add to any getHeaderSections() content entry

Specified by:
hasHeaderSectionFragment in interface HeaderResource
Returns:
true if headerFragmentName argument has been used to add to any getHeaderSections() content entry

hasHeaderSectionFragment

protected boolean hasHeaderSectionFragment(java.lang.String headerFragmentName,
                                           boolean setToTrue)

orderHeaderSection

protected void orderHeaderSection(java.lang.String headerName)

isHeaderSectionIncluded

public boolean isHeaderSectionIncluded(java.lang.String headerName)
Indicate whether value of headerName is an included header section

Specified by:
isHeaderSectionIncluded in interface HeaderResource
Returns:
true if headerName argument is an included header section

getHeaderSectionType

public java.lang.String getHeaderSectionType(java.lang.String headerName)
Get the type of the getHeaderSections() content entry with a key that matches headerName argument

Specified by:
getHeaderSectionType in interface HeaderResource
Returns:
type of header section

setHeaderSectionType

public void setHeaderSectionType(java.lang.String headerName,
                                 java.lang.String headerType)
Set the type of the getHeaderSections() content entry with a key that matches headerName argument to the value of the headerType argument

Specified by:
setHeaderSectionType in interface HeaderResource

getHeaderSectionRequiredFlag

public java.lang.String getHeaderSectionRequiredFlag(java.lang.String headerName)
Get the requiredflag of the getHeaderSections() content entry with a key that matches headerName argument

Specified by:
getHeaderSectionRequiredFlag in interface HeaderResource
Returns:
requiredflag for header section

setHeaderSectionRequiredFlag

public void setHeaderSectionRequiredFlag(java.lang.String headerName,
                                         java.lang.String headerReqFlag)
Set the requiredflag of the getHeaderSections() content entry with a key that matches headerName argument to the value of the headerReqFlag argument

Specified by:
setHeaderSectionRequiredFlag in interface HeaderResource

getHeaderSectionTypes

protected java.util.Map getHeaderSectionTypes(boolean create)

getHeaderSectionNames

protected java.util.Map getHeaderSectionNames(boolean create)

getHeaderSectionOrderList

protected java.util.List getHeaderSectionOrderList(boolean create)

getHeaderDynamicConfiguration

public java.util.Map getHeaderDynamicConfiguration()
Access modifiable header configuration settings

Specified by:
getHeaderDynamicConfiguration in interface HeaderResource
Returns:
Map containing modifiable header configuration settings

getHeaderSections

protected java.util.Map getHeaderSections()

getHeaderSectionsAddedFragments

protected java.util.Map getHeaderSectionsAddedFragments()

getHeaderResourceRegistry

protected java.util.Map getHeaderResourceRegistry()

getRequestContext

protected RequestContext getRequestContext()

getBaseUrlAccess

protected BasePortalURL getBaseUrlAccess()

isDesktop

public boolean isDesktop()
Is request for /desktop rather than /portal

Specified by:
isDesktop in interface HeaderResource
Returns:
true if request is for /desktop, false if request is for /portal

getHeaderConfiguration

public java.util.Map getHeaderConfiguration()
Access complete header configuration settings

Specified by:
getHeaderConfiguration in interface HeaderResource
Returns:
unmodifiable Map containing complete header configuration settings

getNamedResourcesAlreadyOutput

protected java.util.HashMap getNamedResourcesAlreadyOutput()

setNamedResourcesAlreadyOutput

protected void setNamedResourcesAlreadyOutput(java.util.HashMap newOne)

getPortalBaseUrl

public java.lang.String getPortalBaseUrl()
Portal base url ( e.g. http://localhost:8080/jetspeed )

Specified by:
getPortalBaseUrl in interface HeaderResource
Returns:
portal base url

getPortalBaseUrl

public java.lang.String getPortalBaseUrl(boolean encode)
Portal base url ( e.g. http://localhost:8080/jetspeed )

Specified by:
getPortalBaseUrl in interface HeaderResource
Returns:
portal base url

getPortalResourceUrl

public java.lang.String getPortalResourceUrl(java.lang.String relativePath)
Portal base url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/javascript/dojo/ )

Specified by:
getPortalResourceUrl in interface HeaderResource
Returns:
portal base url with relativePath argument appended

getPortalResourceUrl

public java.lang.String getPortalResourceUrl(java.lang.String relativePath,
                                             boolean encode)
Portal base url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/javascript/dojo/ )

Specified by:
getPortalResourceUrl in interface HeaderResource
Returns:
portal base url with relativePath argument appended

getPortalUrl

public java.lang.String getPortalUrl()
Portal base servlet url ( e.g. http://localhost:8080/jetspeed/desktop/ )

Specified by:
getPortalUrl in interface HeaderResource
Returns:
portal base servlet url

getPortalUrl

public java.lang.String getPortalUrl(boolean encode)
Portal base servlet url ( e.g. http://localhost:8080/jetspeed/desktop/ )

Specified by:
getPortalUrl in interface HeaderResource
Returns:
portal base servlet url

getPortalUrl

public java.lang.String getPortalUrl(java.lang.String relativePath)
Portal base servlet url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/desktop/default-page.psml )

Specified by:
getPortalUrl in interface HeaderResource
Returns:
portal base servlet url with relativePath argument appended

getPortalUrl

public java.lang.String getPortalUrl(java.lang.String relativePath,
                                     boolean encode)
Portal base servlet url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/desktop/default-page.psml )

Specified by:
getPortalUrl in interface HeaderResource
Returns:
portal base servlet url with relativePath argument appended

jetspeedGenerateBasetag

protected java.lang.String jetspeedGenerateBasetag()

dojoAddCoreLibraryRequire

public void dojoAddCoreLibraryRequire(java.lang.String dojoRequire)
If no previous call using value of dojoRequire argument has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry for dojo core require statements

Specified by:
dojoAddCoreLibraryRequire in interface HeaderResource

dojoAddCoreLibraryRequires

public void dojoAddCoreLibraryRequires(java.lang.String dojoRequires)
Split dojoRequires argument using ';' delimiter and for each resulting dojoRequire value, if no previous call using dojoRequire value has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry for dojo core require statements

Specified by:
dojoAddCoreLibraryRequires in interface HeaderResource

dojoAddModuleLibraryRequire

public void dojoAddModuleLibraryRequire(java.lang.String dojoRequire)
If no previous call using value of dojoRequire argument has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry for dojo library module require statements

Specified by:
dojoAddModuleLibraryRequire in interface HeaderResource

dojoAddModuleLibraryRequires

public void dojoAddModuleLibraryRequires(java.lang.String dojoRequires)
Split dojoRequires argument using ';' delimiter and for each resulting dojoRequire value, if no previous call using dojoRequire value has been added to any getHeaderSections() content entry, add text argument to the getHeaderSections() content entry for dojo library module require statements

Specified by:
dojoAddModuleLibraryRequires in interface HeaderResource

dojoAddBodyExpandStyle

public void dojoAddBodyExpandStyle(boolean omitWindowScrollbars)
Assure that header section name for dojo body expand style is included

Specified by:
dojoAddBodyExpandStyle in interface HeaderResource

dojoEnable

public void dojoEnable()
Enable dojo by setting appropriate modifiable header configuration setting

Specified by:
dojoEnable in interface HeaderResource

dojoDisable

protected void dojoDisable()

dojoGetPath

protected java.lang.String dojoGetPath()

dojoAddRequire

protected void dojoAddRequire(java.lang.String dojoRequire,
                              java.lang.String addToHeaderName)

dojoAddRequires

protected void dojoAddRequires(java.lang.String dojoRequires,
                               java.lang.String addToHeaderName)

dojoGeneratePreinit

protected java.lang.String dojoGeneratePreinit()

dojoGenerateInit

protected java.lang.String dojoGenerateInit()

dojoGenerateWriteincludes

protected java.lang.String dojoGenerateWriteincludes()

dojoGenerateBodyExpandStyle

protected java.lang.String dojoGenerateBodyExpandStyle()

dojoGenerateBodyExpandNoScrollStyle

protected java.lang.String dojoGenerateBodyExpandNoScrollStyle()

addHeaderInfo

public void addHeaderInfo(java.lang.String text)
Description copied from interface: HeaderResource
Add text as-is to this instance.

Specified by:
addHeaderInfo in interface HeaderResource
Parameters:
text - content

addHeaderInfo

public void addHeaderInfo(java.lang.String elementName,
                          java.util.Map attributes,
                          java.lang.String text)
Description copied from interface: HeaderResource
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");

Specified by:
addHeaderInfo in interface HeaderResource
Parameters:
elementName - Tag's name
attributes - Tag's attributes
text - Tag's content

addJavaScript

public void addJavaScript(java.lang.String path,
                          boolean defer)
Description copied from interface: HeaderResource
Convenient method to add <script> tag with defer option.

Specified by:
addJavaScript in interface HeaderResource
Parameters:
path - Javascript file path
defer - defer attributes for <script> tag.

addJavaScript

public void addJavaScript(java.lang.String path)
Description copied from interface: HeaderResource
Convenient method to add <script> tag.

Specified by:
addJavaScript in interface HeaderResource
Parameters:
path - Javascript file path

addStyleSheet

public void addStyleSheet(java.lang.String path)
Description copied from interface: HeaderResource
Convenient method to add <link> tag.

Specified by:
addStyleSheet in interface HeaderResource
Parameters:
path - CSS file path


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