This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253907 - TopComponent drag support: Provide event when TopComponent undocked by dragging
Summary: TopComponent drag support: Provide event when TopComponent undocked by dragging
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-28 14:59 UTC by j_lee
Modified: 2015-07-28 14:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description j_lee 2015-07-28 14:59:16 UTC
We need a way to programmatically detect when a TopComponent is undocked from a containing window, and dropped onto the 'free' desktop area.

According to http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/doc-files/api.html :

"Currently, there is no support for listening to changes in Mode nor in TopComponent, though both have modifiable properties which in principle there might be a need to listen to."

A couple of people have written classes to try to address this deficit:

http://netbeans.sourcearchive.com/documentation/6.8/TopComponentDragSupport_8java_source.html

http://alvinalexander.com/java/jwarehouse/netbeans-src/core/windows/src/org/netbeans/core/windows/view/dnd/TopComponentDragSupport.java.shtml