hortence

JsonTest2 Application.js 3

Jun 15th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. /* ************************************************************************
  2. Copyright:
  3. License:
  4. Authors:
  5.  
  6. ************************************************************************ */
  7.  
  8. /* ************************************************************************
  9. #asset(jsontest2/*)
  10. ************************************************************************ */
  11.  
  12. /**
  13. * This is the main application class of your custom application "JsonTest2"
  14. */
  15. qx.Class.define("jsontest2.Application",
  16. {
  17. extend: qx.application.Standalone,
  18.  
  19.  
  20.  
  21. /*
  22. *****************************************************************************
  23. MEMBERS
  24. *****************************************************************************
  25. */
  26.  
  27. members:
  28. {
  29. /**
  30. * This method contains the initial application code and gets called
  31. * during startup of the application
  32. *
  33. * @lint ignoreDeprecated(alert)
  34. */
  35. main: function () {
  36. // Call super class
  37. this.base(arguments);
  38.  
  39. // Enable logging in debug variant
  40. if (qx.core.Environment.get("qx.debug")) {
  41. // support native logging capabilities, e.g. Firebug for Firefox
  42. qx.log.appender.Native;
  43. // support additional cross-browser console. Press F7 to toggle visibility
  44. qx.log.appender.Console;
  45. }
  46.  
  47. /*
  48. -------------------------------------------------------------------------
  49. Below is your actual application code...
  50. -------------------------------------------------------------------------
  51. */
  52.  
  53. this.debug("call the widget");
  54. //call the widget
  55. var mainWidget = new jsontest2.WidgetChat();
  56.  
  57. this.debug("add the widget to root");
  58. //add the widget to root
  59. this.getRoot().add(mainWidget);
  60.  
  61. this.debug("make the widget visible");
  62. //make the widget visible
  63. mainWidget.show();
  64.  
  65. this.debug("End App");
  66.  
  67. }
  68. }
  69. });
Advertisement
Add Comment
Please, Sign In to add comment