var XUI_ChromeBox = XUI_Box.inherits(\r
'_ChromeBox',\r
- X_Class.PRIVATE_DATA,\r
+ X_Class.NONE,\r
{\r
chromeNodes : null,\r
containerNode : null,\r
\r
- Constructor : function( layout, args ){\r
+ Constructor : function( user, layout, args ){\r
var uinodes, i, l, node, after, index = 0;\r
\r
- this[ 'Super' ]( layout, args );\r
+ this[ 'Super' ]( user, layout, args );\r
\r
uinodes = this.uinodes;\r
l = i = uinodes.length;\r
if( this.containerNode ){\r
//throw new Error( 'ContainerNode が複数設定されています!ContainerNode はクロームボックスにひとつ、生成時に設定できます ' + node );\r
};\r
- this.containerNode = node.User;\r
+ this.containerNode = node.User;\r
this._containerNode = node;\r
} else {\r
if( !this.chromeNodes ) this.chromeNodes = [];\r
X.UI.ChromeBox = X.UI.Box.inherits(\r
'ChromeBox',\r
X_Class.NONE,\r
- XUI_ChromeBox,\r
{\r
Constructor : function(){\r
- X_Class_newPrivate( this, XUI_Layout_Canvas, arguments );\r
+ X_Pair_create( this, XUI_ChromeBox( this, XUI_Layout_Canvas, arguments ) );\r
},\r
add : function( node /* , node, node ... */ ){\r
- X_Class_getPrivate( this ).containerNode.addAt( this.numNodes(), Array.prototype.slice.call( arguments ) );\r
+ X_Pair_get( this ).containerNode.addAt( this.numNodes(), Array.prototype.slice.call( arguments ) );\r
return this;\r
},\r
addAt : function( index, node /* , node, node ... */ ){\r
- X_Class_getPrivate( this ).containerNode.addAt( index, Array.prototype.slice.call( arguments, 1 ) );\r
+ X_Pair_get( this ).containerNode.addAt( index, Array.prototype.slice.call( arguments, 1 ) );\r
return this;\r
},\r
remove : function( node /* , node, node ... */ ){\r
- X_Class_getPrivate( this ).containerNode[ 'remove' ]( arguments );\r
+ X_Pair_get( this ).containerNode[ 'remove' ]( arguments );\r
return this;\r
},\r
removeAt : function( from, length ){\r
- X_Class_getPrivate( this ).containerNode.removeAt( from, length );\r
+ X_Pair_get( this ).containerNode.removeAt( from, length );\r
return this;\r
},\r
getNodesByClass : function( klass ){\r
- return X_Class_getPrivate( this ).containerNode.User.getNodesByClass( klass );\r
+ return X_Pair_get( this ).containerNode.User.getNodesByClass( klass );\r
},\r
getFirstChild : function(){\r
- return X_Class_getPrivate( this ).containerNode.User.getFirstChild();\r
+ return X_Pair_get( this ).containerNode.User.getFirstChild();\r
},\r
getLastChild : function(){\r
- return X_Class_getPrivate( this ).containerNode.User.getLastChild();\r
+ return X_Pair_get( this ).containerNode.User.getLastChild();\r
},\r
getNodeByUID : function( uid ){\r
- return X_Class_getPrivate( this ).containerNode.User.getNodeByUID();\r
+ return X_Pair_get( this ).containerNode.User.getNodeByUID();\r
},\r
getNodeAt : function( index ){\r
- return X_Class_getPrivate( this ).containerNode.User.getNodeAt( index );\r
+ return X_Pair_get( this ).containerNode.User.getNodeAt( index );\r
},\r
numNodes : function(){\r
- return X_Class_getPrivate( this ).containerNode.User.numNodes();\r
+ return X_Pair_get( this ).containerNode.User.numNodes();\r
},\r
getContainerNode : function(){\r
- return X_Class_getPrivate( this ).containerNode.User;\r
+ return X_Pair_get( this ).containerNode.User;\r
},\r
getChromeNodeAt : function( index ){\r
if( index < 0 ) return null;\r
- var nodes = X_Class_getPrivate( this ).chromeNodes;\r
+ var nodes = X_Pair_get( this ).chromeNodes;\r
return nodes ? nodes[ index ].User || null : null;\r
},\r
numChromeNodes : function(){\r
- var nodes = X_Class_getPrivate( this ).chromeNodes;\r
+ var nodes = X_Pair_get( this ).chromeNodes;\r
return nodes ? nodes.length : 0;\r
}\r
}\r