swingx
  1. swingx
  2. SWINGX-484

[Java6] DropMode.ON DropLocation don't show off

    Details

    • Issuezilla Id:
      484

      Description

      The JXTable do not show the DropLocation for DropMode.ON in Mustang (or
      DropMode.ON_OR_INSERT_...). But INSERT location is shown.

      See this post for a workaround Highlighter :

      http://forums.java.net/jive/thread.jspa?messageID=210821

        Issue Links

          Activity

          Hide
          kleopatra added a comment -


          postponed

          Show
          kleopatra added a comment - postponed
          Hide
          kleopatra added a comment -

          CellContext:

          • added dropOn property
          • added dropCell colors
          • implemented getBackground/getForeground to check for drop: return drop colors if not
            null or delegate to selected colors if null (logic copied from core renderers)

          Concrete CellContexts:

          • implemented a checkDropState method and use in install to set the dropOn property
          • changed selection color getters to check dropOn property: if on, return drop colors
            if not null or selection colors if null

          Tried testing ... but not really possible: no way to inject a mock of the dropLocation
          (final getter and package private setter)

          Show
          kleopatra added a comment - CellContext: added dropOn property added dropCell colors implemented getBackground/getForeground to check for drop: return drop colors if not null or delegate to selected colors if null (logic copied from core renderers) Concrete CellContexts: implemented a checkDropState method and use in install to set the dropOn property changed selection color getters to check dropOn property: if on, return drop colors if not null or selection colors if null Tried testing ... but not really possible: no way to inject a mock of the dropLocation (final getter and package private setter)
          Hide
          kleopatra added a comment -

          btw: the issue was the same for the other collection components, fixed for list and tree
          as well

          joyfully closing

          Show
          kleopatra added a comment - btw: the issue was the same for the other collection components, fixed for list and tree as well joyfully closing
          Hide
          kleopatra added a comment -


          set target milestone to 1.x for all fixed post-1.0

          Show
          kleopatra added a comment - set target milestone to 1.x for all fixed post-1.0
          Hide
          kleopatra added a comment -


          changed target of fixed for release 1.6

          Show
          kleopatra added a comment - changed target of fixed for release 1.6
          Hide
          mauromol added a comment -

          I'm using SwingX 1.6.2, but I'm not seeing DropLocation in my JXTreeTable when the dropMode is ON; when the dropMode is INSERT it does work. Am I doing something wrong?

          Show
          mauromol added a comment - I'm using SwingX 1.6.2, but I'm not seeing DropLocation in my JXTreeTable when the dropMode is ON; when the dropMode is INSERT it does work. Am I doing something wrong?

            People

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

              Dates

              • Created:
                Updated:
                Resolved: