![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
>Home
>Features
>How does it work?
>Documentation
>Tutorials
>Examples
>Help Forum
>Download
>Extensions
>Project Site
PackagesAPIClientComponents Daemon Libraries Webfrontend Full element index APIClass tree: APIIndex: API Classes
Controls
XULButton XULCheckBox XULColorPicker XULDatePicker XULMenuList XULProgressMeter XULRadio XULRadioGroup XULScale XULSplitter XULTextBox XULTimePicker
FileHandling
AppleScriptService ClientBaseFile ClientDirectory ClientFile ClientFileService FileDownloader FileFromStreamDownloader FileFromStringDownloader FileToStreamUploader FileToStringUploader FileUploader XULFilePicker
Layout
XULBBox XULBox XULColumn XULColumns XULDeck XULGrid XULHBox XULHTMLBox XULRow XULRows XULScrollBox XULStack XULVBox
Lists
XULListBox XULListCell XULListCol XULListCols XULListHead XULListHeader XULListItem XULRichListBox XULRichListItem
MenusAndPopups
XULMenu XULMenuBar XULMenuItem XULMenuPopup XULMenuSeparator XULPanel XULPopup XULPopupSet XULToolTip
TabsAndGrouping
XULCaption XULGroupBox XULSeparator XULSpacer XULTab XULTabBox XULTabPanel XULTabPanels XULTabs
Trees
XULTree XULTreeCell XULTreeChildren XULTreeCol XULTreeCols XULTreeItem XULTreeRow XULTreeSeparator
Windows
AlertNotification PromptService XULBasicWindow XULChildWindow XULDialog XULPrefPane XULPrefWindow XULWindow Filessubpackage Applicationsubpackage CodeEditor subpackage Comm subpackage Controls subpackage CustomTree subpackage Debugger subpackage Editor subpackage ErrorConsole subpackage FileHandling subpackage HelperElements subpackage Layout subpackage Lists subpackage MenusAndPopups subpackage Node subpackage Registry subpackage Scripting subpackage Service subpackage TabsAndGrouping subpackage TextAndImages subpackage Toolbars subpackage Trees subpackage Windows subpackage WindowStructure |
Class: ApplicationSource Location: /sys/application.php.incClass OverviewThe base class for all SiteFusion applications The Application class is the parent class for all SiteFusion applications. Extending classes should always define an init($arguments) method. This method is called when the application process and root window have initialized, and thus is the place to construct your basic user interface. The root element of all applications is the window object. This is an object of the class XULWindow and is pre-constructed and initialized before the init() function is called. Application->window contains a reference to this object, and all nodes added to the window and its child nodes will contain a reference to this window in the property Node->rootWindow, and to the application in the property Node->rootApplication.
Author(s):Class Variables$alwaysLowered = FALSE
$alwaysRaised = FALSE
$applicationArguments =
$applicationName =
$centerscreen = FALSE
$commandBuffer = array()
$globalEventHandlers = array()
$handlerFor = array()
$height = NULL
$pid =
$registry =
$resizable = TRUE
$width = NULL
$window =
$yielderFor = array()
Class Methodsconstructor __construct() [line 192]
[INTERNAL FUNCTION] This function initializes the Application class
Parameters:
[ Top ]
method checkForUpdates() [line 518]method closeApplication() [line 483]method fireGlobalEvent() [line 374]
Fires a global event This method fires a global event that will reach all SiteFusion processes within the same application group.
Parameters:
[ Top ]
method getEventGroups() [line 416]
Get a list of joined Event Groups Applications and services that have joined the same event groups will receive each other's global events
[ Top ]
method getService() [line 474]
Returns a reference to a service object When supplied with a valid application group and service name, this method returns a Service object that can be used to operate a running service. Depending on the type of service specified in the SiteFusion Admin utility, the service process is created on demand or a connection is made to an existing service process. This function throws an SFException when the service is invalid or if there was a problem creating it or connecting to it.
Parameters:
[ Top ]
method handleGlobalEvent() [line 336]
[INTERNAL FUNCTION] Handles incoming global events This function is called by the ApplicationProcess when it receives a global event from the daemon.
Parameters:
[ Top ]
method joinEventGroup() [line 388]
Joins an Event Group Applications and services that have joined the same event groups will receive each other's global events
Parameters:
[ Top ]
method onClientComponentsInit() [line 251]
[INTERNAL FUNCTION] This function handles the clientComponentsInit event
Parameters:
[ Top ]
method onClientInit() [line 235]
[INTERNAL FUNCTION] This function handles the clientInit event and sets the Application::$client array.
Parameters:
[ Top ]
method onWindowClose() [line 492]
[INTERNAL FUNCTION] Event handler for the root window's close event
[ Top ]
method openAbout() [line 498]method openAboutMemory() [line 502]method openErrorConsole() [line 510]method openExtensions() [line 506]method partEventGroup() [line 402]
Parts an Event Group Applications and services that have joined the same event groups will receive each other's global events
Parameters:
[ Top ]
method preinit() [line 213]method removeGlobalEventHandler() [line 311]
Remove a handler for a global event Removes a handler for the given global event with the same syntax as setGlobalEventHandler
Parameters:
[ Top ]
method sendCommand() [line 265]
Send raw JavaScript to the client You can supply a raw JavaScript string or array(s) of strings as parameters, and the code will be executed in the client.
Parameters:
[ Top ]
method setDefaultEventGroup() [line 218]method setGlobalEventHandler() [line 293]
Set a handler for a global event Global events originate from other SiteFusion processes. A global event will only reach your application when it was fired from an application or service in the same application group. Global events are similar to local events, and can also carry additional data inside the Event object. The handler will receive the event object as the first argument, and event parameters as additional arguments.
Parameters:
[ Top ]
method setInterval() [line 454]
Sets a server-based interval callback This function is similar to the JavaScript window.setInterval() function. It dispatches a timer for a certain amount of milliseconds, and fires the handler method when the timer expires. The timer then resets and recycles, until it is cancelled by calling the cancel() method on the returned timer object.
Parameters:
[ Top ]
method setTimeout() [line 435]
Sets a server-based timeout callback This function is similar to the JavaScript window.setTimeout() function. It dispatches a timer for a certain amount of milliseconds, and fires the handler method when the timer expires. The timer can be cancelled by calling the cancel() method on the returned timer object.
Parameters:
[ Top ]
method setWakeMessage() [line 525]
Sets the message that is displayed by the client before after-wake-shutdown
Parameters:
[ Top ]
Documentation generated on Sun, 29 Aug 2010 01:26:33 +0200 by phpDocumentor 1.4.3 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| All content is © 2009 by FrontDoor Media Group, is available under the Creative Commons Attribution-Share Alike 2.5 License and is maintained by the SiteFusion.org staff | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
