qx.application
Class Gui

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

public class Gui
extends Target
implements IApplication

This is the base class for all GUI qooxdoo applications.

All applications using qooxdoo widgets should be derived from this class. Normally at least the main() method will be overridden to define the GUI.


Constructor Summary
Gui()
           
 
Method Summary
 void _postload()
          Preload all remaining images.
 void _postloaderDone()
          Callback which is called once the post loading is completed.
 void _preload()
          Start pre loading of the initially visible images.
 void _preloaderDone()
          Callback which is called once the pre loading of the required images is completed.
 java.lang.String close()
          Called in the document.onbeforeunload event of the browser.
 boolean getUiReady()
          Returns the (computed) value of the property uiReady.
 void initUiReady(boolean arg)
          Calls the apply method and dispatches the change event of the property uiReady with the default value defined by the class developer.
 boolean isUiReady()
          Check whether the (computed) value of the boolean property uiReady equals true.
 void main()
          Called in the document.onload event of the browser.
 void resetUiReady()
          Resets the user value of the property uiReady.
 void setUiReady(boolean arg)
          Sets the user value of the property uiReady.
 void terminate()
          Called in the document.onunload event of the browser.
 boolean toggleUiReady()
          Toggles the (computed) value of the boolean property uiReady.
 
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

Gui

public Gui()
Method Detail

_postload

public void _postload()

Preload all remaining images.


_postloaderDone

public void _postloaderDone()

Callback which is called once the post loading is completed.


_preload

public void _preload()

Start pre loading of the initially visible images.


_preloaderDone

public void _preloaderDone()

Callback which is called once the pre loading of the required images is completed.


close

public java.lang.String close()

Called in the document.onbeforeunload 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

getUiReady

public boolean getUiReady()

Returns the (computed) value of the property uiReady.

For further details take a look at the property definition: uiReady.


initUiReady

public void initUiReady(boolean arg)

Calls the apply method and dispatches the change event of the property uiReady with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: uiReady.


isUiReady

public boolean isUiReady()

Check whether the (computed) value of the boolean property uiReady equals true.

For further details take a look at the property definition: uiReady.


main

public void main()

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

Specified by:
main in interface IApplication

resetUiReady

public void resetUiReady()

Resets the user value of the property uiReady.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: uiReady.


setUiReady

public void setUiReady(boolean arg)

Sets the user value of the property uiReady.

For further details take a look at the property definition: uiReady.


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

toggleUiReady

public boolean toggleUiReady()

Toggles the (computed) value of the boolean property uiReady.

For further details take a look at the property definition: uiReady.



Copyright © 2008 1&1. All Rights Reserved.