* 背景画像を読み終える onload で活動開始
*/
-var XUI_PageRoot = XUI_Box.inherits(
- '_PageRoot',
+var XUI_Root = XUI_Box.inherits(
+ '_Root',
X_Class.FINAL,
{
layout : XUI_Layout_Canvas,
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(){
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;
},
}
);
-function XUI_PageRoot_do1stCalculate(){
+function XUI_Root_do1stCalculate(){
this.calculate();
this.phase = 4;
X.ViewPort
[ '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%'