OSDN Git Service

Version 0.6.170, X.Audio is working ADVANCED_OPTIMIZATIONS.
[pettanr/clientJs.git] / 0.6.x / js / 20_ui / 20_Root.js
similarity index 87%
rename from 0.6.x/js/20_ui/20_PageRoot.js
rename to 0.6.x/js/20_ui/20_Root.js
index 09ca3c5..e1a756f 100644 (file)
@@ -67,8 +67,8 @@ function X_UI_eventRellay( e ){
  * 背景画像を読み終える onload で活動開始
  */
 
-var XUI_PageRoot = XUI_Box.inherits(
-       '_PageRoot',
+var XUI_Root = XUI_Box.inherits(
+       '_Root',
        X_Class.FINAL,
        {
                layout                : XUI_Layout_Canvas,
@@ -124,10 +124,10 @@ var XUI_PageRoot = XUI_Box.inherits(
                        X_Timer_once( 0, this, this.afterAddToView );
                },
                afterAddToView : function(){
-                       this.xnode[ 'className' ]( 'PageRoot' );
+                       this.xnode[ 'className' ]( 'Root' );
                        
                        this.creationComplete();
-                       X_Timer_once( 0, this, XUI_PageRoot_do1stCalculate );
+                       X_Timer_once( 0, this, XUI_Root_do1stCalculate );
                },
                
                reserveCalc : function(){
@@ -151,7 +151,7 @@ var XUI_PageRoot = XUI_Box.inherits(
                        
                        this.calcReserved = false;
                        
-                       X_ViewPort[ 'listenOnce' ]( X_EVENT_AFTER_UPDATE, this, XUI_PageRoot_onViewUpdate );
+                       X_ViewPort[ 'listenOnce' ]( X_EVENT_AFTER_UPDATE, this, XUI_Root_onViewUpdate );
                        
                        return X_CALLBACK_NONE;
                },
@@ -167,7 +167,7 @@ var XUI_PageRoot = XUI_Box.inherits(
        }
 );
 
-function XUI_PageRoot_do1stCalculate(){
+function XUI_Root_do1stCalculate(){
        this.calculate();
        this.phase = 4;
        X.ViewPort
@@ -175,36 +175,36 @@ function XUI_PageRoot_do1stCalculate(){
                [ 'listen' ]( X_EVENT_BASE_FONT_RESIZED, this, this.calculate );
 };
 
-function XUI_PageRoot_onViewUpdate( e ){
+function XUI_Root_onViewUpdate( e ){
        this[ 'dispatch' ]( XUI_Event.LAYOUT_COMPLETE );
 };
 
-//var XUI_PageRoot;
+//var XUI_Root;
 // TODO singleton
-X.UI.PageRoot = X.UI.Box.inherits(
-       'PageRoot',
+X.UI.Root = X.UI.Box.inherits(
+       'Root',
        X_Class.NONE,
        {
                Constructor : function(){
                        var supports;
                        
-                       //if( !XUI_PageRoot ){
+                       //if( !XUI_Root ){
                                supports = XUI_Attr_createAttrDef( XUI_Box.prototype.usableAttrs, XUI_Layout_Canvas.overrideAttrsForSelf );
                                
-                               XUI_PageRoot.prototype.layout       = XUI_Layout_Canvas;
-                               XUI_PageRoot.prototype.usableAttrs = supports;
-                               XUI_PageRoot.prototype.attrClass    = XUI_Attr_preset( XUI_Box.prototype.attrClass, supports, {
+                               XUI_Root.prototype.layout       = XUI_Layout_Canvas;
+                               XUI_Root.prototype.usableAttrs = supports;
+                               XUI_Root.prototype.attrClass    = XUI_Attr_preset( XUI_Box.prototype.attrClass, supports, {
                                                                        width  : '100%',
                                                                        height : '100%'
                                                                } );
                        //};
-                       X_Pair_create( this, XUI_PageRoot( this, XUI_Layout_Canvas, arguments ) );
+                       X_Pair_create( this, XUI_Root( this, XUI_Layout_Canvas, arguments ) );
                }
        });
 /*
-X.UI.PageRoot = X.UI.Box.presets(
-       'PageRoot',
-       XUI_PageRoot,
+X.UI.Root = X.UI.Box.presets(
+       'Root',
+       XUI_Root,
        {
                width  : '100%',
                height : '100%'