this.leftview.setAttribute('resource', this.left);
this.middleview.setAttribute('resource', this.middle);
this.rightview.setAttribute('resource', this.right);
super.init();
// if this view has a height, then the child views should
// be constrained to that height, otherwise they will be sized
// to the height of their resource
if (this.hassetheight) {
var d = [ this, 'height' ];
this.applyConstraintMethod('adjheight', d );
}
this.leftview.setAttribute('height', h);
this.middleview.setAttribute('height', h);
this.rightview.setAttribute('height', h);
this.frame = fr;
this.onframe.sendEvent(fr);
this.leftview.setAttribute('frame', fr);
this.middleview.setAttribute('frame', fr);
this.rightview.setAttribute('frame', fr);
this.topview.setAttribute('resource', this.top);
this.middleview.setAttribute('resource', this.middle);
this.bottomview.setAttribute('resource', this.bottom);
super.init();
// if this view has a width, then the child views should
// be constrained to that width, otherwise they will be sized
// to the width of their resource
if (this.hassetwidth) {
var d = [ this, 'width' ];
this.applyConstraintMethod('adjwidth', d );
}
this.frame = fr;
this.onframe.sendEvent(fr);
this.topview.setAttribute('frame', fr);
this.middleview.setAttribute('frame', fr);
this.bottomview.setAttribute('frame', fr);
this.topview.setAttribute('width', w);
this.middleview.setAttribute('width', w);
this.bottomview.setAttribute('width', w);