/** * Returns the resource for this instance. * * @since 7.4 * * @return resource to open browser window */ public Resource getResource() { return getResource(BrowserWindowOpenerState.locationResource); }
/** * Returns the URL for this BrowserWindowOpener instance. Returns * {@code null} if this instance is not URL resource based (a non URL based * resource has been set for it). * * @since 7.4 * * @return URL to open in the new browser window/tab when the extended * component is clicked */ public String getUrl() { Resource resource = getResource(); if (resource instanceof ExternalResource) { return ((ExternalResource) resource).getURL(); } return null; }