package com.cloudera.server.web.cmf.include;

import com.cloudera.cmf.service.ServiceHandler;
import java.io.IOException;
import java.io.Writer;
import java.lang.reflect.Constructor;
import org.jamon.AbstractRenderer;
import org.jamon.AbstractTemplateImpl;
import org.jamon.AbstractTemplateProxy;
import org.jamon.AbstractTemplateProxy.ImplData;
import org.jamon.AbstractTemplateProxy.Intf;
import org.jamon.Renderer;
import org.jamon.TemplateManager;
import org.jamon.annotations.Template;

@Template(signature="51A053A3E0DE2C57405DFBA9EFAE6E94", optionalArguments={@org.jamon.annotations.Argument(name="showCommissionState", type="boolean"), @org.jamon.annotations.Argument(name="showRoleState", type="boolean"), @org.jamon.annotations.Argument(name="checkboxes", type="boolean"), @org.jamon.annotations.Argument(name="showRacks", type="boolean"), @org.jamon.annotations.Argument(name="showDisplayStatus", type="boolean"), @org.jamon.annotations.Argument(name="classes", type="String"), @org.jamon.annotations.Argument(name="showMM", type="boolean"), @org.jamon.annotations.Argument(name="showHealth", type="boolean"), @org.jamon.annotations.Argument(name="serviceHandler", type="ServiceHandler")})
public class InstancesTableFilterRow extends AbstractTemplateProxy
{
  protected boolean showCommissionState;
  protected boolean showRoleState;
  protected boolean checkboxes;
  protected boolean showRacks;
  protected boolean showDisplayStatus;
  protected String classes;
  protected boolean showMM;
  protected boolean showHealth;
  protected ServiceHandler serviceHandler;

  public InstancesTableFilterRow(TemplateManager p_manager)
  {
    super(p_manager);
  }

  protected InstancesTableFilterRow(String p_path)
  {
    super(p_path);
  }

  public InstancesTableFilterRow()
  {
    super("/com/cloudera/server/web/cmf/include/InstancesTableFilterRow");
  }

  protected AbstractTemplateProxy.ImplData makeImplData()
  {
    return new ImplData();
  }

  public ImplData getImplData() {
    return (ImplData)super.getImplData();
  }

  public final InstancesTableFilterRow setShowCommissionState(boolean p_showCommissionState)
  {
    getImplData().setShowCommissionState(p_showCommissionState);
    return this;
  }

  public final InstancesTableFilterRow setShowRoleState(boolean p_showRoleState)
  {
    getImplData().setShowRoleState(p_showRoleState);
    return this;
  }

  public final InstancesTableFilterRow setCheckboxes(boolean p_checkboxes)
  {
    getImplData().setCheckboxes(p_checkboxes);
    return this;
  }

  public final InstancesTableFilterRow setShowRacks(boolean p_showRacks)
  {
    getImplData().setShowRacks(p_showRacks);
    return this;
  }

  public final InstancesTableFilterRow setShowDisplayStatus(boolean p_showDisplayStatus)
  {
    getImplData().setShowDisplayStatus(p_showDisplayStatus);
    return this;
  }

  public final InstancesTableFilterRow setClasses(String p_classes)
  {
    getImplData().setClasses(p_classes);
    return this;
  }

  public final InstancesTableFilterRow setShowMM(boolean p_showMM)
  {
    getImplData().setShowMM(p_showMM);
    return this;
  }

  public final InstancesTableFilterRow setShowHealth(boolean p_showHealth)
  {
    getImplData().setShowHealth(p_showHealth);
    return this;
  }

  public final InstancesTableFilterRow setServiceHandler(ServiceHandler p_serviceHandler)
  {
    getImplData().setServiceHandler(p_serviceHandler);
    return this;
  }

  public AbstractTemplateImpl constructImpl(Class<? extends AbstractTemplateImpl> p_class)
  {
    try
    {
      return (AbstractTemplateImpl)p_class.getConstructor(new Class[] { TemplateManager.class, ImplData.class }).newInstance(new Object[] { getTemplateManager(), getImplData() });
    }
    catch (RuntimeException e)
    {
      throw e;
    }
    catch (Exception e) {
    }
    throw new RuntimeException(e);
  }

  protected AbstractTemplateImpl constructImpl()
  {
    return new InstancesTableFilterRowImpl(getTemplateManager(), getImplData());
  }

  public Renderer makeRenderer() {
    return new AbstractRenderer()
    {
      public void renderTo(Writer jamonWriter)
        throws IOException
      {
        InstancesTableFilterRow.this.render(jamonWriter);
      }
    };
  }

