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