[SWINGX-1228] JXTable: register default renderer for URL/URI class Created: 26/Nov/09  Updated: 30/Mar/11  Resolved: 30/Mar/11

Status: Resolved
Project: swingx
Component/s: Table
Affects Version/s: 1.6.1
Fix Version/s: 1.6.3

Type: Improvement Priority: Major
Reporter: kleopatra Assignee: kleopatra
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: 0 minutes
Environment:

Operating System: All
Platform: All


Issuezilla Id: 1,228

 Description   

should be easy now with the HyperlinkAction as wrapper around Desktop
with that, it's a hyperlinkProvider(hyperlinkAction, uri.class)



 Comments   
Comment by kleopatra [ 30/Mar/11 ]
  • added default for URI class (decided against URL - HyperlinkAction is typed to handle URI only, same as Desktop)
  • added/updated tests
  • updated doc

addendum:
had to wrap the registration of the HyperlinkProvider into a try-catch, otherwise it blows hundreds of tests in headless environment

fixed as of revision #3984

Comment by Karl Schaefer [ 30/Mar/11 ]

Instead of catching an exception can we check to see if Desktop is supported or we are headless (or both, if necessary)? I really don't like catching Exception.

Comment by kleopatra [ 30/Mar/11 ]

me neither - usually But here the effect is exactly the same, so I see not much value in diving into any complexer logic.

Cheers
Jeanette

Generated at Tue Sep 01 07:21:21 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.