swingx
  1. swingx
  2. SWINGX-188

JXHyperlink - selection/activation behavior in table cell

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.9.2
    • Component/s: Misc Component
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      188

      Description

      Using Swinglabs-demos from Oct 20, 2005, Hyperlinks demo

      Roll over a cell containing a hyperlink, though not directly over the hyperlink
      text. The entire cell should not be the hyperlink active area (related to issue
      187 ?)

      When clicking on a cell containing a hyperlink, but not directly over the
      hyperlink, the cell should get selection and focus. (but no hyperlink activation)

      If clicking on a cell containing a hyperlink AND directly over the hyperlink,
      the cell should get selection and focus, and the hyperlink should be activated.

        Activity

        Hide
        kleopatra added a comment -

        technically this is not related to #187, because the JXHyperlink is not really
        added to the containter (like table, tree, list) but only used to "render" the
        content at paint time.

        The basic issue here is that by table design the "smallest unit" of interest is
        the cell (or row/node in list/tree) - there is no notion of "part of the cell".
        The implication is that there's no build-in hook to differentiate between a
        selection-gesture ("in the cell but outside the part") and activation-gesture
        ("in the part") by single mouseclick.

        A checkbox renderer/editor inside a table has a similar issue - it's toggled on
        a click somewhere in the cell while it probably should be toggled when clicking
        inside the small icon only.

        Regarding hyperlinks, JXTable behaves like MS Excel (version 2000) but unlike
        StarOffice Calc (version 6.0)

        Jeanette

        Show
        kleopatra added a comment - technically this is not related to #187, because the JXHyperlink is not really added to the containter (like table, tree, list) but only used to "render" the content at paint time. The basic issue here is that by table design the "smallest unit" of interest is the cell (or row/node in list/tree) - there is no notion of "part of the cell". The implication is that there's no build-in hook to differentiate between a selection-gesture ("in the cell but outside the part") and activation-gesture ("in the part") by single mouseclick. A checkbox renderer/editor inside a table has a similar issue - it's toggled on a click somewhere in the cell while it probably should be toggled when clicking inside the small icon only. Regarding hyperlinks, JXTable behaves like MS Excel (version 2000) but unlike StarOffice Calc (version 6.0) Jeanette
        Hide
        rah003 added a comment -

        Since we can't fix it, is there a reason to keep it open?

        Show
        rah003 added a comment - Since we can't fix it, is there a reason to keep it open?
        Hide
        kleopatra added a comment -

        hmm ... good point.

        Closing as wontfix - it's the way of Swingx

        A bigger solution would be to introduce sub-cell recognition ... or on a hack
        basis: really add the hyperlink for the time the cell is rolled-over (an example
        is in my incubator, veery experimental)

        Jeanette

        Show
        kleopatra added a comment - hmm ... good point. Closing as wontfix - it's the way of Swingx A bigger solution would be to introduce sub-cell recognition ... or on a hack basis: really add the hyperlink for the time the cell is rolled-over (an example is in my incubator, veery experimental) Jeanette

          People

          • Assignee:
            kleopatra
            Reporter:
            anns97
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: