![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
>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 485]method closeApplication() [line 450]method fireGlobalEvent() [line 341]
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 383]
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 441]
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 303]
[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 355]
Joins an Event Group Applications and services that have joined the same event groups will receive each other's global events
Parameters:
[ Top ]
method onWindowClose() [line 459]
[INTERNAL FUNCTION] Event handler for the root window's close event
[ Top ]
method openAbout() [line 465]method openAboutMemory() [line 469]method openErrorConsole() [line 477]method openExtensions() [line 473]method parseImageURL() [line 501]method partEventGroup() [line 369]
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 278]
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 232]
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 setClipboardText() [line 497]method setDefaultEventGroup() [line 218]method setGlobalEventHandler() [line 260]
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 421]
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 402]
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 492]
Sets the message that is displayed by the client before after-wake-shutdown
Parameters:
[ Top ]
Documentation generated on Tue, 10 May 2011 19:40:26 +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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
