(parent?: ComponentContainer)
| 565 | */ |
| 566 | public parent(parent: ComponentContainer): this; |
| 567 | public parent(parent?: ComponentContainer): any { |
| 568 | if (parent === undefined) { |
| 569 | return this._parent; |
| 570 | } |
| 571 | if (parent !== null && !parent.has(this)) { |
| 572 | throw new Error("Passed invalid parent"); |
| 573 | } |
| 574 | this._parent = parent; |
| 575 | return this; |
| 576 | } |
| 577 | |
| 578 | /** |
| 579 | * @returns {Bounds} for the component in pixel space, where the topLeft |
no test coverage detected