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

java.lang.Objectorg.apache.tiles.context.BasicAttributeContext
public class BasicAttributeContext
Basic implementation for AttributeContext.
| Constructor Summary | |
|---|---|
BasicAttributeContext()
Constructor. |
|
BasicAttributeContext(AttributeContext context)
Copy constructor. |
|
BasicAttributeContext(java.util.Map<java.lang.String,Attribute> attributes)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addAll(java.util.Map<java.lang.String,Attribute> newAttributes)
Add all attributes to this context. |
void |
addMissing(java.util.Map<java.lang.String,Attribute> defaultAttributes)
Add all missing attributes to this context. |
void |
clear()
Clear the attributes |
Attribute |
getAttribute(java.lang.String name)
Get an attribute from context. |
java.util.Iterator<java.lang.String> |
getAttributeNames()
Get names of all attributes. |
static AttributeContext |
getContext(TilesRequestContext tilesContext)
Get attribute context from request. |
static java.util.Stack<AttributeContext> |
getContextStack(TilesRequestContext tilesContext)
Returns the context stack. |
static AttributeContext |
popContext(TilesRequestContext tilesContext)
Pops a context object out of the stack |
static void |
pushContext(AttributeContext context,
TilesRequestContext tilesContext)
Pushes a context object in the stack. |
void |
putAttribute(java.lang.String name,
Attribute 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 BasicAttributeContext()
public BasicAttributeContext(java.util.Map<java.lang.String,Attribute> attributes)
attributes - Attributes to initialize context.public BasicAttributeContext(AttributeContext context)
context - The constructor to copy.| Method Detail |
|---|
public void addAll(java.util.Map<java.lang.String,Attribute> newAttributes)
addAll in interface AttributeContextnewAttributes - Attributes to add.public void addMissing(java.util.Map<java.lang.String,Attribute> defaultAttributes)
addMissing in interface AttributeContextdefaultAttributes - Attributes to add.public Attribute getAttribute(java.lang.String name)
getAttribute in interface AttributeContextname - Name of the attribute.
public java.util.Iterator<java.lang.String> getAttributeNames()
getAttributeNames in interface AttributeContext
public void putAttribute(java.lang.String name,
Attribute value)
putAttribute in interface AttributeContextname - Name of the attribute.value - Value of the attribute.public static AttributeContext getContext(TilesRequestContext tilesContext)
tilesContext - current Tiles application context.
public static java.util.Stack<AttributeContext> getContextStack(TilesRequestContext tilesContext)
tilesContext - The Tiles context object to use.
public static void pushContext(AttributeContext context,
TilesRequestContext tilesContext)
context - The context to push.tilesContext - The Tiles context object to use.public static AttributeContext popContext(TilesRequestContext tilesContext)
tilesContext - The Tiles context object to use.
public void clear()
clear in interface AttributeContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||