org.apache.jetspeed.headerresource.impl
Class HeaderResourceImpl

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

public class HeaderResourceImpl
extends Object
implements org.apache.jetspeed.headerresource.HeaderResource

Default implementation for HeaderResource

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

Nested Class Summary
private  class HeaderResourceImpl.HeaderInfo
          This class represents tag information for HeaderResouce component
 
Field Summary
private  org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess
           
protected static String EOL
           
private  Map headerConfiguration
           
private  Map headerDynamicConfiguration
           
private  Map headerNamedResources
           
private  Map headerNamedResourcesAddedFragments
           
private  Map headerResourceRegistry
           
private  boolean isDesktop
           
protected static org.apache.commons.logging.Log log
           
private  HashMap namedResourcesAlreadyOutput
           
private  String portalBaseUrl
           
private  String portalUrl
           
private  org.apache.jetspeed.request.RequestContext requestContext
           
protected static 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(org.apache.jetspeed.request.RequestContext context)
          Default Constructor
HeaderResourceImpl(org.apache.jetspeed.request.RequestContext context, org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess, boolean isDesktop, Map headerConfiguration)
           
 
Method Summary
 void addHeaderInfo(String text)
           
 void addHeaderInfo(String elementName, Map attributes, String text)
           
 void addHeaderSectionFragment(String addToHeaderName, String text)
          Add text argument to the getHeaderSections() content entry with a key that matches addToHeaderName argument
 void addHeaderSectionFragment(String headerFragmentName, String addToHeaderName, 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(String headerFragmentName, String addToHeaderName, String text, boolean alreadyCheckedFragName)
           
 void addJavaScript(String path)
           
 void addJavaScript(String path, boolean defer)
           
 void addStyleSheet(String path)
           
private  boolean containsHeaderInfo(HeaderResourceImpl.HeaderInfo headerInfo)
          Returns true if this set contains the specified HeaderInfo.
 void dojoAddBodyExpandStyle(boolean omitWindowScrollbars)
          Assure that header section name for dojo body expand style is included
 void dojoAddCoreLibraryRequire(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(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(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(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(String dojoRequire, String addToHeaderName)
           
protected  void dojoAddRequires(String dojoRequires, String addToHeaderName)
           
protected  void dojoDisable()
           
 void dojoEnable()
          Enable dojo by setting appropriate modifiable header configuration setting
protected  String dojoGenerateBodyExpandNoScrollStyle()
           
protected  String dojoGenerateBodyExpandStyle()
           
protected  String dojoGenerateInit()
           
protected  String dojoGeneratePreinit()
           
protected  String dojoGenerateWriteincludes()
           
protected  String dojoGetPath()
           
protected  String generateHeaderSection(String headerName)
           
protected  org.apache.jetspeed.container.url.BasePortalURL getBaseUrlAccess()
           
 String getContent()
          Output all content (that has not already been output)
 Map getHeaderConfiguration()
          Access complete header configuration settings
 Map getHeaderDynamicConfiguration()
          Access modifiable header configuration settings
private  Set getHeaderInfoSet()
          Gets HeaderInfo set from the request.
protected  Map getHeaderResourceRegistry()
           
protected  Map getHeaderSectionNames(boolean create)
           
protected  List getHeaderSectionOrderList(boolean create)
           
 String getHeaderSectionRequiredFlag(String headerName)
          Get the requiredflag of the getHeaderSections() content entry with a key that matches headerName argument
protected  Map getHeaderSections()
           
protected  Map getHeaderSectionsAddedFragments()
           
 String getHeaderSectionType(String headerName)
          Get the type of the getHeaderSections() content entry with a key that matches headerName argument
protected  Map getHeaderSectionTypes(boolean create)
           
 String getNamedContent()
          Output all getHeaderSections() content (that has not already been output)
 String getNamedContent(String headerName)
          Output the one getHeaderSections() content entry with a key that matches headerName (if it has not already been output)
 String getNamedContentForPrefix(String headerNamePrefix)
          Output getHeaderSections() content entries with key prefixes that match headerNamePrefix (if it has not already been output)
protected  void getNamedResourceContent(String headerNameMatch, boolean headerNameMatchPrefixOnly, StringBuffer header)
           
protected  HashMap getNamedResourcesAlreadyOutput()
           
 String getPortalBaseUrl()
          Portal base url ( e.g.
 String getPortalBaseUrl(boolean encode)
          Portal base url ( e.g.
 String getPortalResourceUrl(String relativePath)
          Portal base url with relativePath argument appended ( e.g.
 String getPortalResourceUrl(String relativePath, boolean encode)
          Portal base url with relativePath argument appended ( e.g.
 String getPortalUrl()
          Portal base servlet url ( e.g.
 String getPortalUrl(boolean encode)
          Portal base servlet url ( e.g.
 String getPortalUrl(String relativePath)
          Portal base servlet url with relativePath argument appended ( e.g.
 String getPortalUrl(String relativePath, boolean encode)
          Portal base servlet url with relativePath argument appended ( e.g.
protected  org.apache.jetspeed.request.RequestContext getRequestContext()
           
 String getUnnamedContent()
          Output all unnamed (getHeaderInfoSet()) content (that has not already been output)
protected  void getUnnamedContent(StringBuffer header)
           
 boolean hasHeaderSectionFragment(String headerFragmentName)
          Indicate whether value of headerFragmentName argument has been used to add to any getHeaderSections() content entry
protected  boolean hasHeaderSectionFragment(String headerFragmentName, boolean setToTrue)
           
 boolean isDesktop()
          Is request for /desktop rather than /portal
 boolean isHeaderSectionIncluded(String headerName)
          Indicate whether value of headerName is an included header section
protected  String jetspeedGenerateBasetag()
           
protected  void orderHeaderSection(String headerName)
           
 void setHeaderSectionRequiredFlag(String headerName, 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(String headerName, 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(HashMap newOne)
           
 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 String EOL
See Also:
Constant Field Values

UNNAMED_CONTENT_HEADER_NAME

protected static final String UNNAMED_CONTENT_HEADER_NAME
See Also:
Constant Field Values

requestContext

private org.apache.jetspeed.request.RequestContext requestContext

baseUrlAccess

private org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess

isDesktop

private boolean isDesktop

headerConfiguration

private Map headerConfiguration

namedResourcesAlreadyOutput

private HashMap namedResourcesAlreadyOutput

headerDynamicConfiguration

private Map headerDynamicConfiguration

headerNamedResources

private Map headerNamedResources

headerNamedResourcesAddedFragments

private Map headerNamedResourcesAddedFragments

headerResourceRegistry

private Map headerResourceRegistry

portalBaseUrl

private String portalBaseUrl

portalUrl

private String portalUrl
Constructor Detail

HeaderResourceImpl

public HeaderResourceImpl(org.apache.jetspeed.request.RequestContext context)
Default Constructor

Parameters:
context -

HeaderResourceImpl

public HeaderResourceImpl(org.apache.jetspeed.request.RequestContext context,
                          org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess,
                          boolean isDesktop,
                          Map headerConfiguration)
Method Detail

getContent

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

Specified by:
getContent in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
content string for inclusion in html <head>

toString

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

Specified by:
toString in interface org.apache.jetspeed.headerresource.HeaderResource
Overrides:
toString in class Object
Returns:
content string for inclusion in html <head>

getUnnamedContent

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

Specified by:
getUnnamedContent in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
content string for inclusion in html <head>

getNamedContent

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

Specified by:
getNamedContent in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
content string for inclusion in html <head>

getNamedContent

public String getNamedContent(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 org.apache.jetspeed.headerresource.HeaderResource
Returns:
content string for inclusion in html <head>

getNamedContentForPrefix

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

Specified by:
getNamedContentForPrefix in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
content string for inclusion in html <head>

getUnnamedContent

protected void getUnnamedContent(StringBuffer header)

getNamedResourceContent

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

generateHeaderSection

protected String generateHeaderSection(String headerName)

addHeaderSectionFragment

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

Specified by:
addHeaderSectionFragment in interface org.apache.jetspeed.headerresource.HeaderResource

addHeaderSectionFragment

public void addHeaderSectionFragment(String headerFragmentName,
                                     String addToHeaderName,
                                     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 org.apache.jetspeed.headerresource.HeaderResource

addHeaderSectionFragment

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

hasHeaderSectionFragment

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

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

hasHeaderSectionFragment

protected boolean hasHeaderSectionFragment(String headerFragmentName,
                                           boolean setToTrue)

orderHeaderSection

protected void orderHeaderSection(String headerName)

isHeaderSectionIncluded

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

Specified by:
isHeaderSectionIncluded in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
true if headerName argument is an included header section

getHeaderSectionType

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

Specified by:
getHeaderSectionType in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
type of header section

setHeaderSectionType

public void setHeaderSectionType(String headerName,
                                 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 org.apache.jetspeed.headerresource.HeaderResource

getHeaderSectionRequiredFlag

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

Specified by:
getHeaderSectionRequiredFlag in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
requiredflag for header section

setHeaderSectionRequiredFlag

public void setHeaderSectionRequiredFlag(String headerName,
                                         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 org.apache.jetspeed.headerresource.HeaderResource

getHeaderSectionTypes

protected Map getHeaderSectionTypes(boolean create)

getHeaderSectionNames

protected Map getHeaderSectionNames(boolean create)

getHeaderSectionOrderList

protected List getHeaderSectionOrderList(boolean create)

getHeaderDynamicConfiguration

public Map getHeaderDynamicConfiguration()
Access modifiable header configuration settings

Specified by:
getHeaderDynamicConfiguration in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
Map containing modifiable header configuration settings

getHeaderSections

protected Map getHeaderSections()

getHeaderSectionsAddedFragments

protected Map getHeaderSectionsAddedFragments()

getHeaderResourceRegistry

protected Map getHeaderResourceRegistry()

getRequestContext

protected org.apache.jetspeed.request.RequestContext getRequestContext()

getBaseUrlAccess

protected org.apache.jetspeed.container.url.BasePortalURL getBaseUrlAccess()

isDesktop

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

Specified by:
isDesktop in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
true if request is for /desktop, false if request is for /portal

getHeaderConfiguration

public Map getHeaderConfiguration()
Access complete header configuration settings

Specified by:
getHeaderConfiguration in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
unmodifiable Map containing complete header configuration settings

getNamedResourcesAlreadyOutput

protected HashMap getNamedResourcesAlreadyOutput()

setNamedResourcesAlreadyOutput

protected void setNamedResourcesAlreadyOutput(HashMap newOne)

getPortalBaseUrl

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

Specified by:
getPortalBaseUrl in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
portal base url

getPortalBaseUrl

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

Specified by:
getPortalBaseUrl in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
portal base url

getPortalResourceUrl

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

Specified by:
getPortalResourceUrl in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
portal base url with relativePath argument appended

getPortalResourceUrl

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

Specified by:
getPortalResourceUrl in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
portal base url with relativePath argument appended

getPortalUrl

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

Specified by:
getPortalUrl in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
portal base servlet url

getPortalUrl

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

Specified by:
getPortalUrl in interface org.apache.jetspeed.headerresource.HeaderResource
Returns:
portal base servlet url

getPortalUrl

public String getPortalUrl(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 org.apache.jetspeed.headerresource.HeaderResource
Returns:
portal base servlet url with relativePath argument appended

getPortalUrl

public String getPortalUrl(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 org.apache.jetspeed.headerresource.HeaderResource
Returns:
portal base servlet url with relativePath argument appended

jetspeedGenerateBasetag

protected String jetspeedGenerateBasetag()

dojoAddCoreLibraryRequire

public void dojoAddCoreLibraryRequire(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 org.apache.jetspeed.headerresource.HeaderResource

dojoAddCoreLibraryRequires

public void dojoAddCoreLibraryRequires(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 org.apache.jetspeed.headerresource.HeaderResource

dojoAddModuleLibraryRequire

public void dojoAddModuleLibraryRequire(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 org.apache.jetspeed.headerresource.HeaderResource

dojoAddModuleLibraryRequires

public void dojoAddModuleLibraryRequires(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 org.apache.jetspeed.headerresource.HeaderResource

dojoAddBodyExpandStyle

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

Specified by:
dojoAddBodyExpandStyle in interface org.apache.jetspeed.headerresource.HeaderResource

dojoEnable

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

Specified by:
dojoEnable in interface org.apache.jetspeed.headerresource.HeaderResource

dojoDisable

protected void dojoDisable()

dojoGetPath

protected String dojoGetPath()

dojoAddRequire

protected void dojoAddRequire(String dojoRequire,
                              String addToHeaderName)

dojoAddRequires

protected void dojoAddRequires(String dojoRequires,
                               String addToHeaderName)

dojoGeneratePreinit

protected String dojoGeneratePreinit()

dojoGenerateInit

protected String dojoGenerateInit()

dojoGenerateWriteincludes

protected String dojoGenerateWriteincludes()

dojoGenerateBodyExpandStyle

protected String dojoGenerateBodyExpandStyle()

dojoGenerateBodyExpandNoScrollStyle

protected String dojoGenerateBodyExpandNoScrollStyle()

getHeaderInfoSet

private Set getHeaderInfoSet()
Gets HeaderInfo set from the request.

Returns:
HeaderInfo set containing content for inclusion in html <head>

addHeaderInfo

public void addHeaderInfo(String text)
Specified by:
addHeaderInfo in interface org.apache.jetspeed.headerresource.HeaderResource

addHeaderInfo

public void addHeaderInfo(String elementName,
                          Map attributes,
                          String text)
Specified by:
addHeaderInfo in interface org.apache.jetspeed.headerresource.HeaderResource

containsHeaderInfo

private boolean containsHeaderInfo(HeaderResourceImpl.HeaderInfo headerInfo)
Returns true if this set contains the specified HeaderInfo.

Parameters:
headerInfo -
Returns:

addJavaScript

public void addJavaScript(String path,
                          boolean defer)
Specified by:
addJavaScript in interface org.apache.jetspeed.headerresource.HeaderResource

addJavaScript

public void addJavaScript(String path)
Specified by:
addJavaScript in interface org.apache.jetspeed.headerresource.HeaderResource

addStyleSheet

public void addStyleSheet(String path)
Specified by:
addStyleSheet in interface org.apache.jetspeed.headerresource.HeaderResource


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