com.sun.rave.web.ui.util
Class VariableResolver.ThemeJavaScriptDataSource

java.lang.Object
  extended by com.sun.rave.web.ui.util.VariableResolver.ThemeJavaScriptDataSource
All Implemented Interfaces:
VariableResolver.DataSource
Enclosing class:
VariableResolver

public static class VariableResolver.ThemeJavaScriptDataSource
extends java.lang.Object
implements VariableResolver.DataSource

This VariableResolver.DataSource retrieves the path to a JavaScript file from the Theme. The data portion of the substitution String is the Theme key for the JavaScript file.


Constructor Summary
VariableResolver.ThemeJavaScriptDataSource()
           
 
Method Summary
 java.lang.Object getValue(javax.faces.context.FacesContext ctx, LayoutElement desc, javax.faces.component.UIComponent component, java.lang.String key)
           See class JavaDoc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableResolver.ThemeJavaScriptDataSource

public VariableResolver.ThemeJavaScriptDataSource()
Method Detail

getValue

public java.lang.Object getValue(javax.faces.context.FacesContext ctx,
                                 LayoutElement desc,
                                 javax.faces.component.UIComponent component,
                                 java.lang.String key)

See class JavaDoc.

Specified by:
getValue in interface VariableResolver.DataSource
Parameters:
ctx - The FacesContext
desc - The LayoutElement
component - The UIComponent
key - The key used to obtain information from this DataSource.
Returns:
The value resolved from key.