/** * Convenience method to create and install a HyperlinkAction for the given URI. * * @param uri * to uri to create a HyperlinkAction for, maybe null. * @throws HeadlessException * if {@link GraphicsEnvironment#isHeadless()} returns {@code true} * @throws UnsupportedOperationException * if the current platform doesn't support Desktop * * @see HyperlinkAction#createHyperlinkAction(URI) */ public void setURI(URI uri) { setAction(HyperlinkAction.createHyperlinkAction(uri)); }
/** * Convenience method to create and install a HyperlinkAction for the given URI. * * @param uri * to uri to create a HyperlinkAction for, maybe null. * @throws HeadlessException * if {@link GraphicsEnvironment#isHeadless()} returns {@code true} * @throws UnsupportedOperationException * if the current platform doesn't support Desktop * * @see HyperlinkAction#createHyperlinkAction(URI) */ public void setURI(URI uri) { setAction(HyperlinkAction.createHyperlinkAction(uri)); }
/** * Convenience method to create and install a HyperlinkAction for the given URI. * * @param uri * to uri to create a HyperlinkAction for, maybe null. * @throws HeadlessException * if {@link GraphicsEnvironment#isHeadless()} returns {@code true} * @throws UnsupportedOperationException * if the current platform doesn't support Desktop * * @see HyperlinkAction#createHyperlinkAction(URI) */ public void setURI(URI uri) { setAction(HyperlinkAction.createHyperlinkAction(uri)); }
/** * Factory method to create and return a HyperlinkAction for the given uri. Tries * to guess the appropriate type from the uri. If uri is not null and has a * scheme of mailto, create one of type Mail. In all other cases, creates one * for BROWSE. * * @param uri to uri to create a HyperlinkAction for, maybe null. * @return a HyperlinkAction for the given URI. * @throws HeadlessException if {@link * GraphicsEnvironment#isHeadless()} returns {@code true} * @throws UnsupportedOperationException if the current platform doesn't support * Desktop */ public static HyperlinkAction createHyperlinkAction(URI uri) { Action type = isMailURI(uri) ? Action.MAIL : Action.BROWSE; return createHyperlinkAction(uri, type); }
/** * Factory method to create and return a HyperlinkAction for the given uri. Tries * to guess the appropriate type from the uri. If uri is not null and has a * scheme of mailto, create one of type Mail. In all other cases, creates one * for BROWSE. * * @param uri to uri to create a HyperlinkAction for, maybe null. * @return a HyperlinkAction for the given URI. * @throws HeadlessException if {@link * GraphicsEnvironment#isHeadless()} returns {@code true} * @throws UnsupportedOperationException if the current platform doesn't support * Desktop */ public static HyperlinkAction createHyperlinkAction(URI uri) { Action type = isMailURI(uri) ? Action.MAIL : Action.BROWSE; return createHyperlinkAction(uri, type); }
/** * Convenience method to create and install a HyperlinkAction for the given URI. * * @param uri * to uri to create a HyperlinkAction for, maybe null. * @throws HeadlessException * if {@link GraphicsEnvironment#isHeadless()} returns {@code true} * @throws UnsupportedOperationException * if the current platform doesn't support Desktop * * @see HyperlinkAction#createHyperlinkAction(URI) */ public void setURI(URI uri) { setAction(HyperlinkAction.createHyperlinkAction(uri)); }
/** * Factory method to create and return a HyperlinkAction for the given uri. Tries * to guess the appropriate type from the uri. If uri is not null and has a * scheme of mailto, create one of type Mail. In all other cases, creates one * for BROWSE. * * @param uri to uri to create a HyperlinkAction for, maybe null. * @return a HyperlinkAction for the given URI. * @throws HeadlessException if {@link * GraphicsEnvironment#isHeadless()} returns {@code true} * @throws UnsupportedOperationException if the current platform doesn't support * Desktop */ public static HyperlinkAction createHyperlinkAction(URI uri) { Action type = isMailURI(uri) ? Action.MAIL : Action.BROWSE; return createHyperlinkAction(uri, type); }
/** * Factory method to create and return a HyperlinkAction for the given uri. Tries * to guess the appropriate type from the uri. If uri is not null and has a * scheme of mailto, create one of type Mail. In all other cases, creates one * for BROWSE. * * @param uri to uri to create a HyperlinkAction for, maybe null. * @return a HyperlinkAction for the given URI. * @throws HeadlessException if {@link * GraphicsEnvironment#isHeadless()} returns {@code true} * @throws UnsupportedOperationException if the current platform doesn't support * Desktop */ public static HyperlinkAction createHyperlinkAction(URI uri) { Action type = isMailURI(uri) ? Action.MAIL : Action.BROWSE; return createHyperlinkAction(uri, type); }