  public void render(Writer jamonWriter) throws IOException
  {
    renderNoFlush(jamonWriter);
    jamonWriter.flush();
  }

  public void renderNoFlush(Writer jamonWriter) throws IOException
  {
    Intf instance = (Intf)getTemplateManager().constructImpl(this);
    instance.renderNoFlush(jamonWriter);
    reset();
  }

  public static class ImplData extends AbstractTemplateProxy.ImplData
  {
    private boolean m_showCommissionState;
    private boolean m_showCommissionState__IsNotDefault;
    private boolean m_showRoleState;
    private boolean m_showRoleState__IsNotDefault;
    private boolean m_checkboxes;
    private boolean m_checkboxes__IsNotDefault;
    private boolean m_showRacks;
    private boolean m_showRacks__IsNotDefault;
    private boolean m_showDisplayStatus;
    private boolean m_showDisplayStatus__IsNotDefault;
    private String m_classes;
    private boolean m_classes__IsNotDefault;
    private boolean m_showMM;
    private boolean m_showMM__IsNotDefault;
    private boolean m_showHealth;
    private boolean m_showHealth__IsNotDefault;
    private ServiceHandler m_serviceHandler;
    private boolean m_serviceHandler__IsNotDefault;

    public void setShowCommissionState(boolean showCommissionState)
    {
      this.m_showCommissionState = showCommissionState;
      this.m_showCommissionState__IsNotDefault = true;
    }

    public boolean getShowCommissionState() {
      return this.m_showCommissionState;
    }

    public boolean getShowCommissionState__IsNotDefault()
    {
      return this.m_showCommissionState__IsNotDefault;
    }

    public void setShowRoleState(boolean showRoleState)
    {
      this.m_showRoleState = showRoleState;
      this.m_showRoleState__IsNotDefault = true;
    }

    public boolean getShowRoleState() {
      return this.m_showRoleState;
    }

    public boolean getShowRoleState__IsNotDefault()
    {
      return this.m_showRoleState__IsNotDefault;
    }

    public void setCheckboxes(boolean checkboxes)
    {
      this.m_checkboxes = checkboxes;
      this.m_checkboxes__IsNotDefault = true;
    }

    public boolean getCheckboxes() {
      return this.m_checkboxes;
    }

    public boolean getCheckboxes__IsNotDefault()
    {
      return this.m_checkboxes__IsNotDefault;
    }

    public void setShowRacks(boolean showRacks)
    {
      this.m_showRacks = showRacks;
      this.m_showRacks__IsNotDefault = true;
    }

    public boolean getShowRacks() {
      return this.m_showRacks;
    }

    public boolean getShowRacks__IsNotDefault()
    {
      return this.m_showRacks__IsNotDefault;
    }

    public void setShowDisplayStatus(boolean showDisplayStatus)
    {
      this.m_showDisplayStatus = showDisplayStatus;
      this.m_showDisplayStatus__IsNotDefault = true;
    }

    public boolean getShowDisplayStatus() {
      return this.m_showDisplayStatus;
    }

    public boolean getShowDisplayStatus__IsNotDefault()
    {
      return this.m_showDisplayStatus__IsNotDefault;
    }

    public void setClasses(String classes)
    {
      this.m_classes = classes;
      this.m_classes__IsNotDefault = true;
    }

    public String getClasses() {
      return this.m_classes;
    }

    public boolean getClasses__IsNotDefault()
    {
      return this.m_classes__IsNotDefault;
    }

    public void setShowMM(boolean showMM)
    {
      this.m_showMM = showMM;
      this.m_showMM__IsNotDefault = true;
    }

    public boolean getShowMM() {
      return this.m_showMM;
    }

    public boolean getShowMM__IsNotDefault()
    {
      return this.m_showMM__IsNotDefault;
    }

    public void setShowHealth(boolean showHealth)
    {
      this.m_showHealth = showHealth;
      this.m_showHealth__IsNotDefault = true;
    }

    public boolean getShowHealth() {
      return this.m_showHealth;
    }

    public boolean getShowHealth__IsNotDefault()
    {
      return this.m_showHealth__IsNotDefault;
    }

    public void setServiceHandler(ServiceHandler serviceHandler)
    {
      this.m_serviceHandler = serviceHandler;
      this.m_serviceHandler__IsNotDefault = true;
    }

    public ServiceHandler getServiceHandler() {
      return this.m_serviceHandler;
    }

    public boolean getServiceHandler__IsNotDefault()
    {
      return this.m_serviceHandler__IsNotDefault;
    }
  }

  public static abstract interface Intf extends AbstractTemplateProxy.Intf
  {
    public abstract void renderNoFlush(Writer paramWriter)
      throws IOException;
  }
}