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

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

There is a newer version: 2.4.1
Show newest version
// Autogenerated Jamon proxy
// /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;

@org.jamon.annotations.Template(
  signature = "9AC43C23594AF478AAAB7654611919ED",
  requiredArguments = {
    @org.jamon.annotations.Argument(name = "action", type = "String")},
  optionalArguments = {
    @org.jamon.annotations.Argument(name = "post", type = "boolean"),
    @org.jamon.annotations.Argument(name = "hiddenParams", type = "org.jamon.render.html.CgiParameters"),
    @org.jamon.annotations.Argument(name = "submit", type = "Input"),
    @org.jamon.annotations.Argument(name = "onSubmit", type = "String")},
  fragmentArguments = {
    @org.jamon.annotations.Fragment(
      name = "body")})
// 20, 1
@Deprecated @SuppressWarnings("deprecation")
public class Form
  extends org.jamon.AbstractTemplateProxy
{
  
  public Form(org.jamon.TemplateManager p_manager)
  {
     super(p_manager);
  }
  
  protected Form(String p_path)
  {
    super(p_path);
  }
  
  public Form()
  {
     super("/org/jamon/html/Form");
  }
  
  public interface Intf
    extends org.jamon.AbstractTemplateProxy.Intf
  {
    public static interface Fragment_body
    {
      void renderNoFlush(final java.io.Writer jamonWriter)
        throws java.io.IOException;
      org.jamon.Renderer makeRenderer();
    }
    
    
    
    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
    
  }
  public static class ImplData
    extends org.jamon.AbstractTemplateProxy.ImplData
  {
    // 27, 3
    public void setAction(String action)
    {
      // 27, 3
      m_action = action;
    }
    public String getAction()
    {
      return m_action;
    }
    private String m_action;
    // 24, 1
    public void setBody(org.jamon.html.Form.Fragment_body body)
    {
      // 24, 1
      m_body = body;
    }
    public org.jamon.html.Form.Fragment_body getBody()
    {
      return m_body;
    }
    private org.jamon.html.Form.Fragment_body m_body;
    // 30, 3
    public void setPost(boolean post)
    {
      // 30, 3
      m_post = post;
      m_post__IsNotDefault = true;
    }
    public boolean getPost()
    {
      return m_post;
    }
    private boolean m_post;
    public boolean getPost__IsNotDefault()
    {
      return m_post__IsNotDefault;
    }
    private boolean m_post__IsNotDefault;
    // 29, 3
    public void setHiddenParams(org.jamon.render.html.CgiParameters hiddenParams)
    {
      // 29, 3
      m_hiddenParams = hiddenParams;
      m_hiddenParams__IsNotDefault = true;
    }
    public org.jamon.render.html.CgiParameters getHiddenParams()
    {
      return m_hiddenParams;
    }
    private org.jamon.render.html.CgiParameters m_hiddenParams;
    public boolean getHiddenParams__IsNotDefault()
    {
      return m_hiddenParams__IsNotDefault;
    }
    private boolean m_hiddenParams__IsNotDefault;
    // 28, 3
    public void setSubmit(Input submit)
    {
      // 28, 3
      m_submit = submit;
      m_submit__IsNotDefault = true;
    }
    public Input getSubmit()
    {
      return m_submit;
    }
    private Input m_submit;
    public boolean getSubmit__IsNotDefault()
    {
      return m_submit__IsNotDefault;
    }
    private boolean m_submit__IsNotDefault;
    // 31, 3
    public void setOnSubmit(String onSubmit)
    {
      // 31, 3
      m_onSubmit = onSubmit;
      m_onSubmit__IsNotDefault = true;
    }
    public String getOnSubmit()
    {
      return m_onSubmit;
    }
    private String m_onSubmit;
    public boolean getOnSubmit__IsNotDefault()
    {
      return m_onSubmit__IsNotDefault;
    }
    private boolean m_onSubmit__IsNotDefault;
  }
  @Override
  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
  {
    return new ImplData();
  }
  @Override public ImplData getImplData()
  {
    return (ImplData) super.getImplData();
  }
  
  protected boolean post;
  public final org.jamon.html.Form setPost(boolean p_post)
  {
    (getImplData()).setPost(p_post);
    return this;
  }
  
  protected org.jamon.render.html.CgiParameters hiddenParams;
  public final org.jamon.html.Form setHiddenParams(org.jamon.render.html.CgiParameters p_hiddenParams)
  {
    (getImplData()).setHiddenParams(p_hiddenParams);
    return this;
  }
  
  protected Input submit;
  public final org.jamon.html.Form setSubmit(Input p_submit)
  {
    (getImplData()).setSubmit(p_submit);
    return this;
  }
  
  protected String onSubmit;
  public final org.jamon.html.Form setOnSubmit(String p_onSubmit)
  {
    (getImplData()).setOnSubmit(p_onSubmit);
    return this;
  }
  public static interface Fragment_body
    extends Intf.Fragment_body
  {
  }
  
  
  
  
  @Override
  public org.jamon.AbstractTemplateImpl constructImpl(Class 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 FormImpl(getTemplateManager(), getImplData());
  }
  public org.jamon.Renderer makeRenderer(final String action, final org.jamon.html.Form.Fragment_body body)
  {
    return new org.jamon.AbstractRenderer() {
      @Override
      public void renderTo(final java.io.Writer jamonWriter)
        throws java.io.IOException
      {
        render(jamonWriter, action, body);
      }
    };
  }
  
  public void render(final java.io.Writer jamonWriter, final String action, final org.jamon.html.Form.Fragment_body body)
    throws java.io.IOException
  {
    renderNoFlush(jamonWriter, action, body);
    jamonWriter.flush();
  }
  public void renderNoFlush(final java.io.Writer jamonWriter, final String action, final org.jamon.html.Form.Fragment_body body)
    throws java.io.IOException
  {
    ImplData implData = getImplData();
    implData.setAction(action);
    implData.setBody(body);
    Intf instance = (Intf) getTemplateManager().constructImpl(this);
    instance.renderNoFlush(jamonWriter);
    reset();
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy