net.sourceforge.stripes.tag.layout
Class LayoutContext

java.lang.Object
  extended by net.sourceforge.stripes.tag.layout.LayoutContext

public class LayoutContext
extends Object

Used to move contextual information about a layout rendering between a LayoutRenderTag and a LayoutDefinitionTag. Holds the set of overridden components and any parameters provided to the render tag.

Since:
Stripes 1.1
Author:
Tim Fennell

Constructor Summary
LayoutContext()
           
 
Method Summary
 Map<String,String> getComponents()
          Gets the Map of overridden components.
 Map<String,Object> getParameters()
          Gets the Map of parameters.
 boolean isRendered()
          Returns true if the layout has been rendered, false otherwise.
 void setRendered(boolean rendered)
          False initially, should be set to true when the layout is actually rendered.
 String toString()
          To String implementation the parameters, and the component names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayoutContext

public LayoutContext()
Method Detail

getComponents

public Map<String,String> getComponents()
Gets the Map of overridden components. Will return an empty Map if no components were overridden.


getParameters

public Map<String,Object> getParameters()
Gets the Map of parameters. Will return an empty Map if none were provided.


isRendered

public boolean isRendered()
Returns true if the layout has been rendered, false otherwise.


setRendered

public void setRendered(boolean rendered)
False initially, should be set to true when the layout is actually rendered.


toString

public String toString()
To String implementation the parameters, and the component names.

Overrides:
toString in class Object


? Copyright 2005-2006, Stripes Development Team.