X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F20_ui%2F20_Root.js;fp=0.6.x%2Fjs%2F20_ui%2F20_PageRoot.js;h=e1a756f325526033c91e7979dda6ab9ae1422021;hb=e28511741c97176b8ffe67bb1ea0660da37f754b;hp=09ca3c52dfb906bb6d40650fa2eeadb64335cd44;hpb=3d352d8bf476ab57cc333e8d02d0e6ea5efa69b7;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/20_ui/20_PageRoot.js b/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 --- a/0.6.x/js/20_ui/20_PageRoot.js +++ b/0.6.x/js/20_ui/20_Root.js @@ -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%'