All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jamon.html.FormImpl Maven / Gradle / Ivy

There is a newer version: 2.4.1
Show newest version
// 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("
\n"); // 39, 1 if( submit != null ) { // 40, 1 jamonWriter.write(" "); // 40, 3 { org.jamon.html.HiddenInput __jamon__var_0 = new org.jamon.html.HiddenInput(this.getTemplateManager()); __jamon__var_0.renderNoFlush(jamonWriter, submit ); } // 40, 36 jamonWriter.write("\n"); // 41, 1 } // 42, 1 if( hiddenParams != null ) { // 43, 1 Input[] inputs = hiddenParams.getInputs(); // 44, 1 for( int i = 0; i < inputs.length; ++i ) { // 45, 1 jamonWriter.write(" "); // 45, 7 { org.jamon.html.HiddenInput __jamon__var_1 = new org.jamon.html.HiddenInput(this.getTemplateManager()); __jamon__var_1.renderNoFlush(jamonWriter, inputs[i] ); } // 45, 43 jamonWriter.write("\n"); // 46, 1 } // 47, 1 } // 48, 1 jamonWriter.write(" "); // 48, 3 body.renderNoFlush(jamonWriter); // 48, 13 jamonWriter.write("\n
"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy