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

org.jamon.html.Select 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/Select.jamon

package org.jamon.html;


@org.jamon.annotations.Template(
  signature = "1B19C98EC20D50DF32A79DECA79B676A",
  genericsCount = 1,
  requiredArguments = {
    @org.jamon.annotations.Argument(name = "input", type = "org.jamon.render.html.Select")},
  optionalArguments = {
    @org.jamon.annotations.Argument(name = "multiple", type = "boolean")},
  fragmentArguments = {
    @org.jamon.annotations.Fragment(
      name = "renderOption",
      requiredArguments = {
        @org.jamon.annotations.Argument(name = "renderable", type = "Renderable")})})
// 20, 1
@Deprecated @SuppressWarnings("deprecation")
public class Select
  extends org.jamon.AbstractTemplateProxy
{
  
  public Select(org.jamon.TemplateManager p_manager)
  {
     super(p_manager);
  }
  
  protected Select(String p_path)
  {
    super(p_path);
  }
  
  public Select()
  {
     super("/org/jamon/html/Select");
  }
  
  public interface Intf
    extends org.jamon.AbstractTemplateProxy.Intf
  {
    public static interface Fragment_renderOption
    {
      void renderNoFlush(final java.io.Writer jamonWriter, final Renderable renderable)
        throws java.io.IOException;
      org.jamon.Renderer makeRenderer(final Renderable renderable);
    }
    
    
    
    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
    
  }
  public static class ImplData
    extends org.jamon.AbstractTemplateProxy.ImplData
  {
    // 29, 3
    public void setInput(org.jamon.render.html.Select input)
    {
      // 29, 3
      m_input = input;
    }
    public org.jamon.render.html.Select getInput()
    {
      return m_input;
    }
    private org.jamon.render.html.Select m_input;
    // 24, 1
    public void setRenderOption(org.jamon.html.Select.Fragment_renderOption renderOption)
    {
      // 24, 1
      m_renderOption = renderOption;
    }
    public org.jamon.html.Select.Fragment_renderOption getRenderOption()
    {
      return m_renderOption;
    }
    private org.jamon.html.Select.Fragment_renderOption m_renderOption;
    // 30, 3
    public void setMultiple(boolean multiple)
    {
      // 30, 3
      m_multiple = multiple;
      m_multiple__IsNotDefault = true;
    }
    public boolean getMultiple()
    {
      return m_multiple;
    }
    private boolean m_multiple;
    public boolean getMultiple__IsNotDefault()
    {
      return m_multiple__IsNotDefault;
    }
    private boolean m_multiple__IsNotDefault;
  }
  @Override
  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
  {
    return new ImplData();
  }
  @SuppressWarnings("unchecked") @Override public ImplData getImplData()
  {
    return (ImplData) super.getImplData();
  }
  
  protected boolean multiple;
  public final org.jamon.html.Select setMultiple(boolean p_multiple)
  {
    (getImplData()).setMultiple(p_multiple);
    return this;
  }
  public static interface Fragment_renderOption
    extends Intf.Fragment_renderOption
  {
  }
  
  
  
  
  @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 SelectImpl(getTemplateManager(), getImplData());
  }
  public org.jamon.Renderer makeRenderer(final org.jamon.render.html.Select input, final org.jamon.html.Select.Fragment_renderOption renderOption)
  {
    return new org.jamon.AbstractRenderer() {
      @Override
      public void renderTo(final java.io.Writer jamonWriter)
        throws java.io.IOException
      {
        render(jamonWriter, input, renderOption);
      }
    };
  }
  
  public void render(final java.io.Writer jamonWriter, final org.jamon.render.html.Select input, final org.jamon.html.Select.Fragment_renderOption renderOption)
    throws java.io.IOException
  {
    renderNoFlush(jamonWriter, input, renderOption);
    jamonWriter.flush();
  }
  public void renderNoFlush(final java.io.Writer jamonWriter, final org.jamon.render.html.Select input, final org.jamon.html.Select.Fragment_renderOption renderOption)
    throws java.io.IOException
  {
    ImplData implData = getImplData();
    implData.setInput(input);
    implData.setRenderOption(renderOption);
    @SuppressWarnings("unchecked") Intf instance = (Intf) getTemplateManager().constructImpl(this);
    instance.renderNoFlush(jamonWriter);
    reset();
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy