com.day.cq.theme.impl
Class PlainTheme

java.lang.Object
  extended by com.day.cq.theme.impl.PlainTheme
All Implemented Interfaces:
Theme

public class PlainTheme
extends Object
implements Theme

Theme that is based on a streamable resource.


Field Summary
 
Fields inherited from interface com.day.cq.theme.Theme
REQUEST_ATTR
 
Constructor Summary
protected PlainTheme(org.apache.sling.api.resource.Resource res)
          Creates a plain theme based on the given resource.
 
Method Summary
 String getCss()
          Returns the URL to the CSS to use on the result or null if no CSS should be loaded.
 String getPath()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTheme

protected PlainTheme(org.apache.sling.api.resource.Resource res)
Creates a plain theme based on the given resource. Note: Currently no check is performed if the given resource is streamable.

Parameters:
res - resource
Method Detail

getPath

public String getPath()

Specified by:
getPath in interface Theme

getCss

public String getCss()
Returns the URL to the CSS to use on the result or null if no CSS should be loaded.

Specified by:
getCss in interface Theme


Copyright © 2008 Day Management AG. All Rights Reserved.