Author: ygrego Date: 2015-05-28 08:28:31 +0000 (Thu, 28 May 2015) New Revision: 1513 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1513 Log: Addition of a new class "Application". Added: oipf/js/impl/model/Application.js Added: oipf/js/impl/model/Application.js =================================================================== --- oipf/js/impl/model/Application.js (rev 0) +++ oipf/js/impl/model/Application.js 2015-05-28 08:28:31 UTC (rev 1513) @@ -0,0 +1,66 @@ +/* + * The Application class is used to implement the characteristics of a + * DAE application. If the document of an application is modified + * (or even replaced entirely), the Application object SHALL be retained. + * This means that the permission set granted when the application is created + * applies to all “edits” of the document or other pages in the application, + * until the application is destroyed. + */ + +var Application = Class.extend({ + + /* + * Description: + * true if the application is visible, false otherwise. The value of + * this property is not affected by the application's Z-index or position + * relative to other applications. Only calls to the show() and hide() + * methods will affect its value. + * + * Visibility Type: readonly Boolean + */ + visible: null, + + /* + * Description: + * true if the application is in the list of currently active applications, + * false otherwise (as defined in section 4.3.8). + * + * Visibility Type: readonly Boolean + */ + active: null, + + /* + * Descrioption: + * StringCollection object containing the names of the permissions granted + * to this application. + * + * Visibilty Type: readonly StringCollection + */ + permissions: null, + + /* + * Description: + * true if the application receives cross application events before any + * other application, false otherwise. + * + * Visibility Type: readonly Boolean + */ + isPrimaryReceiver: null, + + /* + * Description: + * Access the current application’s private data object. + * If an application attempts to access the privateData property of an + * Application object for a different application, the OITF SHALL throw + * an error as defined in section 10.1.1. + * + * Visibility Type: readonly ApplicationPrivateData + */ + privateData: null, + + init: function() { + + } +}); + +