JavaScript DHTML/SmartClient/Console

Материал из Web эксперт
Перейти к: навигация, поиск

Console for development

   <source lang="html4strict">


<HTML><HEAD>

 <SCRIPT>var isomorphicDir="isomorphic/";</SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
   <SCRIPT SRC=isomorphic/system/modules/ISC_Calendar.js></SCRIPT>
 <SCRIPT SRC=isomorphic/skins/standard/load_skin.js></SCRIPT>

</HEAD><BODY BGCOLOR="silver"> <SCRIPT> isc.Canvas.create({

   ID:"outerCanvas",
   width:"100%",
   height:"100%"

}); isc.ListGrid.create({

   ID:"screenshotGrid",
   parentElement:"outerCanvas",
   width:100,
   height:100,
   showHeaderContextMenu:false,
   fields : [ { name:"screen", title:"Screenshot" } ],
   leaveScrollbarGap:false,
   data : [
       { screen:"Results Tab", src: "devConsole_results.png", 
         description:

"The Results pane of the Developer Console contains:\r" +

"
    \r" + "
  • Diagnostics logged by SmartClient or your application code through the SmartClient logging system. The Logging Preferences menu allows you to enable different levels of diagnostics in over 30 categories, from Layout to Events to Data Binding.\r" + "
  • SmartClient component statistics. As you move the mouse in the current application, the ID of the current component under the mouse pointer is displayed in this area.\r" + "
  • A runtime code evaluation area. You may evaluate expressions and execute actions from this area in order to inspect the running state of your application or try out new code.\r" + "
\r"
       },
       { screen:"Watch Tab", src: "devConsole_watch.png", description:

"The Watch pane allows a developer to quickly grasp the structure of a SmartClient Application. In the Watch pane, you may:\r" +

"
    \r" + "
  • Click on any item in the tree to highlight the corresponding component in the main application window with a flashing, red-dotted border.\r" + "
  • Right-click on any item in the tree for a menu of operations, including a direct link to the API reference for that component"s class.\r" + "
  • Right-click on the column headers of the tree to show or hide columns.\r" + "
\r"

},

       { screen:"Reference Tab", src: "devConsole_reference.png", description:

"SmartClient documentation is integrated directly into the Developer Console so it is always at your fingertips.\r" + "This enormous resource offers both reference and conceptual information, and has integrated search, as well\r" + "as live, modifiable examples. In addition, other tools within the Console link to and incorporate reference documentation."

}
   ],
   recordClick : function (grid, record) { this.showShot(record) },
   showShot : function (record) {
       outerCanvas.addChild(
           isc.Img.create({
               ID: "console_screenshot",
               top : 210,
               width: 661,
               height: 686,
               showShadow:true,
               shadowOffset:10,
               shadowSoftness:5,
               src : "screenshots/" + record.src
           })
       )
       outerCanvas.addChild(
           isc.HTMLPane.create({
               ID: "console_description",
               left:120, width:400, height:210,
               contents:record.description
           })
       )
   }

}); screenshotGrid.showShot(screenshotGrid.data.get(0));

</SCRIPT> </BODY> </HTML>

 </source>