Selects a resource if loaded in the system and not invisible. @param res the resource to be selected. @return the Handle for the resource, null if not found.
(Resource res)
| 454 | * @return the {@link Handle} for the resource, null if not found. |
| 455 | */ |
| 456 | public Handle select(Resource res) { |
| 457 | // first find the handle for the resource |
| 458 | Handle handle = findHandleForResource(res); |
| 459 | // now select the handle if found |
| 460 | if(handle != null) { |
| 461 | select(handle); |
| 462 | } |
| 463 | return handle; |
| 464 | } |
| 465 | |
| 466 | protected void select(Handle handle) { |
| 467 | final JComponent largeView = handle.getLargeView(); |
no test coverage detected