com.jsftoolkit.base.renderer.RendererCallbackAdaptor Maven / Gradle / Ivy
Go to download
The core classes for the JSF Toolkit Component Framework. Includes all
framework base and utility classes as well as component
kick-start/code-generation and registration tools.
Also includes some classes for testing that are reused in other projects.
They cannot be factored out into a separate project because they are
referenced by the tests and they reference this code (circular
dependence).
The newest version!
package com.jsftoolkit.base.renderer;
import java.io.IOException;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.render.Renderer;
/**
* {@link RenderCallback} that delegates to a {@link Renderer}.
*
* @author noah
*
*/
public class RendererCallbackAdaptor implements RenderCallback {
private final Renderer renderer;
public RendererCallbackAdaptor(final Renderer renderer) {
super();
this.renderer = renderer;
}
public void encodeBegin(FacesContext context, UIComponent component)
throws IOException {
renderer.encodeBegin(context, component);
}
public void encodeChildren(FacesContext context, UIComponent component)
throws IOException {
renderer.encodeChildren(context, component);
}
public void encodeEnd(FacesContext context, UIComponent component)
throws IOException {
renderer.encodeEnd(context, component);
}
public void decode(FacesContext context, UIComponent component) {
renderer.decode(context, component);
}
}