Disconnect this box from everything.
()
| 153 | |
| 154 | /** |
| 155 | * Disconnect this box from everything. |
| 156 | */ |
| 157 | public Box disconnectFromAll() { |
| 158 | |
| 159 | for (Box b : new ArrayList<Box>(children)) |
| 160 | disconnect(b); |
| 161 | |
| 162 | for (Box b : new ArrayList<>(parents)) |
| 163 | b.disconnect(this); |
| 164 | |
| 165 | all.clear(); |
| 166 | |
| 167 | return this; |
| 168 | } |
| 169 |
no test coverage detected