org.jamon.html.RadioButton Maven / Gradle / Ivy
// Autogenerated Jamon proxy
// /home/ian/svn/jamon/jamon/jamon-stdlib/target/checkout/src/main/templates/org/jamon/html/RadioButton.jamon
package org.jamon.html;
@org.jamon.annotations.Template(
signature = "B87B6E6A5640184E3AD4C8FBD324D90C",
inheritanceDepth = 1,
requiredArguments = {
@org.jamon.annotations.Argument(name = "input", type = "org.jamon.render.html.SelectableInput")},
optionalArguments = {
@org.jamon.annotations.Argument(name = "onClick", type = "String"),
@org.jamon.annotations.Argument(name = "style", type = "String"),
@org.jamon.annotations.Argument(name = "selected", type = "Boolean"),
@org.jamon.annotations.Argument(name = "cssClass", type = "String")},
methods = {
@org.jamon.annotations.Method(
name = "type")})
// 20, 1
@Deprecated
public class RadioButton
extends org.jamon.html._Selectable
{
public RadioButton(org.jamon.TemplateManager p_manager)
{
super(p_manager);
}
protected RadioButton(String p_path)
{
super(p_path);
}
public RadioButton()
{
super("/org/jamon/html/RadioButton");
}
public interface Intf
extends org.jamon.html._Selectable.Intf
{
void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
}
public static class ImplData
extends org.jamon.html._Selectable.ImplData
{
}
@Override
protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
{
return new ImplData();
}
@Override public ImplData getImplData()
{
return (ImplData) super.getImplData();
}
@Override
public org.jamon.AbstractTemplateImpl constructImpl(Class extends org.jamon.AbstractTemplateImpl> p_class){
try
{
return p_class
.getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
.newInstance(new Object [] { getTemplateManager(), getImplData()});
}
catch (RuntimeException e)
{
throw e;
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
@Override
protected org.jamon.AbstractTemplateImpl constructImpl(){
return new RadioButtonImpl(getTemplateManager(), getImplData());
}
public org.jamon.Renderer makeRenderer(final org.jamon.render.html.SelectableInput input)
{
return new org.jamon.AbstractRenderer() {
@Override
public void renderTo(final java.io.Writer jamonWriter)
throws java.io.IOException
{
render(jamonWriter, input);
}
};
}
public void render(final java.io.Writer jamonWriter, final org.jamon.render.html.SelectableInput input)
throws java.io.IOException
{
renderNoFlush(jamonWriter, input);
jamonWriter.flush();
}
public void renderNoFlush(final java.io.Writer jamonWriter, final org.jamon.render.html.SelectableInput input)
throws java.io.IOException
{
ImplData implData = getImplData();
implData.setInput(input);
Intf instance = (Intf) getTemplateManager().constructImpl(this);
instance.renderNoFlush(jamonWriter);
reset();
}
public org.jamon.html._Selectable.ParentRenderer makeParentRenderer()
{
return new org.jamon.html._Selectable.ParentRenderer() {
@Override protected void renderChild(final java.io.Writer jamonWriter, final org.jamon.render.html.SelectableInput input)
throws java.io.IOException
{
RadioButton.this.renderNoFlush(jamonWriter, input);
}
};
}
}