qx.application
Class Basic

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.application.Basic
All Implemented Interfaces:
IApplication

public class Basic
extends Target
implements IApplication

Base class for all non GUI qooxdoo applications.

The main() method will be called on the document.onload event, close() on document.beforeunload and terminate() on document.unload.


Constructor Summary
Basic()
           
 
Method Summary
 java.lang.String close()
          Called in the document.beforeunload event of the browser.
 void main()
          Called in the document.onload event of the browser.
 void terminate()
          Called in the document.onunload event of the browser.
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Basic

public Basic()
Method Detail

close

public java.lang.String close()

Called in the document.beforeunload event of the browser. If the method returns a string value, the user will be asked by the browser, whether he really wants to leave the page. The return string will be displayed in the message box.

Specified by:
close in interface IApplication

main

public void main()

Called in the document.onload event of the browser. This method should implement the setup code of the application.

Specified by:
main in interface IApplication

terminate

public void terminate()

Called in the document.onunload event of the browser. This method contains the last code which is run inside the page and may contain cleanup code.

Specified by:
terminate in interface IApplication


Copyright © 2008 1&1. All Rights Reserved.