Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ************************************************************************
- Copyright:
- License:
- Authors:
- ************************************************************************ */
- /* ************************************************************************
- #asset(jsontest2/*)
- ************************************************************************ */
- /**
- * This is the main application class of your custom application "JsonTest2"
- */
- qx.Class.define("jsontest2.Application",
- {
- extend: qx.application.Standalone,
- /*
- *****************************************************************************
- MEMBERS
- *****************************************************************************
- */
- members:
- {
- /**
- * This method contains the initial application code and gets called
- * during startup of the application
- *
- * @lint ignoreDeprecated(alert)
- */
- main: function () {
- // Call super class
- this.base(arguments);
- // Enable logging in debug variant
- if (qx.core.Environment.get("qx.debug")) {
- // support native logging capabilities, e.g. Firebug for Firefox
- qx.log.appender.Native;
- // support additional cross-browser console. Press F7 to toggle visibility
- qx.log.appender.Console;
- }
- /*
- -------------------------------------------------------------------------
- Below is your actual application code...
- -------------------------------------------------------------------------
- */
- this.debug("call the widget");
- //call the widget
- var mainWidget = new jsontest2.WidgetChat();
- this.debug("add the widget to root");
- //add the widget to root
- this.getRoot().add(mainWidget);
- this.debug("make the widget visible");
- //make the widget visible
- mainWidget.show();
- this.debug("End App");
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment