Returns the first WebWindow that matches the specified name. @param name the name to search for @return the WebWindow with the specified name @throws WebWindowNotFoundException if the WebWindow can't be found @see #getWebWindows() @see #getTopLevelWindows()
(final String name)
| 1270 | * @see #getTopLevelWindows() |
| 1271 | */ |
| 1272 | public WebWindow getWebWindowByName(final String name) throws WebWindowNotFoundException { |
| 1273 | WebAssert.notNull("name", name); |
| 1274 | |
| 1275 | for (final WebWindow webWindow : windows_) { |
| 1276 | if (name.equals(webWindow.getName())) { |
| 1277 | return webWindow; |
| 1278 | } |
| 1279 | } |
| 1280 | |
| 1281 | throw new WebWindowNotFoundException(name); |
| 1282 | } |
| 1283 | |
| 1284 | /** |
| 1285 | * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br> |