(Video video)
| 125 | } |
| 126 | |
| 127 | final public void setVideo(Video video) { |
| 128 | if (this.video != null && this.video != video) { |
| 129 | getMotherboard().removeChildDevice(this.video); |
| 130 | } |
| 131 | this.video = video; |
| 132 | if (video != null) { |
| 133 | getMotherboard().addChildDevice(video); |
| 134 | video.configureVideoMode(); |
| 135 | video.reconfigure(); |
| 136 | } |
| 137 | if (JaceApplication.getApplication() != null) { |
| 138 | JaceApplication.getApplication().reconnectUIHooks(); |
| 139 | JaceApplication.getApplication().controller.connectVideo(video); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | final public CPU getCpu() { |
| 144 | return cpu; |
no test coverage detected