org.jamon.html.FormImpl Maven / Gradle / Ivy
// Autogenerated Jamon implementation
// /home/ian/svn/jamon/jamon/jamon-stdlib/target/checkout/src/main/templates/org/jamon/html/Form.jamon
package org.jamon.html;
// 22, 3
import org.jamon.render.html.Input;
// 20, 1
@Deprecated @SuppressWarnings("deprecation")
public class FormImpl
extends org.jamon.AbstractTemplateImpl
implements org.jamon.html.Form.Intf
{
private final String action;
private final org.jamon.html.Form.Fragment_body body;
private final boolean post;
private final org.jamon.render.html.CgiParameters hiddenParams;
private final Input submit;
private final String onSubmit;
protected static org.jamon.html.Form.ImplData __jamon_setOptionalArguments(org.jamon.html.Form.ImplData p_implData)
{
if(! p_implData.getPost__IsNotDefault())
{
p_implData.setPost(false);
}
if(! p_implData.getHiddenParams__IsNotDefault())
{
p_implData.setHiddenParams(null);
}
if(! p_implData.getSubmit__IsNotDefault())
{
p_implData.setSubmit(null);
}
if(! p_implData.getOnSubmit__IsNotDefault())
{
p_implData.setOnSubmit(null);
}
return p_implData;
}
public FormImpl(org.jamon.TemplateManager p_templateManager, org.jamon.html.Form.ImplData p_implData)
{
super(p_templateManager, __jamon_setOptionalArguments(p_implData));
action = p_implData.getAction();
body = p_implData.getBody();
post = p_implData.getPost();
hiddenParams = p_implData.getHiddenParams();
submit = p_implData.getSubmit();
onSubmit = p_implData.getOnSubmit();
}
@Override public void renderNoFlush(final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 32, 9
jamonWriter.write("");
}
}