package org.apache.jsp.webcontent.birt.pages.control;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.eclipse.birt.report.presentation.aggregation.IFragment;
import org.eclipse.birt.report.resource.BirtResources;

public final class ProgressBarFragment_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.List<java.lang.String> _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.List<java.lang.String> getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
  }

  public void _jspDestroy() {
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=utf-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, false, 0, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write('\n');
      org.eclipse.birt.report.presentation.aggregation.IFragment fragment = null;
      fragment = (org.eclipse.birt.report.presentation.aggregation.IFragment) _jspx_page_context.getAttribute("fragment", javax.servlet.jsp.PageContext.REQUEST_SCOPE);
      if (fragment == null){
        throw new java.lang.InstantiationException("bean fragment not found within scope");
      }
      out.write('\n');
      org.eclipse.birt.report.context.BaseAttributeBean attributeBean = null;
      attributeBean = (org.eclipse.birt.report.context.BaseAttributeBean) _jspx_page_context.getAttribute("attributeBean", javax.servlet.jsp.PageContext.REQUEST_SCOPE);
      if (attributeBean == null){
        throw new java.lang.InstantiationException("bean attributeBean not found within scope");
      }
      out.write('\n');
      out.write("\n");
      out.write("<DIV ID=\"progressBar\" STYLE=\"display:none;position:absolute;z-index:310\">\n");
      out.write("\t<TABLE WIDTH=\"250px\" CLASS=\"birtviewer_progressbar\" CELLSPACING=\"10px\">\n");
      out.write("\t\t<TR>\n");
      out.write("\t\t\t<TD ALIGN=\"center\">\n");
      out.write("\t\t\t\t<B>\n");
      out.write("\t\t\t\t\t");
      out.print( BirtResources.getMessage( "birt.viewer.progressbar.prompt" ));
      out.write("\n");
      out.write("\t\t\t\t</B>\n");
      out.write("\t\t\t</TD>\n");
      out.write("\t\t</TR>\n");
      out.write("\t\t<TR>\n");
      out.write("\t\t\t<TD ALIGN=\"center\">\n");
      out.write("\t\t\t\t<IMG SRC=\"");
      out.print( "birt/images/" + (attributeBean.isRtl()?"Loading_rtl":"Loading") + ".gif" );
      out.write("\" ALT=\"Progress Bar Image\"/>\n");
      out.write("\t\t\t</TD>\n");
      out.write("\t\t</TR>\n");
      out.write("\t\t<TR>\n");
      out.write("\t\t\t<TD ALIGN=\"center\">\n");
      out.write("\t\t\t\t<DIV ID=\"cancelTaskButton\" STYLE=\"display:none\">\n");
      out.write("\t\t\t\t\t<TABLE WIDTH=\"100%\">\n");
      out.write("\t\t\t\t\t\t<TR>\n");
      out.write("\t\t\t\t\t\t\t<TD ALIGN=\"center\">\n");
      out.write("\t\t\t\t\t\t\t\t<INPUT TYPE=\"BUTTON\" VALUE=\"");
      out.print( BirtResources.getHtmlMessage( "birt.viewer.dialog.cancel" ));
      out.write("\" \t\t\t\t\t   \n");
      out.write("\t\t\t\t\t\t\t\t\t   TITLE=\"");
      out.print( BirtResources.getHtmlMessage( "birt.viewer.dialog.cancel" ));
      out.write("\"\n");
      out.write("\t\t\t\t\t\t\t\t\t   CLASS=\"birtviewer_progressbar_button\"/>\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t</TR>\n");
      out.write("\t\t\t\t\t</TABLE>\n");
      out.write("\t\t\t\t</DIV>\n");
      out.write("\t\t\t</TD>\n");
      out.write("\t\t</TR>\t\n");
      out.write("\t\t<INPUT TYPE=\"HIDDEN\" ID=\"taskid\" VALUE=\"\"/>\n");
      out.write("\t</TABLE>\n");
      out.write("</DIV>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
