|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.tiles.ComponentContext
public class ComponentContext
Component context.
| Constructor Summary | |
|---|---|
ComponentContext()
Constructor. |
|
ComponentContext(Map attributes)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addAll(Map newAttributes)
Add all attributes to this context. |
void |
addMissing(Map defaultAttributes)
Add all missing attributes to this context. |
Object |
findAttribute(String beanName,
PageContext pageContext)
Find object in one of the contexts. |
Object |
getAttribute(String name)
Get an attribute from context. |
Object |
getAttribute(String beanName,
int scope,
PageContext pageContext)
Get object from requested context. |
Iterator |
getAttributeNames()
Get names of all attributes. |
static ComponentContext |
getContext(ServletRequest request)
Get component context from request. |
void |
putAttribute(String name,
Object value)
Put a new attribute to context. |
static void |
setContext(ComponentContext context,
ServletRequest request)
Store component context into request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentContext()
public ComponentContext(Map attributes)
attributes - Attributes to initialize context.| Method Detail |
|---|
public void addAll(Map newAttributes)
newAttributes - Attributes to add.public void addMissing(Map defaultAttributes)
defaultAttributes - Attributes to add.public Object getAttribute(String name)
name - Name of the attribute.
public Iterator getAttributeNames()
public void putAttribute(String name,
Object value)
name - Name of the attribute.value - Value of the attribute.
public Object findAttribute(String beanName,
PageContext pageContext)
beanName - Name of the bean to find.pageContext - Page context.
null if not found.
public Object getAttribute(String beanName,
int scope,
PageContext pageContext)
beanName - Name of the bean to find.scope - Search scope (see PageContext).pageContext - Page context.
null if not found.public static ComponentContext getContext(ServletRequest request)
request - ServletRequest.
public static void setContext(ComponentContext context,
ServletRequest request)
context - ComponentContext to store.request - Request to store ComponentContext.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||