swingx
  1. swingx
  2. SWINGX-339

Rendering of the first column in a TreeTable does not consider getValueAt()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.9.0
    • Component/s: TreeTable
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      339

      Description

      Per default, the column class of the first column is set to
      org.jdesktop.swingx.treetable.TreeTableModel, which causes this column to be
      rendered with an instance of
      org.jdesktop.swingx.JXTreeTable$TreeTableCellRenderer. This instance uses a
      ClippedTreeCellRenderer to perform rendering. Unfortunately, this renderer does
      not use the TreeTableModel's getValue(Object node, int column) method but the
      JXTree's convertValueToText() method to retrieve the render value. Thus - per
      default - the first column's value in a TreeTable is determined by the row
      object's toString() method.

        Activity

        Hide
        odo01 added a comment -

        Created an attachment (id=69)
        example to show issue. just run without parameters

        Show
        odo01 added a comment - Created an attachment (id=69) example to show issue. just run without parameters
        Hide
        kleopatra added a comment -

        related: Issue 218, Issue 219

        there had been a couple of threads in the swinglabs forum
        (http://forums.java.net/jive/forum.jspa?forumID=73&start=0) concerning treetable
        which might be interesting to get an overview of the problems waiting for a
        solution

        Show
        kleopatra added a comment - related: Issue 218, Issue 219 there had been a couple of threads in the swinglabs forum ( http://forums.java.net/jive/forum.jspa?forumID=73&start=0 ) concerning treetable which might be interesting to get an overview of the problems waiting for a solution
        Hide
        kleopatra added a comment -

        historical link back to a related issue (the old jdnc, before spitting off
        subprojects):
        https://jdnc.dev.java.net/issues/show_bug.cgi?id=70

        Show
        kleopatra added a comment - historical link back to a related issue (the old jdnc, before spitting off subprojects): https://jdnc.dev.java.net/issues/show_bug.cgi?id=70
        Hide
        Karl Schaefer added a comment -

        I have placed a temporary solution in the ClippedTreeCellRenderer, which
        queries the table's value for displaying it.

        I am closing this issue, since the renderer issue
        (https://swingx.dev.java.net/issues/show_bug.cgi?id=481) will subsume this task
        for finding a better, long-term solution.

        Show
        Karl Schaefer added a comment - I have placed a temporary solution in the ClippedTreeCellRenderer, which queries the table's value for displaying it. I am closing this issue, since the renderer issue ( https://swingx.dev.java.net/issues/show_bug.cgi?id=481 ) will subsume this task for finding a better, long-term solution.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: