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

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

There is a newer version: 2.4.1
Show newest version
// Autogenerated Jamon proxy
// /Users/jay/jamon/jamon-stdlib/src/main/templates/org/jamon/html/TextInput.jamon

package org.jamon.html;


@org.jamon.annotations.Template(
  signature = "5127F53516D94184000545275A527EAC",
  requiredArguments = {
    @org.jamon.annotations.Argument(name = "input", type = "org.jamon.render.html.TextInput")},
  optionalArguments = {
    @org.jamon.annotations.Argument(name = "size", type = "int"),
    @org.jamon.annotations.Argument(name = "type", type = "String")})
// 20, 1
@Deprecated @SuppressWarnings("deprecation")
public class TextInput
  extends org.jamon.AbstractTemplateProxy
{
  
  public TextInput(org.jamon.TemplateManager p_manager)
  {
     super(p_manager);
  }
  
  public TextInput()
  {
     super("/org/jamon/html/TextInput");
  }
  
  protected interface Intf
    extends org.jamon.AbstractTemplateProxy.Intf{
    
    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
    
  }
  public static class ImplData
    extends org.jamon.AbstractTemplateProxy.ImplData
  {
    // 23, 3
    public void setInput(org.jamon.render.html.TextInput input)
    {
      // 23, 3
      m_input = input;
    }
    public org.jamon.render.html.TextInput getInput()
    {
      return m_input;
    }
    private org.jamon.render.html.TextInput m_input;
    // 25, 3
    public void setSize(int size)
    {
      // 25, 3
      m_size = size;
      m_size__IsNotDefault = true;
    }
    public int getSize()
    {
      return m_size;
    }
    private int m_size;
    public boolean getSize__IsNotDefault()
    {
      return m_size__IsNotDefault;
    }
    private boolean m_size__IsNotDefault;
    // 24, 3
    public void setType(String type)
    {
      // 24, 3
      m_type = type;
      m_type__IsNotDefault = true;
    }
    public String getType()
    {
      return m_type;
    }
    private String m_type;
    public boolean getType__IsNotDefault()
    {
      return m_type__IsNotDefault;
    }
    private boolean m_type__IsNotDefault;
  }
  @Override
  protected ImplData makeImplData()
  {
    return new ImplData();
  }
  @Override @SuppressWarnings("unchecked") public ImplData getImplData()
  {
    return (ImplData) super.getImplData();
  }
  
  protected int size;
  public final org.jamon.html.TextInput setSize(int p_size)
  {
    (getImplData()).setSize(p_size);
    return this;
  }
  
  protected String type;
  public final org.jamon.html.TextInput setType(String p_type)
  {
    (getImplData()).setType(p_type);
    return this;
  }
  
  
  @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 TextInputImpl(getTemplateManager(), getImplData());
  }
  public org.jamon.Renderer makeRenderer(final org.jamon.render.html.TextInput 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.TextInput input)
    throws java.io.IOException
  {
    renderNoFlush(jamonWriter, input);
    jamonWriter.flush();
  }
  public void renderNoFlush(final java.io.Writer jamonWriter, final org.jamon.render.html.TextInput input)
    throws java.io.IOException
  {
    ImplData implData = getImplData();
    implData.setInput(input);
    Intf instance = (Intf) getTemplateManager().constructImpl(this);
    instance.renderNoFlush(jamonWriter);
    reset();
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy