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

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

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

This class provides an implementation for the syntax $this{xyz} where xyz can be any of the following.


Field Summary
static java.lang.String CLIENT_ID
           Defines "clientId" in $this{clientId}.
static java.lang.String COMPONENT
           Defines "component" in $this{component}.
static java.lang.String ID
           Defines "id" in $this{id}.
static java.lang.String LAYOUT_ELEMENT
           Defines "layoutElement" in $this{layoutElement}.
static java.lang.String NAMING_CONTAINER
           Defines "namingContainer" in $this{namingContainer}.
static java.lang.String PARENT
           Defines "parent" in $this{parent}.
static java.lang.String PARENT_CLIENT_ID
           Defines "parentClientId" in $this{parentClientId}.
static java.lang.String PARENT_ID
           Defines "parentId" in $this{parentId}.
static java.lang.String PARENT_LAYOUT_ELEMENT
           Defines "parentLayoutElement" in $this{parentLayoutElement}.
static java.lang.String VALUE_BINDING
           Defines "valueBinding" in $this{valueBinding}.
 
Constructor Summary
VariableResolver.ThisDataSource()
           
 
Method Summary
 java.lang.Object getValue(javax.faces.context.FacesContext ctx, LayoutElement desc, javax.faces.component.UIComponent comp, 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
 

Field Detail

COMPONENT

public static final java.lang.String COMPONENT

Defines "component" in $this{component}. Returns the UIComponent object.

See Also:
Constant Field Values

CLIENT_ID

public static final java.lang.String CLIENT_ID

Defines "clientId" in $this{clientId}. Returns the String representing the client id for the UIComponent.

See Also:
Constant Field Values

ID

public static final java.lang.String ID

Defines "id" in $this{id}. Returns the String representing the id for the UIComponent.

See Also:
Constant Field Values

LAYOUT_ELEMENT

public static final java.lang.String LAYOUT_ELEMENT

Defines "layoutElement" in $this{layoutElement}. Returns the LayoutElement.

See Also:
Constant Field Values

PARENT

public static final java.lang.String PARENT

Defines "parent" in $this{parent}. Returns the parent UIComponent object.

See Also:
Constant Field Values

PARENT_ID

public static final java.lang.String PARENT_ID

Defines "parentId" in $this{parentId}. Returns the parent UIComponent object's Id.

See Also:
Constant Field Values

PARENT_CLIENT_ID

public static final java.lang.String PARENT_CLIENT_ID

Defines "parentClientId" in $this{parentClientId}. Returns the parent UIComponent object's client Id.

See Also:
Constant Field Values

PARENT_LAYOUT_ELEMENT

public static final java.lang.String PARENT_LAYOUT_ELEMENT

Defines "parentLayoutElement" in $this{parentLayoutElement}. Returns the parent LayoutElement.

See Also:
Constant Field Values

NAMING_CONTAINER

public static final java.lang.String NAMING_CONTAINER

Defines "namingContainer" in $this{namingContainer}. Returns the nearest naming container object (i.e. the form).

See Also:
Constant Field Values

VALUE_BINDING

public static final java.lang.String VALUE_BINDING

Defines "valueBinding" in $this{valueBinding}. Returns a ValueBinding to this UIComponent.

See Also:
Constant Field Values
Constructor Detail

VariableResolver.ThisDataSource

public VariableResolver.ThisDataSource()
Method Detail

getValue

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

See class JavaDoc.

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