Code:
<!DOCTYPE html>
<!-- Auto Generated with Sencha Architect -->
<!-- Modifications to this file will be overwritten. -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GenPresWebView</title>
<script src="./lib/ext-4.2.0-gpl/ext-4.2.0.663/ext-all-debug.js"></script>
<script src="./lib/ext-4.2.0-gpl/ext-4.2.0.663/ext-theme-neptune.js"></script>
<link rel="stylesheet" href="./lib/ext-4.2.0-gpl/ext-4.2.0.663/resources/ext-theme-neptune/ext-theme-neptune-all.css">
<script src="./app/ux/grid/FiltersFeature.js"></script>
<script src="./app/ux/grid/menu/ListMenu.js"></script>
<script src="./app/ux/grid/menu/RangeMenu.js"></script>
<script src="./app/ux/grid/filter/BooleanFilter.js"></script>
<script src="./app/ux/grid/filter/Filter.js"></script>
<script>
Ext.ns("Ext.app.REMOTING_API");
Ext.app.REMOTING_API = {"type":"remoting","url":"/GenPres/DirectRouter/Index","descriptor":"Ext.app.REMOTING_API","namespace":"GenPres","actions":{"Session":[{"name":"InitSession","len":0},{"name":"Login","len":2}],"Test":[{"name":"DirectTest","len":0},{"name":"RaiseError","len":0}],"Model":[{"name":"GetModel","len":1}],"Import":[{"name":"GStandard","len":1}],"Database":[{"name":"ListPDMSDatabases","len":0},{"name":"GetPDMSDatabases","len":4},{"name":"SetPDMSDatabase","len":4},{"name":"GetPDMSDatabase","len":0}],"Observations":[{"name":"GetAll","len":0}],"Users":[{"name":"GetAll","len":0},{"name":"Count","len":0},{"name":"GetAllSorted","len":0},{"name":"TakeTop","len":1},{"name":"TakeTopSorted","len":1},{"name":"FilterByName","len":1},{"name":"FromDepartment","len":1},{"name":"FromDepartmentCount","len":1},{"name":"FromDepartmentSorted","len":1},{"name":"CurrentUser","len":0}],"Departments":[{"name":"GetAll","len":0}],"Patients":[{"name":"FromDepartment","len":2},{"name":"GetPatientDetails","len":1},{"name":"GetDepartmentTree","len":1},{"name":"GetPatientDetailsFromDepartment","len":1}],"Orders":[{"name":"GetPatientOrders","len":1},{"name":"GetCurrentTreatment","len":1}],"Formularium":[{"name":"GetAtcItems","len":1},{"name":"GetShapesForAtc","len":1},{"name":"GetRoutesForAtc","len":1},{"name":"GetSubstanceUnitsForAtc","len":1},{"name":"GetShapeUnitsForAtc","len":1},{"name":"GetShapesForRoute","len":1},{"name":"GetRoutesForShape","len":1}],"DoseRule":[{"name":"GetStandardSolutionsForWeight","len":1}]}};
Ext.Direct.addProvider(Ext.app.REMOTING_API);
</script>
<script src="./app/ux/statusbar/StatusBar.js"></script>
<script src="./lib/underscore/Underscore.js"></script>
<script src="./app/EventDeclaration.js"></script>
<script src="./app/ux/ajax/SimManager.js"></script>
<script src="./app/util/Validator.js"></script>
<script src="./app/util/EventDeclarationProcessor.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body></body>
</html>
The last class EventDeclarationProcessor, is a class with static methods that is used in the controller init to wire up events with controller methods. It processes a declarative JSON and then generates the object for the listen call in the controller.