|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectorg.apache.tiles.context.BasicComponentContext
public class BasicComponentContext
Component context.
| Constructor Summary | |
|---|---|
BasicComponentContext()
Constructor. |
|
BasicComponentContext(org.apache.tiles.ComponentContext context)
|
|
BasicComponentContext(java.util.Map<java.lang.String,org.apache.tiles.ComponentAttribute> attributes)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addAll(java.util.Map<java.lang.String,org.apache.tiles.ComponentAttribute> newAttributes)
Add all attributes to this context. |
void |
addMissing(java.util.Map<java.lang.String,org.apache.tiles.ComponentAttribute> defaultAttributes)
Add all missing attributes to this context. |
void |
clear()
|
org.apache.tiles.ComponentAttribute |
findAttribute(java.lang.String beanName,
javax.servlet.jsp.PageContext pageContext)
Find object in one of the contexts. |
org.apache.tiles.ComponentAttribute |
getAttribute(java.lang.String name)
Get an attribute from context. |
org.apache.tiles.ComponentAttribute |
getAttribute(java.lang.String beanName,
int scope,
javax.servlet.jsp.PageContext pageContext)
Get object from requested context. |
java.util.Iterator<java.lang.String> |
getAttributeNames()
Get names of all attributes. |
static org.apache.tiles.ComponentContext |
getContext(TilesRequestContext tilesContext)
Get component context from request. |
static java.util.Stack<org.apache.tiles.ComponentContext> |
getContextStack(TilesRequestContext tilesContext)
Returns the context stack. |
static org.apache.tiles.ComponentContext |
popContext(TilesRequestContext tilesContext)
Pops a context object out of the stack |
static void |
pushContext(org.apache.tiles.ComponentContext context,
TilesRequestContext tilesContext)
Pushes a context object in the stack. |
void |
putAttribute(java.lang.String name,
org.apache.tiles.ComponentAttribute value)
Put a new attribute to context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicComponentContext()
public BasicComponentContext(java.util.Map<java.lang.String,org.apache.tiles.ComponentAttribute> attributes)
attributes - Attributes to initialize context.public BasicComponentContext(org.apache.tiles.ComponentContext context)
| Method Detail |
|---|
public void addAll(java.util.Map<java.lang.String,org.apache.tiles.ComponentAttribute> newAttributes)
addAll in interface org.apache.tiles.ComponentContextnewAttributes - Attributes to add.public void addMissing(java.util.Map<java.lang.String,org.apache.tiles.ComponentAttribute> defaultAttributes)
addMissing in interface org.apache.tiles.ComponentContextdefaultAttributes - Attributes to add.public org.apache.tiles.ComponentAttribute getAttribute(java.lang.String name)
getAttribute in interface org.apache.tiles.ComponentContextname - Name of the attribute.
public java.util.Iterator<java.lang.String> getAttributeNames()
getAttributeNames in interface org.apache.tiles.ComponentContext
public void putAttribute(java.lang.String name,
org.apache.tiles.ComponentAttribute value)
putAttribute in interface org.apache.tiles.ComponentContextname - Name of the attribute.value - Value of the attribute.
public org.apache.tiles.ComponentAttribute findAttribute(java.lang.String beanName,
javax.servlet.jsp.PageContext pageContext)
findAttribute in interface org.apache.tiles.ComponentContextbeanName - Name of the bean to find.pageContext - Page context.
null if not found.
public org.apache.tiles.ComponentAttribute getAttribute(java.lang.String beanName,
int scope,
javax.servlet.jsp.PageContext pageContext)
getAttribute in interface org.apache.tiles.ComponentContextbeanName - Name of the bean to find.scope - Search scope (see PageContext).pageContext - Page context.
null if not found.public static org.apache.tiles.ComponentContext getContext(TilesRequestContext tilesContext)
tilesContext - current Tiles application context.
public static java.util.Stack<org.apache.tiles.ComponentContext> getContextStack(TilesRequestContext tilesContext)
tilesContext - The Tiles context object to use.
public static void pushContext(org.apache.tiles.ComponentContext context,
TilesRequestContext tilesContext)
context - The context to push.tilesContext - The Tiles context object to use.public static org.apache.tiles.ComponentContext popContext(TilesRequestContext tilesContext)
tilesContext - The Tiles context object to use.
public void clear()
clear in interface org.apache.tiles.ComponentContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||