1 | package org.apache.jsp.visualization; |
---|
2 | |
---|
3 | import javax.servlet.*; |
---|
4 | import javax.servlet.http.*; |
---|
5 | import javax.servlet.jsp.*; |
---|
6 | |
---|
7 | public final class visu_005fcathy_002dscript_jsp extends org.apache.jasper.runtime.HttpJspBase |
---|
8 | implements org.apache.jasper.runtime.JspSourceDependent { |
---|
9 | |
---|
10 | private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); |
---|
11 | |
---|
12 | private static java.util.List _jspx_dependants; |
---|
13 | |
---|
14 | private javax.el.ExpressionFactory _el_expressionfactory; |
---|
15 | private org.apache.AnnotationProcessor _jsp_annotationprocessor; |
---|
16 | |
---|
17 | public Object getDependants() { |
---|
18 | return _jspx_dependants; |
---|
19 | } |
---|
20 | |
---|
21 | public void _jspInit() { |
---|
22 | _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); |
---|
23 | _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName()); |
---|
24 | } |
---|
25 | |
---|
26 | public void _jspDestroy() { |
---|
27 | } |
---|
28 | |
---|
29 | public void _jspService(HttpServletRequest request, HttpServletResponse response) |
---|
30 | throws java.io.IOException, ServletException { |
---|
31 | |
---|
32 | PageContext pageContext = null; |
---|
33 | HttpSession session = null; |
---|
34 | ServletContext application = null; |
---|
35 | ServletConfig config = null; |
---|
36 | JspWriter out = null; |
---|
37 | Object page = this; |
---|
38 | JspWriter _jspx_out = null; |
---|
39 | PageContext _jspx_page_context = null; |
---|
40 | |
---|
41 | |
---|
42 | try { |
---|
43 | response.setContentType("text/html"); |
---|
44 | pageContext = _jspxFactory.getPageContext(this, request, response, |
---|
45 | null, true, 8192, true); |
---|
46 | _jspx_page_context = pageContext; |
---|
47 | application = pageContext.getServletContext(); |
---|
48 | config = pageContext.getServletConfig(); |
---|
49 | session = pageContext.getSession(); |
---|
50 | out = pageContext.getOut(); |
---|
51 | _jspx_out = out; |
---|
52 | |
---|
53 | out.write("<script type=\"text/javascript\">\n"); |
---|
54 | out.write(" var InterfaceC = Class.create( {\n"); |
---|
55 | out.write("\n"); |
---|
56 | out.write(" initialize: function()\n"); |
---|
57 | out.write(" {\n"); |
---|
58 | out.write(" // Values\n"); |
---|
59 | out.write(" this.generalContainerLeftMenu = $( \"leftMenu\" );\n"); |
---|
60 | out.write(" this.generalContainerContent = $( \"content\" );\n"); |
---|
61 | out.write("\n"); |
---|
62 | out.write(" /** *********** LOADING *********** **/\n"); |
---|
63 | out.write(" // Create loading object for plateforms\n"); |
---|
64 | out.write(" var param = new Object();\n"); |
---|
65 | out.write(" param.id = \"loadingForContent\";\n"); |
---|
66 | out.write(" param.parent = this.generalContainerContent;\n"); |
---|
67 | out.write(" this.loadingPlateforms = new Loading( param );\n"); |
---|
68 | out.write(" this.loadingPlateforms.display();\n"); |
---|
69 | out.write("\n"); |
---|
70 | out.write("\n"); |
---|
71 | out.write(" /** *********** SELECT *********** **/\n"); |
---|
72 | out.write(" var paramSelect = new Object();\n"); |
---|
73 | out.write(" paramSelect.id = \"selectStations\";\n"); |
---|
74 | out.write(" paramSelect.parent = this.generalContainerLeftMenu;\n"); |
---|
75 | out.write(" this.selectAxes = new Select( paramSelect );\n"); |
---|
76 | out.write("\n"); |
---|
77 | out.write("\n"); |
---|
78 | out.write(" /** *********** RADIO *********** **/\n"); |
---|
79 | out.write("\n"); |
---|
80 | out.write("\n"); |
---|
81 | out.write(" /** *********** CALENDAR *********** **/\n"); |
---|
82 | out.write("// this.createCalendar();\n"); |
---|
83 | out.write("\n"); |
---|
84 | out.write(" /** *********** BUTTON *********** **/\n"); |
---|
85 | out.write(" },\n"); |
---|
86 | out.write("\n"); |
---|
87 | out.write(" // DISPLAYS ********************************************************\n"); |
---|
88 | out.write(" createCalendar: function()\n"); |
---|
89 | out.write(" {\n"); |
---|
90 | out.write(" // Embedded Calendar\n"); |
---|
91 | out.write(" this.calendar = Calendar.setup(\n"); |
---|
92 | out.write(" {\n"); |
---|
93 | out.write(" dateField: 'embeddedDateField',\n"); |
---|
94 | out.write(" endDateField: 'embeddedEndDateField',\n"); |
---|
95 | out.write(" parentElement: 'embeddedCalendar',\n"); |
---|
96 | out.write(" clickToDateField: true,\n"); |
---|
97 | out.write(" selectHandler: this.onClickCalendar.bind( this )\n"); |
---|
98 | out.write(" } )\n"); |
---|
99 | out.write(" },\n"); |
---|
100 | out.write("\n"); |
---|
101 | out.write(" // EVENTS ********************************************************\n"); |
---|
102 | out.write(" onSelectPlateform: function( objPlateform )\n"); |
---|
103 | out.write(" {\n"); |
---|
104 | out.write(" if( this.selectedPlateform && objPlateform.getId() == this.selectedPlateform.getId() )\n"); |
---|
105 | out.write(" return;\n"); |
---|
106 | out.write("\n"); |
---|
107 | out.write(" // Unselect old plateform\n"); |
---|
108 | out.write(" if( this.selectedPlateform )\n"); |
---|
109 | out.write(" this.selectedPlateform.unselect();\n"); |
---|
110 | out.write("\n"); |
---|
111 | out.write(" this.selectedPlateform = objPlateform;\n"); |
---|
112 | out.write(" this.selectedPlateform.select();\n"); |
---|
113 | out.write("\n"); |
---|
114 | out.write(" // Unselect old parameter\n"); |
---|
115 | out.write(" if( this.selectedParameter )\n"); |
---|
116 | out.write(" this.selectedParameter = false;\n"); |
---|
117 | out.write("\n"); |
---|
118 | out.write(" this.requestParametersByPlateform();\n"); |
---|
119 | out.write(" this.testAllFields();\n"); |
---|
120 | out.write(" },\n"); |
---|
121 | out.write("\n"); |
---|
122 | out.write(" onClickCalendar: function( calendar )\n"); |
---|
123 | out.write(" {\n"); |
---|
124 | out.write(" if( !calendar.dateField ) return false\n"); |
---|
125 | out.write("\n"); |
---|
126 | out.write(" if( calendar.clickToDateField )\n"); |
---|
127 | out.write(" {\n"); |
---|
128 | out.write(" Element.update( calendar.dateField, calendar.date.print( calendar.dateFormat ) )\n"); |
---|
129 | out.write(" this.beginDate = calendar.date.print( calendar.dateFormat );\n"); |
---|
130 | out.write(" }\n"); |
---|
131 | out.write(" else\n"); |
---|
132 | out.write(" {\n"); |
---|
133 | out.write(" Element.update( calendar.endDateField, calendar.date.print( calendar.dateFormat ) )\n"); |
---|
134 | out.write(" this.endDate = calendar.date.print( calendar.dateFormat );\n"); |
---|
135 | out.write(" }\n"); |
---|
136 | out.write(" calendar.setClickToDateField( !calendar.clickToDateField );\n"); |
---|
137 | out.write(" this.testCalendarPeriod( calendar.dateField.innerHTML, calendar.endDateField.innerHTML );\n"); |
---|
138 | out.write("\n"); |
---|
139 | out.write(" // Call the close handler, if necessary\n"); |
---|
140 | out.write(" if( calendar.shouldClose ) calendar.callCloseHandler()\n"); |
---|
141 | out.write(" },\n"); |
---|
142 | out.write("\n"); |
---|
143 | out.write(" onClickVisualize: function()\n"); |
---|
144 | out.write(" {\n"); |
---|
145 | out.write(" this.displayLoading();\n"); |
---|
146 | out.write(" this.requestValuesByPlateformByParameterByPeriod();\n"); |
---|
147 | out.write(" }\n"); |
---|
148 | out.write("\n"); |
---|
149 | out.write(" // OTHERS ********************************************************\n"); |
---|
150 | out.write(" } );\n"); |
---|
151 | out.write("\n"); |
---|
152 | out.write("</script>"); |
---|
153 | } catch (Throwable t) { |
---|
154 | if (!(t instanceof SkipPageException)){ |
---|
155 | out = _jspx_out; |
---|
156 | if (out != null && out.getBufferSize() != 0) |
---|
157 | try { out.clearBuffer(); } catch (java.io.IOException e) {} |
---|
158 | if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); |
---|
159 | } |
---|
160 | } finally { |
---|
161 | _jspxFactory.releasePageContext(_jspx_page_context); |
---|
162 | } |
---|
163 | } |
---|
164 | } |
---|