com.ideo.sweetdevria.context
Class RIAContext

java.lang.Object
  extended by com.ideo.sweetdevria.context.RIAContext

public class RIAContext
extends java.lang.Object


Field Summary
protected  java.util.Map attributes
          Tag attributes.
static java.lang.String CTX_ESCAPE_TOOL
          Key used to store velocity escape tools.
static java.lang.String MESSAGE_KEYS
          Message keys map attribute name in BaseTagSupport
static java.lang.String PAGE_CONTEXT_KEY
          Key used to store page context.
protected  java.util.Map resources
          Ressources map.
 
Constructor Summary
RIAContext()
          Init attributes map and get resources.
 
Method Summary
 java.util.Map getDrawerContextParams()
          return the parameters used by to define the informational context in which the rendering of the componenent will take place.
 java.util.Map getResources()
          Supply the resources defined in the configuration to the context.
 java.util.Map getTools()
          Supply tools.
 void initResourcesPaths(javax.servlet.jsp.PageContext pageContext)
          Init resources paths (JavaScript, CSS, images and JSP).
 void put(java.lang.String key, java.lang.Object value)
          Add a value to utilities.
 void putAll(java.util.Map map)
          Add a map to utilities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CTX_ESCAPE_TOOL

public static final java.lang.String CTX_ESCAPE_TOOL
Key used to store velocity escape tools.

See Also:
Constant Field Values

PAGE_CONTEXT_KEY

public static final java.lang.String PAGE_CONTEXT_KEY
Key used to store page context.

See Also:
Constant Field Values

MESSAGE_KEYS

public static final java.lang.String MESSAGE_KEYS
Message keys map attribute name in BaseTagSupport

See Also:
Constant Field Values

attributes

protected java.util.Map attributes
Tag attributes.


resources

protected java.util.Map resources
Ressources map.

Constructor Detail

RIAContext

public RIAContext()
Init attributes map and get resources.

Method Detail

getResources

public java.util.Map getResources()
Supply the resources defined in the configuration to the context.

Returns:
Map containing resources used by Velocity.

initResourcesPaths

public void initResourcesPaths(javax.servlet.jsp.PageContext pageContext)
Init resources paths (JavaScript, CSS, images and JSP).

Parameters:
pageContext - Page context used to get base context path.

getTools

public java.util.Map getTools()
Supply tools.

Returns:
tools.

putAll

public void putAll(java.util.Map map)
Add a map to utilities.

Parameters:
map -

put

public void put(java.lang.String key,
                java.lang.Object value)
Add a value to utilities.

Parameters:
key -
value -

getDrawerContextParams

public java.util.Map getDrawerContextParams()
return the parameters used by to define the informational context in which the rendering of the componenent will take place.

Returns:
map


Copyright © 2010 Ideo Technologies. All Rights Reserved.