You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (JIRA)" <ji...@apache.org> on 2015/08/05 18:32:04 UTC

[jira] [Updated] (PIVOT-977) Specialized component to implement an HTML hyperlink

     [ https://issues.apache.org/jira/browse/PIVOT-977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Whitcomb updated PIVOT-977:
---------------------------------
    Attachment: 977.patch

The "977.patch" file implements this component, including a couple of test programs to illustrate the functionality.  The button content by default will be the URI or URL string, but it can be set to any text desired, and/or a text and icon (just like any other button).

The only additional thing I was considering was a listener for changes to the URI/URL on this button.  Not sure if this is really necessary.

> Specialized component to implement an HTML hyperlink
> ----------------------------------------------------
>
>                 Key: PIVOT-977
>                 URL: https://issues.apache.org/jira/browse/PIVOT-977
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>    Affects Versions: 2.0.4
>         Environment: All
>            Reporter: Roger Whitcomb
>            Assignee: Roger Whitcomb
>            Priority: Minor
>              Labels: hyperlink, linkbutton
>             Fix For: 2.1
>
>         Attachments: 977.patch
>
>
> The appearance of a LinkButton is the same as an HTML hyperlink, but actually using it to implement a hyperlink is rather involved.  So, it would be nice if there was a specialized component (subclass of LinkButton) that actually implements the hyperlink functionality, using the standard Java "Desktop.browse(URI)" method, so it is quite simple to implement a real hyperlink within an application.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)