org.olat.core.gui.components.htmlheader.jscss
Class CustomCSS

java.lang.Object
  extended by org.olat.core.gui.components.htmlheader.jscss.CustomCSS
All Implemented Interfaces:
Disposable

public class CustomCSS
extends java.lang.Object
implements Disposable

Description:
The custom CSS object is a container to hold everything the system needs to know about a custom CSS: the mapper and the css URL
This object is used by dynamic tabs or sites to define a custom CSS that should only be loaded when this tab or site is shown.

Initial Date: 25.03.2009

Author:
gnaegi

Constructor Summary
CustomCSS(VFSContainer cssBaseContainer, java.lang.String relCssFilename, UserSession uSess)
          Constructor
 
Method Summary
 void dispose()
          disposes the disposable
 java.lang.String getCSSURL()
          Get the CSS URL to manually embedd the CSS (e.g.
 JSAndCSSComponent getJSAndCSSComponent()
          Get the js and css component that embedds the CSS file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCSS

public CustomCSS(VFSContainer cssBaseContainer,
                 java.lang.String relCssFilename,
                 UserSession uSess)
Constructor

Parameters:
cssBaseContainer - The base container where the CSS files and the resources are located
relCssFilename - The css file relative to the base container
uSess - The user session (needed to register the mapper)
Method Detail

getJSAndCSSComponent

public JSAndCSSComponent getJSAndCSSComponent()
Get the js and css component that embedds the CSS file

Returns:

getCSSURL

public java.lang.String getCSSURL()
Get the CSS URL to manually embedd the CSS (e.g. in an iframe)

Returns:

dispose

public void dispose()
Description copied from interface: Disposable
disposes the disposable

Specified by:
dispose in interface Disposable
See Also:
Disposable.dispose()