com.google.sitebricks.rendering.control
Class DecorateWidget

java.lang.Object
  extended by com.google.sitebricks.rendering.control.DecorateWidget
All Implemented Interfaces:
Renderable

public class DecorateWidget
extends Object
implements Renderable

Author:
John Patterson (jdpatterson@gmail.com)

Constructor Summary
DecorateWidget(WidgetChain chain, String expression, Evaluator evaluator)
           
 
Method Summary
<T extends Renderable>
Set<T>
collect(Class<T> clazz)
           
static String embedNameFor(Class<?> pageClass)
           
 void render(Object bound, Respond respond)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecorateWidget

public DecorateWidget(WidgetChain chain,
                      String expression,
                      Evaluator evaluator)
Method Detail

embedNameFor

public static String embedNameFor(Class<?> pageClass)

render

public void render(Object bound,
                   Respond respond)
Specified by:
render in interface Renderable

collect

public <T extends Renderable> Set<T> collect(Class<T> clazz)
Specified by:
collect in interface Renderable
Parameters:
clazz - A class to match.
Returns:
Returns a set of children matching the class, searching down to the leaves of the tree.


Copyright © 2014. All rights reserved.