Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.google.sitebricks.rendering.control;
 
 
 import java.util.Set;

Author(s):
Dhanji R. Prasanna (dhanji@gmail.com)
class SingletonWidgetChain implements WidgetChain {
    private final Renderable widget;
    public SingletonWidgetChain(Renderable widget) {
        this. = widget;
    }
    public void render(Object boundRespond respond) {
        .render(boundrespond);
    }
    public WidgetChain addWidget(Renderable renderable) {
        throw new IllegalStateException("Cannot add children to singleton widget chain");
    }
    public synchronized <T extends RenderableSet<T> collect(Class<T> clazz) {
        return .collect(clazz);
    }
New to GrepCode? Check out our FAQ X