[ xframe-Bugs-1177993 ] DnD problem

"SourceForge.net" <[email protected]> Wed, 18 May 2005 17:13:01 -0700
Newsgroups gmane.text.xml.xframe.xsddoc
Message-ID <[email protected]>
Bugs item #1177993, was opened at 2005-04-06 20:37
Message generated for change (Settings changed) made by kriede
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=1177993&group_id=48863

Category: JXTable
Group: swing
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Iñaqui Medina (inaquimj)
Assigned to: Iñaqui Medina (inaquimj)
Summary: DnD problem

Initial Comment:
Setting a Drag'n Drop handler doesn't work properly. We 
need to override JComponent's setTransferHandler.

Something like this:

public void setTransferHandler(TransferHandler 
newHandler)
{
    getLockedTable().setTransferHandler(newHandler);
    getScrollTable().setTransferHandler(newHandler);
}

(tested and works)

----------------------------------------------------------------------

Comment By: Iñaqui Medina (inaquimj)
Date: 2005-05-12 00:18

Message:
Logged In: YES 
user_id=1086927

I forgot to put the code so you don't have to type it :)

    /**
     * Gets the <code>transferHandler</code> property.
     *
     * @return  the value of the <code>transferHandler</code> 
property
     *
     * @see TransferHandler
     * @see #setTransferHandler
     */
    public TransferHandler getTransferHandler() {
        //Both KTables should have the same handler. Return 
any of those.
        return getLockedTable().getTransferHandler();
    }

----------------------------------------------------------------------

Comment By: Iñaqui Medina (inaquimj)
Date: 2005-05-12 00:15

Message:
Logged In: YES 
user_id=1086927

I just run into another problem: we overloaded 
setTransferHandler but forgot 1 little detail: getTransferHandler!

I tried to commit this change but again:
"commit" requires write access to the repository.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=1177993&group_id=48863


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click