resources/RooUsage.txt
[app.Builder.js] / old-javascript / XObjectBase / GtkNotebook.js
1
2 XObject = imports.XObject.XObject
3  
4
5 GtkNotebook= XObject.define(
6     function(cfg) {
7         
8         
9         this.current_page = cfg.current_page = cfg.current_page || false;
10         delete cfg.current_page;
11         XObject.call(this, cfg);
12         
13    
14     }, 
15     XObject,
16     {
17         current_page : false,
18         init : function()
19         {
20             // is this a common feature??? of widgets ...?
21             XObject.prototype.init.call(this);
22             
23             if (this.current_page !== false)
24             {
25                 this.el.set_current_page(this.current_page);
26             }
27                                                     
28             
29         }
30     }
31  
32 );
33 GtkNotebook.config = {
34    
35     current_page         : {
36         type : 'Integer'
37     }
38 }